0s autopkgtest [09:24:31]: starting date and time: 2026-02-07 09:24:31+0000 0s autopkgtest [09:24:31]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [09:24:31]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work._klbdpm8/out --timeout-copy=6000 --needs-internet=try --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:pcre2 --apt-upgrade glib2.0 --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=pcre2/10.46-1build1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@sto01-s390x-34.secgroup --name adt-resolute-s390x-glib2.0-20260207-092431-juju-7f2275-prod-proposed-migration-environment-15-6e4bd5e6-d99e-4bc5-a398-82926f07dd34 --image adt/ubuntu-resolute-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-autopkgtest-workers-s390x -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-s390x-glib2.0-20260207-092431-juju-7f2275-prod-proposed-migration-environment-15-6e4bd5e6-d99e-4bc5-a398-82926f07dd34 from image adt/ubuntu-resolute-s390x-server-20260206.img (UUID 49c0a1d9-89cb-4112-bb14-7a2a39e81cac)... 130s autopkgtest [09:26:41]: testbed dpkg architecture: s390x 131s autopkgtest [09:26:42]: testbed apt version: 3.1.15 132s autopkgtest [09:26:43]: @@@@@@@@@@@@@@@@@@@@ test bed setup 133s autopkgtest [09:26:44]: testbed release detected to be: None 135s autopkgtest [09:26:46]: updating testbed package index (apt update) 136s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 136s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 136s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 136s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 137s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 137s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [36.7 kB] 137s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [204 kB] 137s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1651 kB] 137s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x Packages [243 kB] 137s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x Packages [1443 kB] 137s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse s390x Packages [10.2 kB] 141s Fetched 3724 kB in 4s (911 kB/s) 147s Reading package lists... 150s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 150s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 150s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 150s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 157s Reading package lists... 157s Reading package lists... 159s Building dependency tree... 159s Reading state information... 160s Calculating upgrade... 161s The following packages will be upgraded: 161s 3cpio libpcre2-8-0 161s 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 161s Need to get 588 kB of archives. 161s After this operation, 4096 B disk space will be freed. 161s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libpcre2-8-0 s390x 10.46-1build1 [276 kB] 161s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x 3cpio s390x 0.14.0-1ubuntu1 [313 kB] 164s dpkg-preconfigure: unable to re-open stdin: No such file or directory 165s Fetched 588 kB in 0s (8580 kB/s) 174s (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 ... 61954 files and directories currently installed.) 174s Preparing to unpack .../libpcre2-8-0_10.46-1build1_s390x.deb ... 174s Unpacking libpcre2-8-0:s390x (10.46-1build1) over (10.46-1) ... 175s Setting up libpcre2-8-0:s390x (10.46-1build1) ... 177s (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 ... 61954 files and directories currently installed.) 177s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_s390x.deb ... 178s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 179s Setting up 3cpio (0.14.0-1ubuntu1) ... 179s Processing triggers for man-db (2.13.1-1) ... 197s Processing triggers for libselinux1:s390x (3.9-4) ... 198s Processing triggers for libc-bin (2.42-2ubuntu4) ... 203s autopkgtest [09:27:54]: upgrading testbed (apt dist-upgrade and autopurge) 204s Reading package lists... 205s Building dependency tree... 205s Reading state information... 206s Calculating upgrade... 206s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 208s Reading package lists... 209s Building dependency tree... 209s Reading state information... 210s Solving dependencies... 211s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 219s autopkgtest [09:28:10]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP Mon Jan 12 15:39:23 UTC 2026 219s autopkgtest [09:28:10]: @@@@@@@@@@@@@@@@@@@@ apt-source glib2.0 265s Get:1 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (dsc) [4685 B] 265s Get:2 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (tar) [661 kB] 265s Get:3 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (tar) [5675 kB] 265s Get:4 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (diff) [141 kB] 266s gpgv: Signature made Thu Jan 1 13:00:10 2026 UTC 266s gpgv: using RSA key 4D0BE12F0E4776D8AACE9696E66C775AEBFE6C7D 266s gpgv: Can't check signature: No public key 266s dpkg-source: warning: cannot verify inline signature for ./glib2.0_2.86.3-4.dsc: no acceptable signature found 274s autopkgtest [09:29:05]: testing package glib2.0 version 2.86.3-4 278s autopkgtest [09:29:09]: build not needed 287s autopkgtest [09:29:18]: test build: preparing testbed 288s Reading package lists... 289s Building dependency tree... 289s Reading state information... 289s Solving dependencies... 289s The following NEW packages will be installed: 289s build-essential cpp cpp-15 cpp-15-s390x-linux-gnu cpp-s390x-linux-gnu g++ 289s g++-15 g++-15-s390x-linux-gnu g++-s390x-linux-gnu gcc gcc-15 289s gcc-15-s390x-linux-gnu gcc-s390x-linux-gnu libasan8 libblkid-dev 289s libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libffi-dev libgcc-15-dev 289s libgio-2.0-dev libgomp1 libisl23 libitm1 liblsan0 libmount-dev libmpc3 289s libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix3 libpkgconf3 289s libselinux-dev libsepol-dev libstdc++-15-dev libsysprof-capture-4-dev 289s libtsan2 libubsan1 linux-libc-dev pkgconf pkgconf-bin rpcsvc-proto uuid-dev 289s zlib1g-dev 289s 0 upgraded, 45 newly installed, 0 to remove and 0 not upgraded. 289s Need to get 64.5 MB of archives. 289s After this operation, 221 MB of additional disk space will be used. 289s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x libc-dev-bin s390x 2.42-2ubuntu4 [22.9 kB] 290s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x linux-libc-dev s390x 6.18.0-9.9 [1854 kB] 290s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x libcrypt-dev s390x 1:4.5.1-1 [127 kB] 290s Get:4 http://ftpmaster.internal/ubuntu resolute/main s390x rpcsvc-proto s390x 1.4.3-1build1 [67.1 kB] 290s Get:5 http://ftpmaster.internal/ubuntu resolute/main s390x libc6-dev s390x 2.42-2ubuntu4 [1696 kB] 291s Get:6 http://ftpmaster.internal/ubuntu resolute/main s390x libisl23 s390x 0.27-1build1 [702 kB] 291s Get:7 http://ftpmaster.internal/ubuntu resolute/main s390x libmpc3 s390x 1.3.1-2 [57.4 kB] 291s Get:8 http://ftpmaster.internal/ubuntu resolute/main s390x cpp-15-s390x-linux-gnu s390x 15.2.0-12ubuntu1 [10.2 MB] 292s Get:9 http://ftpmaster.internal/ubuntu resolute/main s390x cpp-15 s390x 15.2.0-12ubuntu1 [1028 B] 292s Get:10 http://ftpmaster.internal/ubuntu resolute/main s390x cpp-s390x-linux-gnu s390x 4:15.2.0-4ubuntu1 [5746 B] 292s Get:11 http://ftpmaster.internal/ubuntu resolute/main s390x cpp s390x 4:15.2.0-4ubuntu1 [22.4 kB] 292s Get:12 http://ftpmaster.internal/ubuntu resolute/main s390x libcc1-0 s390x 15.2.0-12ubuntu1 [50.0 kB] 292s Get:13 http://ftpmaster.internal/ubuntu resolute/main s390x libgomp1 s390x 15.2.0-12ubuntu1 [154 kB] 292s Get:14 http://ftpmaster.internal/ubuntu resolute/main s390x libitm1 s390x 15.2.0-12ubuntu1 [30.9 kB] 292s Get:15 http://ftpmaster.internal/ubuntu resolute/main s390x libasan8 s390x 15.2.0-12ubuntu1 [2968 kB] 292s Get:16 http://ftpmaster.internal/ubuntu resolute/main s390x liblsan0 s390x 15.2.0-12ubuntu1 [1354 kB] 292s Get:17 http://ftpmaster.internal/ubuntu resolute/main s390x libtsan2 s390x 15.2.0-12ubuntu1 [2685 kB] 292s Get:18 http://ftpmaster.internal/ubuntu resolute/main s390x libubsan1 s390x 15.2.0-12ubuntu1 [1211 kB] 292s Get:19 http://ftpmaster.internal/ubuntu resolute/main s390x libgcc-15-dev s390x 15.2.0-12ubuntu1 [1294 kB] 293s Get:20 http://ftpmaster.internal/ubuntu resolute/main s390x gcc-15-s390x-linux-gnu s390x 15.2.0-12ubuntu1 [19.9 MB] 294s Get:21 http://ftpmaster.internal/ubuntu resolute/main s390x gcc-15 s390x 15.2.0-12ubuntu1 [519 kB] 294s Get:22 http://ftpmaster.internal/ubuntu resolute/main s390x gcc-s390x-linux-gnu s390x 4:15.2.0-4ubuntu1 [1208 B] 294s Get:23 http://ftpmaster.internal/ubuntu resolute/main s390x gcc s390x 4:15.2.0-4ubuntu1 [5018 B] 294s Get:24 http://ftpmaster.internal/ubuntu resolute/main s390x libstdc++-15-dev s390x 15.2.0-12ubuntu1 [2660 kB] 294s Get:25 http://ftpmaster.internal/ubuntu resolute/main s390x g++-15-s390x-linux-gnu s390x 15.2.0-12ubuntu1 [11.7 MB] 294s Get:26 http://ftpmaster.internal/ubuntu resolute/main s390x g++-15 s390x 15.2.0-12ubuntu1 [25.3 kB] 294s Get:27 http://ftpmaster.internal/ubuntu resolute/main s390x g++-s390x-linux-gnu s390x 4:15.2.0-4ubuntu1 [956 B] 294s Get:28 http://ftpmaster.internal/ubuntu resolute/main s390x g++ s390x 4:15.2.0-4ubuntu1 [1078 B] 294s Get:29 http://ftpmaster.internal/ubuntu resolute/main s390x build-essential s390x 12.12ubuntu2 [5258 B] 294s Get:30 http://ftpmaster.internal/ubuntu resolute/main s390x libffi-dev s390x 3.5.2-3 [62.3 kB] 294s Get:31 http://ftpmaster.internal/ubuntu resolute/main s390x uuid-dev s390x 2.41.2-4ubuntu2 [56.6 kB] 294s Get:32 http://ftpmaster.internal/ubuntu resolute/main s390x libblkid-dev s390x 2.41.2-4ubuntu2 [237 kB] 294s Get:33 http://ftpmaster.internal/ubuntu resolute/main s390x libsepol-dev s390x 3.9-2 [413 kB] 294s Get:34 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libpcre2-16-0 s390x 10.46-1build1 [259 kB] 294s Get:35 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libpcre2-32-0 s390x 10.46-1build1 [246 kB] 294s Get:36 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libpcre2-posix3 s390x 10.46-1build1 [7224 B] 294s Get:37 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libpcre2-dev s390x 10.46-1build1 [900 kB] 294s Get:38 http://ftpmaster.internal/ubuntu resolute/main s390x libselinux-dev s390x 3.9-4 [178 kB] 294s Get:39 http://ftpmaster.internal/ubuntu resolute/main s390x libmount-dev s390x 2.41.2-4ubuntu2 [37.6 kB] 294s Get:40 http://ftpmaster.internal/ubuntu resolute/main s390x libsysprof-capture-4-dev s390x 49.0-5 [51.8 kB] 294s Get:41 http://ftpmaster.internal/ubuntu resolute/main s390x libpkgconf3 s390x 1.8.1-4build1 [31.3 kB] 294s Get:42 http://ftpmaster.internal/ubuntu resolute/main s390x pkgconf-bin s390x 1.8.1-4build1 [21.8 kB] 294s Get:43 http://ftpmaster.internal/ubuntu resolute/main s390x pkgconf s390x 1.8.1-4build1 [16.8 kB] 295s Get:44 http://ftpmaster.internal/ubuntu resolute/main s390x zlib1g-dev s390x 1:1.3.dfsg+really1.3.1-1ubuntu2 [897 kB] 295s Get:45 http://ftpmaster.internal/ubuntu resolute/main s390x libgio-2.0-dev s390x 2.86.3-4 [1829 kB] 296s Fetched 64.5 MB in 5s (12.2 MB/s) 296s Selecting previously unselected package libc-dev-bin. 297s (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 ... 61954 files and directories currently installed.) 297s Preparing to unpack .../00-libc-dev-bin_2.42-2ubuntu4_s390x.deb ... 297s Unpacking libc-dev-bin (2.42-2ubuntu4) ... 297s Selecting previously unselected package linux-libc-dev:s390x. 297s Preparing to unpack .../01-linux-libc-dev_6.18.0-9.9_s390x.deb ... 297s Unpacking linux-libc-dev:s390x (6.18.0-9.9) ... 298s Selecting previously unselected package libcrypt-dev:s390x. 298s Preparing to unpack .../02-libcrypt-dev_1%3a4.5.1-1_s390x.deb ... 298s Unpacking libcrypt-dev:s390x (1:4.5.1-1) ... 298s Selecting previously unselected package rpcsvc-proto. 298s Preparing to unpack .../03-rpcsvc-proto_1.4.3-1build1_s390x.deb ... 298s Unpacking rpcsvc-proto (1.4.3-1build1) ... 298s Selecting previously unselected package libc6-dev:s390x. 298s Preparing to unpack .../04-libc6-dev_2.42-2ubuntu4_s390x.deb ... 298s Unpacking libc6-dev:s390x (2.42-2ubuntu4) ... 299s Selecting previously unselected package libisl23:s390x. 299s Preparing to unpack .../05-libisl23_0.27-1build1_s390x.deb ... 299s Unpacking libisl23:s390x (0.27-1build1) ... 299s Selecting previously unselected package libmpc3:s390x. 300s Preparing to unpack .../06-libmpc3_1.3.1-2_s390x.deb ... 300s Unpacking libmpc3:s390x (1.3.1-2) ... 300s Selecting previously unselected package cpp-15-s390x-linux-gnu. 300s Preparing to unpack .../07-cpp-15-s390x-linux-gnu_15.2.0-12ubuntu1_s390x.deb ... 300s Unpacking cpp-15-s390x-linux-gnu (15.2.0-12ubuntu1) ... 303s Selecting previously unselected package cpp-15. 303s Preparing to unpack .../08-cpp-15_15.2.0-12ubuntu1_s390x.deb ... 303s Unpacking cpp-15 (15.2.0-12ubuntu1) ... 303s Selecting previously unselected package cpp-s390x-linux-gnu. 303s Preparing to unpack .../09-cpp-s390x-linux-gnu_4%3a15.2.0-4ubuntu1_s390x.deb ... 303s Unpacking cpp-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 303s Selecting previously unselected package cpp. 303s Preparing to unpack .../10-cpp_4%3a15.2.0-4ubuntu1_s390x.deb ... 303s Unpacking cpp (4:15.2.0-4ubuntu1) ... 303s Selecting previously unselected package libcc1-0:s390x. 303s Preparing to unpack .../11-libcc1-0_15.2.0-12ubuntu1_s390x.deb ... 303s Unpacking libcc1-0:s390x (15.2.0-12ubuntu1) ... 304s Selecting previously unselected package libgomp1:s390x. 304s Preparing to unpack .../12-libgomp1_15.2.0-12ubuntu1_s390x.deb ... 304s Unpacking libgomp1:s390x (15.2.0-12ubuntu1) ... 304s Selecting previously unselected package libitm1:s390x. 304s Preparing to unpack .../13-libitm1_15.2.0-12ubuntu1_s390x.deb ... 304s Unpacking libitm1:s390x (15.2.0-12ubuntu1) ... 305s Selecting previously unselected package libasan8:s390x. 305s Preparing to unpack .../14-libasan8_15.2.0-12ubuntu1_s390x.deb ... 305s Unpacking libasan8:s390x (15.2.0-12ubuntu1) ... 305s Selecting previously unselected package liblsan0:s390x. 305s Preparing to unpack .../15-liblsan0_15.2.0-12ubuntu1_s390x.deb ... 305s Unpacking liblsan0:s390x (15.2.0-12ubuntu1) ... 306s Selecting previously unselected package libtsan2:s390x. 306s Preparing to unpack .../16-libtsan2_15.2.0-12ubuntu1_s390x.deb ... 306s Unpacking libtsan2:s390x (15.2.0-12ubuntu1) ... 306s Selecting previously unselected package libubsan1:s390x. 306s Preparing to unpack .../17-libubsan1_15.2.0-12ubuntu1_s390x.deb ... 306s Unpacking libubsan1:s390x (15.2.0-12ubuntu1) ... 306s Selecting previously unselected package libgcc-15-dev:s390x. 306s Preparing to unpack .../18-libgcc-15-dev_15.2.0-12ubuntu1_s390x.deb ... 306s Unpacking libgcc-15-dev:s390x (15.2.0-12ubuntu1) ... 307s Selecting previously unselected package gcc-15-s390x-linux-gnu. 307s Preparing to unpack .../19-gcc-15-s390x-linux-gnu_15.2.0-12ubuntu1_s390x.deb ... 307s Unpacking gcc-15-s390x-linux-gnu (15.2.0-12ubuntu1) ... 310s Selecting previously unselected package gcc-15. 310s Preparing to unpack .../20-gcc-15_15.2.0-12ubuntu1_s390x.deb ... 310s Unpacking gcc-15 (15.2.0-12ubuntu1) ... 310s Selecting previously unselected package gcc-s390x-linux-gnu. 310s Preparing to unpack .../21-gcc-s390x-linux-gnu_4%3a15.2.0-4ubuntu1_s390x.deb ... 310s Unpacking gcc-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 310s Selecting previously unselected package gcc. 310s Preparing to unpack .../22-gcc_4%3a15.2.0-4ubuntu1_s390x.deb ... 310s Unpacking gcc (4:15.2.0-4ubuntu1) ... 310s Selecting previously unselected package libstdc++-15-dev:s390x. 310s Preparing to unpack .../23-libstdc++-15-dev_15.2.0-12ubuntu1_s390x.deb ... 311s Unpacking libstdc++-15-dev:s390x (15.2.0-12ubuntu1) ... 312s Selecting previously unselected package g++-15-s390x-linux-gnu. 312s Preparing to unpack .../24-g++-15-s390x-linux-gnu_15.2.0-12ubuntu1_s390x.deb ... 312s Unpacking g++-15-s390x-linux-gnu (15.2.0-12ubuntu1) ... 315s Selecting previously unselected package g++-15. 315s Preparing to unpack .../25-g++-15_15.2.0-12ubuntu1_s390x.deb ... 315s Unpacking g++-15 (15.2.0-12ubuntu1) ... 315s Selecting previously unselected package g++-s390x-linux-gnu. 315s Preparing to unpack .../26-g++-s390x-linux-gnu_4%3a15.2.0-4ubuntu1_s390x.deb ... 315s Unpacking g++-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 315s Selecting previously unselected package g++. 315s Preparing to unpack .../27-g++_4%3a15.2.0-4ubuntu1_s390x.deb ... 315s Unpacking g++ (4:15.2.0-4ubuntu1) ... 315s Selecting previously unselected package build-essential. 315s Preparing to unpack .../28-build-essential_12.12ubuntu2_s390x.deb ... 315s Unpacking build-essential (12.12ubuntu2) ... 315s Selecting previously unselected package libffi-dev:s390x. 315s Preparing to unpack .../29-libffi-dev_3.5.2-3_s390x.deb ... 315s Unpacking libffi-dev:s390x (3.5.2-3) ... 315s Selecting previously unselected package uuid-dev:s390x. 315s Preparing to unpack .../30-uuid-dev_2.41.2-4ubuntu2_s390x.deb ... 315s Unpacking uuid-dev:s390x (2.41.2-4ubuntu2) ... 315s Selecting previously unselected package libblkid-dev:s390x. 315s Preparing to unpack .../31-libblkid-dev_2.41.2-4ubuntu2_s390x.deb ... 315s Unpacking libblkid-dev:s390x (2.41.2-4ubuntu2) ... 315s Selecting previously unselected package libsepol-dev:s390x. 315s Preparing to unpack .../32-libsepol-dev_3.9-2_s390x.deb ... 315s Unpacking libsepol-dev:s390x (3.9-2) ... 315s Selecting previously unselected package libpcre2-16-0:s390x. 316s Preparing to unpack .../33-libpcre2-16-0_10.46-1build1_s390x.deb ... 316s Unpacking libpcre2-16-0:s390x (10.46-1build1) ... 316s Selecting previously unselected package libpcre2-32-0:s390x. 316s Preparing to unpack .../34-libpcre2-32-0_10.46-1build1_s390x.deb ... 316s Unpacking libpcre2-32-0:s390x (10.46-1build1) ... 316s Selecting previously unselected package libpcre2-posix3:s390x. 316s Preparing to unpack .../35-libpcre2-posix3_10.46-1build1_s390x.deb ... 316s Unpacking libpcre2-posix3:s390x (10.46-1build1) ... 316s Selecting previously unselected package libpcre2-dev:s390x. 316s Preparing to unpack .../36-libpcre2-dev_10.46-1build1_s390x.deb ... 316s Unpacking libpcre2-dev:s390x (10.46-1build1) ... 316s Selecting previously unselected package libselinux-dev:s390x. 316s Preparing to unpack .../37-libselinux-dev_3.9-4_s390x.deb ... 316s Unpacking libselinux-dev:s390x (3.9-4) ... 316s Selecting previously unselected package libmount-dev:s390x. 316s Preparing to unpack .../38-libmount-dev_2.41.2-4ubuntu2_s390x.deb ... 316s Unpacking libmount-dev:s390x (2.41.2-4ubuntu2) ... 316s Selecting previously unselected package libsysprof-capture-4-dev:s390x. 316s Preparing to unpack .../39-libsysprof-capture-4-dev_49.0-5_s390x.deb ... 316s Unpacking libsysprof-capture-4-dev:s390x (49.0-5) ... 316s Selecting previously unselected package libpkgconf3:s390x. 316s Preparing to unpack .../40-libpkgconf3_1.8.1-4build1_s390x.deb ... 316s Unpacking libpkgconf3:s390x (1.8.1-4build1) ... 317s Selecting previously unselected package pkgconf-bin. 317s Preparing to unpack .../41-pkgconf-bin_1.8.1-4build1_s390x.deb ... 317s Unpacking pkgconf-bin (1.8.1-4build1) ... 317s Selecting previously unselected package pkgconf:s390x. 317s Preparing to unpack .../42-pkgconf_1.8.1-4build1_s390x.deb ... 317s Unpacking pkgconf:s390x (1.8.1-4build1) ... 317s Selecting previously unselected package zlib1g-dev:s390x. 317s Preparing to unpack .../43-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu2_s390x.deb ... 317s Unpacking zlib1g-dev:s390x (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 317s Selecting previously unselected package libgio-2.0-dev:s390x. 317s Preparing to unpack .../44-libgio-2.0-dev_2.86.3-4_s390x.deb ... 317s Unpacking libgio-2.0-dev:s390x (2.86.3-4) ... 319s Setting up linux-libc-dev:s390x (6.18.0-9.9) ... 319s Setting up libgomp1:s390x (15.2.0-12ubuntu1) ... 319s Setting up libffi-dev:s390x (3.5.2-3) ... 319s Setting up libpcre2-16-0:s390x (10.46-1build1) ... 320s Setting up libsysprof-capture-4-dev:s390x (49.0-5) ... 320s Setting up libpcre2-32-0:s390x (10.46-1build1) ... 320s Setting up libpkgconf3:s390x (1.8.1-4build1) ... 320s Setting up rpcsvc-proto (1.4.3-1build1) ... 320s Setting up libmpc3:s390x (1.3.1-2) ... 320s Setting up libsepol-dev:s390x (3.9-2) ... 320s Setting up pkgconf-bin (1.8.1-4build1) ... 320s Setting up libubsan1:s390x (15.2.0-12ubuntu1) ... 320s Setting up libpcre2-posix3:s390x (10.46-1build1) ... 320s Setting up libcrypt-dev:s390x (1:4.5.1-1) ... 320s Setting up libasan8:s390x (15.2.0-12ubuntu1) ... 320s Setting up libtsan2:s390x (15.2.0-12ubuntu1) ... 320s Setting up libisl23:s390x (0.27-1build1) ... 320s Setting up libc-dev-bin (2.42-2ubuntu4) ... 320s Setting up libcc1-0:s390x (15.2.0-12ubuntu1) ... 320s Setting up liblsan0:s390x (15.2.0-12ubuntu1) ... 320s Setting up libitm1:s390x (15.2.0-12ubuntu1) ... 320s Setting up libgcc-15-dev:s390x (15.2.0-12ubuntu1) ... 320s Setting up pkgconf:s390x (1.8.1-4build1) ... 320s Setting up cpp-15-s390x-linux-gnu (15.2.0-12ubuntu1) ... 320s Setting up libc6-dev:s390x (2.42-2ubuntu4) ... 320s Setting up gcc-15-s390x-linux-gnu (15.2.0-12ubuntu1) ... 320s Setting up libpcre2-dev:s390x (10.46-1build1) ... 320s Setting up cpp-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 320s Setting up libstdc++-15-dev:s390x (15.2.0-12ubuntu1) ... 320s Setting up gcc-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 320s Setting up uuid-dev:s390x (2.41.2-4ubuntu2) ... 320s Setting up zlib1g-dev:s390x (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 320s Setting up cpp-15 (15.2.0-12ubuntu1) ... 320s Setting up cpp (4:15.2.0-4ubuntu1) ... 320s Setting up libselinux-dev:s390x (3.9-4) ... 320s Setting up g++-15-s390x-linux-gnu (15.2.0-12ubuntu1) ... 320s Setting up libblkid-dev:s390x (2.41.2-4ubuntu2) ... 320s Setting up g++-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 320s Setting up gcc-15 (15.2.0-12ubuntu1) ... 320s Setting up g++-15 (15.2.0-12ubuntu1) ... 320s Setting up libmount-dev:s390x (2.41.2-4ubuntu2) ... 320s Setting up libgio-2.0-dev:s390x (2.86.3-4) ... 320s Setting up gcc (4:15.2.0-4ubuntu1) ... 320s Setting up g++ (4:15.2.0-4ubuntu1) ... 320s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 320s Setting up build-essential (12.12ubuntu2) ... 320s Processing triggers for libc-bin (2.42-2ubuntu4) ... 320s Processing triggers for man-db (2.13.1-1) ... 330s Processing triggers for libglib2.0-0t64:s390x (2.86.3-4) ... 330s No schema files found: doing nothing. 330s Processing triggers for install-info (7.2-5) ... 334s autopkgtest [09:30:05]: test build: [----------------------- 335s + mode=dynamic 335s + getopt -o --long static -n debian/tests/build -- 335s + getopt_temp= -- 335s + eval set -- -- 335s + set -- -- 335s + true 335s + shift 335s + break 335s + mktemp -d 335s + WORKDIR=/tmp/tmp.9ulAdS1Bgy 335s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 335s + cd /tmp/tmp.9ulAdS1Bgy 335s + [ -n ] 335s + CROSS_COMPILE= 335s + cat 335s + cat 335s + cat 335s + cat 335s + cat 335s + cat 335s + cflags= 335s + pcflags= 335s + packages=glib-2.0 335s + pkg-config --cflags --libs glib-2.0 335s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 336s + echo build (glib, dynamic): OK 336s + [ -x glib-dynamic ] 336s + foo=bar ./glib-dynamic 336s build (glib, dynamic): OK 336s run (glib, dynamic): OK 336s + echo run (glib, dynamic): OK 336s + cflags= 336s + pcflags= 336s + packages=gobject-2.0 336s + pkg-config --cflags --libs gobject-2.0 336s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 337s build (gobject, dynamic): OK 337s run (gobject, dynamic): OK 337s + echo build (gobject, dynamic): OK 337s + [ -x gobject-dynamic ] 337s + foo=bar ./gobject-dynamic 337s + echo run (gobject, dynamic): OK 337s + cflags= 337s + pcflags= 337s + packages=gio-2.0 337s + pkg-config --cflags --libs gio-2.0 337s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 338s build (gio, dynamic): OK 338s + echo build (gio, dynamic): OK 338s + [ -x gio-dynamic ] 338s + foo=bar ./gio-dynamic 338s run (gio, dynamic): OK 338s + echo run (gio, dynamic): OK 338s + cflags= 338s + pcflags= 338s + packages=gio-unix-2.0 338s + pkg-config --cflags --libs gio-unix-2.0 338s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 339s build (gio-unix, dynamic): OK 339s + echo build (gio-unix, dynamic): OK 339s + [ -x gio-unix-dynamic ] 339s + foo=bar ./gio-unix-dynamic 339s + echo run (gio-unix, dynamic): OK 339s + cflags= 339s + pcflags= 339s + packages=gmodule-2.0 339s run (gio-unix, dynamic): OK 339s + pkg-config --cflags --libs gmodule-2.0 339s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 340s build (gmodule, dynamic): OK 340s + echo build (gmodule, dynamic): OK 340s + [ -x gmodule-dynamic ] 340s + foo=bar ./gmodule-dynamic 340s run (gmodule, dynamic): OK 340s + echo run (gmodule, dynamic): OK 340s + cflags= 340s + pcflags= 340s + packages=gthread-2.0 340s + pkg-config --cflags --libs gthread-2.0 340s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 341s build (gthread, dynamic): OK 341s + echo build (gthread, dynamic): OK 341s + [ -x gthread-dynamic ] 341s + foo=bar ./gthread-dynamic 341s + echo run (gthread, dynamic): OK 341s + rm -rf /tmp/tmp.9ulAdS1Bgy 341s run (gthread, dynamic): OK 341s autopkgtest [09:30:12]: test build: -----------------------] 342s build PASS (superficial) 342s autopkgtest [09:30:13]: test build: - - - - - - - - - - results - - - - - - - - - - 343s autopkgtest [09:30:14]: test build-static: preparing testbed 343s Reading package lists... 345s Building dependency tree... 345s Reading state information... 345s Solving dependencies... 347s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 348s autopkgtest [09:30:19]: test build-static: [----------------------- 349s + mode=dynamic 349s + getopt -o --long static -n debian/tests/build -- --static 349s + getopt_temp= --static -- 349s + eval set -- --static -- 349s + set -- --static -- 349s + true 349s + mode=static 349s + shift 349s + continue 349s + true 349s + shift 349s + break 349s + mktemp -d 349s + WORKDIR=/tmp/tmp.RdBXSjenLS 349s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 349s + cd /tmp/tmp.RdBXSjenLS 349s + [ -n ] 349s + CROSS_COMPILE= 349s + cat 349s + cat 349s + cat 349s + cat 349s + cat 349s + cat 349s + cflags= 349s + pcflags= 349s + packages=glib-2.0 349s + cflags=-static 349s + pcflags=--static 349s + pkg-config --static --cflags --libs glib-2.0 349s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 350s /usr/bin/s390x-linux-gnu-ld.bfd: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 350s (.text+0xec): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 350s /usr/bin/s390x-linux-gnu-ld.bfd: (.text+0x2a6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 350s /usr/bin/s390x-linux-gnu-ld.bfd: (.text+0x12a): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 350s build (glib, static): OK 350s run (glib, static): OK 350s + echo build (glib, static): OK 350s + [ -x glib-static ] 350s + foo=bar ./glib-static 350s + echo run (glib, static): OK 350s + cflags= 350s + pcflags= 350s + packages=gobject-2.0 350s + cflags=-static 350s + pcflags=--static 350s + pkg-config --static --cflags --libs gobject-2.0 350s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 -lffi 351s /usr/bin/s390x-linux-gnu-ld.bfd: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 351s (.text+0xec): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 351s /usr/bin/s390x-linux-gnu-ld.bfd: (.text+0x2a6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 351s /usr/bin/s390x-linux-gnu-ld.bfd: (.text+0x12a): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 351s build (gobject, static): OK 351s run (gobject, static): OK 351s + echo build (gobject, static): OK 351s + [ -x gobject-static ] 351s + foo=bar ./gobject-static 351s + echo run (gobject, static): OK 351s + cflags= 351s + pcflags= 351s + packages=gio-2.0 351s + cflags=-static 351s + pcflags=--static 351s + continue 351s + cflags= 351s + pcflags= 351s + packages=gio-unix-2.0 351s + cflags=-static 351s + pcflags=--static 351s + continue 351s + cflags= 351s + pcflags= 351s + packages=gmodule-2.0 351s + cflags=-static 351s + pcflags=--static 351s + pkg-config --static --cflags --libs gmodule-2.0 351s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 351s /usr/bin/s390x-linux-gnu-ld.bfd: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 352s (.text+0x672): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 352s /usr/bin/s390x-linux-gnu-ld.bfd: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 352s (.text+0xec): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 352s /usr/bin/s390x-linux-gnu-ld.bfd: (.text+0x2a6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 352s /usr/bin/s390x-linux-gnu-ld.bfd: (.text+0x12a): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 352s build (gmodule, static): OK 352s + echo build (gmodule, static): OK 352s + [ -x gmodule-static ] 352s + foo=bar ./gmodule-static 352s run (gmodule, static): OK 352s + echo run (gmodule, static): OK 352s + cflags= 352s + pcflags= 352s + packages=gthread-2.0 352s + cflags=-static 352s + pcflags=--static 352s + pkg-config --static --cflags --libs gthread-2.0 352s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 352s /usr/bin/s390x-linux-gnu-ld.bfd: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 352s (.text+0xec): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 352s /usr/bin/s390x-linux-gnu-ld.bfd: (.text+0x2a6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 352s /usr/bin/s390x-linux-gnu-ld.bfd: (.text+0x12a): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 352s + build (gthread, static): OK 352s run (gthread, static): OK 352s echo build (gthread, static): OK 352s + [ -x gthread-static ] 352s + foo=bar ./gthread-static 352s + echo run (gthread, static): OK 352s + rm -rf /tmp/tmp.RdBXSjenLS 353s autopkgtest [09:30:24]: test build-static: -----------------------] 354s build-static PASS (superficial) 354s autopkgtest [09:30:25]: test build-static: - - - - - - - - - - results - - - - - - - - - - 354s autopkgtest [09:30:25]: test girepository-tools: preparing testbed 372s Creating nova instance adt-resolute-s390x-glib2.0-20260207-092431-juju-7f2275-prod-proposed-migration-environment-15-6e4bd5e6-d99e-4bc5-a398-82926f07dd34 from image adt/ubuntu-resolute-s390x-server-20260206.img (UUID 49c0a1d9-89cb-4112-bb14-7a2a39e81cac)... 498s autopkgtest [09:32:49]: testbed dpkg architecture: s390x 498s autopkgtest [09:32:49]: testbed apt version: 3.1.15 500s autopkgtest [09:32:51]: @@@@@@@@@@@@@@@@@@@@ test bed setup 500s autopkgtest [09:32:51]: testbed release detected to be: resolute 503s autopkgtest [09:32:54]: updating testbed package index (apt update) 503s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 504s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 504s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 504s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 504s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 504s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1608 kB] 505s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [35.1 kB] 505s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [196 kB] 505s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x Packages [233 kB] 505s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x Packages [1399 kB] 506s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse s390x Packages [10.2 kB] 508s Fetched 3616 kB in 4s (816 kB/s) 513s Reading package lists... 515s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 515s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 515s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 515s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 522s Reading package lists... 523s Reading package lists... 524s Building dependency tree... 524s Reading state information... 525s Calculating upgrade... 527s The following packages will be upgraded: 527s 3cpio libpcap0.8t64 libpcre2-8-0 527s 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 527s Need to get 743 kB of archives. 527s After this operation, 4096 B disk space will be freed. 527s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libpcre2-8-0 s390x 10.46-1build1 [276 kB] 527s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x libpcap0.8t64 s390x 1.10.5-2ubuntu3 [155 kB] 527s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x 3cpio s390x 0.14.0-1ubuntu1 [313 kB] 531s dpkg-preconfigure: unable to re-open stdin: No such file or directory 531s Fetched 743 kB in 1s (1082 kB/s) 536s (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 ... 61954 files and directories currently installed.) 536s Preparing to unpack .../libpcre2-8-0_10.46-1build1_s390x.deb ... 536s Unpacking libpcre2-8-0:s390x (10.46-1build1) over (10.46-1) ... 541s Setting up libpcre2-8-0:s390x (10.46-1build1) ... 543s (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 ... 61954 files and directories currently installed.) 543s Preparing to unpack .../libpcap0.8t64_1.10.5-2ubuntu3_s390x.deb ... 543s Unpacking libpcap0.8t64:s390x (1.10.5-2ubuntu3) over (1.10.5-2ubuntu2) ... 545s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_s390x.deb ... 546s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 546s Setting up 3cpio (0.14.0-1ubuntu1) ... 546s Setting up libpcap0.8t64:s390x (1.10.5-2ubuntu3) ... 546s Processing triggers for man-db (2.13.1-1) ... 566s Processing triggers for libselinux1:s390x (3.9-4) ... 566s Processing triggers for libc-bin (2.42-2ubuntu4) ... 568s autopkgtest [09:33:59]: upgrading testbed (apt dist-upgrade and autopurge) 569s Reading package lists... 570s Building dependency tree... 570s Reading state information... 571s Calculating upgrade... 572s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 573s Reading package lists... 574s Building dependency tree... 574s Reading state information... 574s Solving dependencies... 575s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 581s Reading package lists... 583s Building dependency tree... 583s Reading state information... 583s Solving dependencies... 584s The following NEW packages will be installed: 584s gir1.2-glib-2.0-dev girepository-tools native-architecture 584s 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. 584s Need to get 982 kB of archives. 584s After this operation, 12.3 MB of additional disk space will be used. 584s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x gir1.2-glib-2.0-dev s390x 2.86.3-4 [865 kB] 585s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x native-architecture all 0.2.6build1 [2256 B] 585s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x girepository-tools s390x 2.86.3-4 [115 kB] 588s Fetched 982 kB in 1s (1162 kB/s) 588s Selecting previously unselected package gir1.2-glib-2.0-dev:s390x. 588s (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 ... 61954 files and directories currently installed.) 588s Preparing to unpack .../gir1.2-glib-2.0-dev_2.86.3-4_s390x.deb ... 588s Unpacking gir1.2-glib-2.0-dev:s390x (2.86.3-4) ... 589s Selecting previously unselected package native-architecture. 589s Preparing to unpack .../native-architecture_0.2.6build1_all.deb ... 589s Unpacking native-architecture (0.2.6build1) ... 589s Selecting previously unselected package girepository-tools:s390x. 589s Preparing to unpack .../girepository-tools_2.86.3-4_s390x.deb ... 589s Unpacking girepository-tools:s390x (2.86.3-4) ... 589s Setting up native-architecture (0.2.6build1) ... 589s Setting up gir1.2-glib-2.0-dev:s390x (2.86.3-4) ... 589s Setting up girepository-tools:s390x (2.86.3-4) ... 589s Processing triggers for man-db (2.13.1-1) ... 604s autopkgtest [09:34:35]: test girepository-tools: [----------------------- 604s + cd /tmp/autopkgtest.n2KYti/autopkgtest_tmp 604s + dpkg-architecture -qDEB_HOST_GNU_TYPE 605s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 605s + DEB_HOST_GNU_TYPE=s390x-linux-gnu 605s + dpkg-architecture -qDEB_HOST_MULTIARCH 605s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 605s + DEB_HOST_MULTIARCH=s390x-linux-gnu 605s + s390x-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 605s typelib: GLib-2.0 605s + s390x-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/s390x-linux-gnu/gir-1.0/GLib-2.0.gir 606s + s390x-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 607s autopkgtest [09:34:38]: test girepository-tools: -----------------------] 608s girepository-tools PASS (superficial) 608s autopkgtest [09:34:39]: test girepository-tools: - - - - - - - - - - results - - - - - - - - - - 609s autopkgtest [09:34:40]: test libgio-2.0-dev-bin: preparing testbed 627s Creating nova instance adt-resolute-s390x-glib2.0-20260207-092431-juju-7f2275-prod-proposed-migration-environment-15-6e4bd5e6-d99e-4bc5-a398-82926f07dd34 from image adt/ubuntu-resolute-s390x-server-20260206.img (UUID 49c0a1d9-89cb-4112-bb14-7a2a39e81cac)... 769s autopkgtest [09:37:20]: testbed dpkg architecture: s390x 770s autopkgtest [09:37:21]: testbed apt version: 3.1.15 771s autopkgtest [09:37:22]: @@@@@@@@@@@@@@@@@@@@ test bed setup 772s autopkgtest [09:37:23]: testbed release detected to be: resolute 775s autopkgtest [09:37:26]: updating testbed package index (apt update) 775s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 775s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 775s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 775s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 776s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [196 kB] 776s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [35.1 kB] 776s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 776s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1608 kB] 776s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x Packages [233 kB] 776s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x Packages [1399 kB] 776s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse s390x Packages [10.2 kB] 779s Fetched 3616 kB in 3s (1110 kB/s) 785s Reading package lists... 789s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 789s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 789s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 789s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 796s Reading package lists... 797s Reading package lists... 799s Building dependency tree... 799s Reading state information... 800s Calculating upgrade... 802s The following packages will be upgraded: 802s 3cpio libpcap0.8t64 libpcre2-8-0 802s 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 802s Need to get 743 kB of archives. 802s After this operation, 4096 B disk space will be freed. 802s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libpcre2-8-0 s390x 10.46-1build1 [276 kB] 802s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x libpcap0.8t64 s390x 1.10.5-2ubuntu3 [155 kB] 802s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x 3cpio s390x 0.14.0-1ubuntu1 [313 kB] 805s dpkg-preconfigure: unable to re-open stdin: No such file or directory 806s Fetched 743 kB in 0s (2864 kB/s) 816s (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 ... 61954 files and directories currently installed.) 816s Preparing to unpack .../libpcre2-8-0_10.46-1build1_s390x.deb ... 816s Unpacking libpcre2-8-0:s390x (10.46-1build1) over (10.46-1) ... 817s Setting up libpcre2-8-0:s390x (10.46-1build1) ... 820s (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 ... 61954 files and directories currently installed.) 820s Preparing to unpack .../libpcap0.8t64_1.10.5-2ubuntu3_s390x.deb ... 820s Unpacking libpcap0.8t64:s390x (1.10.5-2ubuntu3) over (1.10.5-2ubuntu2) ... 823s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_s390x.deb ... 823s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 826s Setting up 3cpio (0.14.0-1ubuntu1) ... 826s Setting up libpcap0.8t64:s390x (1.10.5-2ubuntu3) ... 827s Processing triggers for man-db (2.13.1-1) ... 844s Processing triggers for libselinux1:s390x (3.9-4) ... 844s Processing triggers for libc-bin (2.42-2ubuntu4) ... 847s autopkgtest [09:38:38]: upgrading testbed (apt dist-upgrade and autopurge) 847s Reading package lists... 849s Building dependency tree... 849s Reading state information... 850s Calculating upgrade... 852s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 853s Reading package lists... 854s Building dependency tree... 854s Reading state information... 855s Solving dependencies... 856s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 868s Reading package lists... 870s Building dependency tree... 870s Reading state information... 870s Solving dependencies... 871s The following NEW packages will be installed: 871s libgio-2.0-dev-bin 872s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 872s Need to get 129 kB of archives. 872s After this operation, 703 kB of additional disk space will be used. 872s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x libgio-2.0-dev-bin s390x 2.86.3-4 [129 kB] 875s Fetched 129 kB in 1s (165 kB/s) 875s Selecting previously unselected package libgio-2.0-dev-bin. 875s (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 ... 61954 files and directories currently installed.) 875s Preparing to unpack .../libgio-2.0-dev-bin_2.86.3-4_s390x.deb ... 875s Unpacking libgio-2.0-dev-bin (2.86.3-4) ... 876s Setting up libgio-2.0-dev-bin (2.86.3-4) ... 877s Processing triggers for man-db (2.13.1-1) ... 898s autopkgtest [09:39:29]: test libgio-2.0-dev-bin: [----------------------- 900s + gdbus-codegen --help 900s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 900s [--c-namespace NAMESPACE] [--c-generate-object-manager] 900s [--c-generate-autocleanup {none,objects,all}] 900s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 900s [--generate-rst OUTFILES] [--pragma-once] 900s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 900s [--glib-min-required VERSION] 900s [--glib-max-allowed VERSION] 900s [--symbol-decorator SYMBOL_DECORATOR] 900s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 900s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 900s [--generate-c-code OUTFILES | --header | --body | 900s --interface-info-header | --interface-info-body] 900s [--output FILE | --output-directory OUTDIR] 900s FILE [FILE ...] 900s 900s D-Bus code and documentation generator 900s 900s positional arguments: 900s FILE D-Bus introspection XML file 900s 900s options: 900s -h, --help show this help message and exit 900s --interface-prefix PREFIX 900s String to strip from D-Bus interface names for code 900s and docs 900s --c-namespace NAMESPACE 900s The namespace to use for generated C code 900s --c-generate-object-manager 900s Generate a GDBusObjectManagerClient subclass when 900s generating C code 900s --c-generate-autocleanup {none,objects,all} 900s Generate autocleanup support 900s --generate-docbook OUTFILES 900s Generate Docbook in OUTFILES-org.Project.IFace.xml 900s --generate-md OUTFILES 900s Generate Markdown in OUTFILES-org.Project.IFace.md 900s --generate-rst OUTFILES 900s Generate reStructuredText in OUTFILES- 900s org.Project.IFace.rst 900s --pragma-once Use "pragma once" as the inclusion guard 900s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 900s Add annotation (may be used several times) 900s --glib-min-required VERSION 900s Minimum version of GLib to be supported by the 900s outputted code (default: 2.30) 900s --glib-max-allowed VERSION 900s Maximum version of GLib to be used by the outputted 900s code (default: current GLib version) 900s --symbol-decorator SYMBOL_DECORATOR 900s Macro used to decorate a symbol in the outputted 900s header, possibly to export symbols 900s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 900s Additional header required for decorator specified by 900s --symbol-decorator 900s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 900s Additional define required for decorator specified by 900s --symbol-decorator 900s --generate-c-code OUTFILES 900s Generate C code in OUTFILES.[ch] 900s --header Generate C headers 900s --body Generate C code 900s --interface-info-header 900s Generate GDBusInterfaceInfo C header 900s --interface-info-body 900s Generate GDBusInterfaceInfo C code 900s --output FILE Write output into the specified file 900s --output-directory OUTDIR 900s Location to output generated files 900s + glib-compile-resources --version 900s 2.86.3 900s + glib-genmarshal --version 900s glib-genmarshal version 2.86.3 900s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 900s You may redistribute copies of glib-genmarshal under the terms of 900s the GNU General Public License which can be found in the 900s GLib source package. Sources, examples and contact 900s information are available at http://www.gtk.org 900s + glib-gettextize --version 900s + glib-mkenums --version 900s /usr/bin/glib-gettextize (GNU glib) 2.86.3 900s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 900s This is free software; see the source for copying conditions. There is NO 900s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 900s Written by Ulrich Drepper 901s glib-mkenums version 2.86.3 901s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 901s You may redistribute copies of glib-mkenums under the terms of 901s the GNU General Public License which can be found in the 901s GLib source package. Sources, examples and contact 901s information are available at http://www.gtk.org 901s + gobject-query tree 901s GObject 901s + gtester --version 901s + gtester-report --version 901s gtester version 2.86.3 901s gtester-report (GLib utils) version 2.86.3. 902s autopkgtest [09:39:33]: test libgio-2.0-dev-bin: -----------------------] 903s libgio-2.0-dev-bin PASS (superficial) 903s autopkgtest [09:39:34]: test libgio-2.0-dev-bin: - - - - - - - - - - results - - - - - - - - - - 905s autopkgtest [09:39:36]: test libglib2.0-dev: preparing testbed 935s Creating nova instance adt-resolute-s390x-glib2.0-20260207-092431-juju-7f2275-prod-proposed-migration-environment-15-6e4bd5e6-d99e-4bc5-a398-82926f07dd34 from image adt/ubuntu-resolute-s390x-server-20260206.img (UUID 49c0a1d9-89cb-4112-bb14-7a2a39e81cac)... 1067s autopkgtest [09:42:18]: testbed dpkg architecture: s390x 1068s autopkgtest [09:42:19]: testbed apt version: 3.1.15 1069s autopkgtest [09:42:20]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1069s autopkgtest [09:42:20]: testbed release detected to be: resolute 1070s autopkgtest [09:42:21]: updating testbed package index (apt update) 1070s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 1070s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 1070s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 1070s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 1070s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 1070s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [35.1 kB] 1070s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1608 kB] 1071s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [196 kB] 1071s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x Packages [233 kB] 1071s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x Packages [1399 kB] 1071s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse s390x Packages [10.2 kB] 1074s Fetched 3616 kB in 3s (1153 kB/s) 1079s Reading package lists... 1081s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 1081s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 1081s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 1081s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 1087s Reading package lists... 1088s Reading package lists... 1089s Building dependency tree... 1089s Reading state information... 1090s Calculating upgrade... 1091s The following packages will be upgraded: 1091s 3cpio libpcap0.8t64 libpcre2-8-0 1091s 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1091s Need to get 743 kB of archives. 1091s After this operation, 4096 B disk space will be freed. 1091s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libpcre2-8-0 s390x 10.46-1build1 [276 kB] 1091s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x libpcap0.8t64 s390x 1.10.5-2ubuntu3 [155 kB] 1091s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x 3cpio s390x 0.14.0-1ubuntu1 [313 kB] 1094s dpkg-preconfigure: unable to re-open stdin: No such file or directory 1094s Fetched 743 kB in 0s (47.8 MB/s) 1095s (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 ... 61954 files and directories currently installed.) 1095s Preparing to unpack .../libpcre2-8-0_10.46-1build1_s390x.deb ... 1095s Unpacking libpcre2-8-0:s390x (10.46-1build1) over (10.46-1) ... 1096s Setting up libpcre2-8-0:s390x (10.46-1build1) ... 1096s (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 ... 61954 files and directories currently installed.) 1096s Preparing to unpack .../libpcap0.8t64_1.10.5-2ubuntu3_s390x.deb ... 1096s Unpacking libpcap0.8t64:s390x (1.10.5-2ubuntu3) over (1.10.5-2ubuntu2) ... 1096s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_s390x.deb ... 1096s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 1096s Setting up 3cpio (0.14.0-1ubuntu1) ... 1096s Setting up libpcap0.8t64:s390x (1.10.5-2ubuntu3) ... 1097s Processing triggers for man-db (2.13.1-1) ... 1115s Processing triggers for libselinux1:s390x (3.9-4) ... 1115s Processing triggers for libc-bin (2.42-2ubuntu4) ... 1119s autopkgtest [09:43:10]: upgrading testbed (apt dist-upgrade and autopurge) 1119s Reading package lists... 1121s Building dependency tree... 1121s Reading state information... 1122s Calculating upgrade... 1122s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1123s Reading package lists... 1124s Building dependency tree... 1124s Reading state information... 1124s Solving dependencies... 1125s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1132s Reading package lists... 1134s Building dependency tree... 1134s Reading state information... 1135s Solving dependencies... 1136s The following NEW packages will be installed: 1136s build-essential cpp cpp-15 cpp-15-s390x-linux-gnu cpp-s390x-linux-gnu g++ 1136s g++-15 g++-15-s390x-linux-gnu g++-s390x-linux-gnu gcc gcc-15 1136s gcc-15-s390x-linux-gnu gcc-s390x-linux-gnu gir1.2-glib-2.0-dev 1136s girepository-tools libasan8 libblkid-dev libc-dev-bin libc6-dev libcc1-0 1136s libcrypt-dev libffi-dev libgcc-15-dev libgio-2.0-dev libgio-2.0-dev-bin 1136s libglib2.0-bin libglib2.0-dev libglib2.0-dev-bin libgomp1 libisl23 libitm1 1136s liblsan0 libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 1136s libpcre2-posix3 libpkgconf3 libselinux-dev libsepol-dev libstdc++-15-dev 1136s libsysprof-capture-4-dev libtsan2 libubsan1 linux-libc-dev 1136s native-architecture pkgconf pkgconf-bin rpcsvc-proto uuid-dev zlib1g-dev 1136s 0 upgraded, 52 newly installed, 0 to remove and 0 not upgraded. 1136s Need to get 65.8 MB of archives. 1136s After this operation, 235 MB of additional disk space will be used. 1136s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x libc-dev-bin s390x 2.42-2ubuntu4 [22.9 kB] 1136s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x linux-libc-dev s390x 6.18.0-9.9 [1854 kB] 1136s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x libcrypt-dev s390x 1:4.5.1-1 [127 kB] 1137s Get:4 http://ftpmaster.internal/ubuntu resolute/main s390x rpcsvc-proto s390x 1.4.3-1build1 [67.1 kB] 1137s Get:5 http://ftpmaster.internal/ubuntu resolute/main s390x libc6-dev s390x 2.42-2ubuntu4 [1696 kB] 1137s Get:6 http://ftpmaster.internal/ubuntu resolute/main s390x libisl23 s390x 0.27-1build1 [702 kB] 1137s Get:7 http://ftpmaster.internal/ubuntu resolute/main s390x libmpc3 s390x 1.3.1-2 [57.4 kB] 1137s Get:8 http://ftpmaster.internal/ubuntu resolute/main s390x cpp-15-s390x-linux-gnu s390x 15.2.0-12ubuntu1 [10.2 MB] 1137s Get:9 http://ftpmaster.internal/ubuntu resolute/main s390x cpp-15 s390x 15.2.0-12ubuntu1 [1028 B] 1137s Get:10 http://ftpmaster.internal/ubuntu resolute/main s390x cpp-s390x-linux-gnu s390x 4:15.2.0-4ubuntu1 [5746 B] 1137s Get:11 http://ftpmaster.internal/ubuntu resolute/main s390x cpp s390x 4:15.2.0-4ubuntu1 [22.4 kB] 1137s Get:12 http://ftpmaster.internal/ubuntu resolute/main s390x libcc1-0 s390x 15.2.0-12ubuntu1 [50.0 kB] 1137s Get:13 http://ftpmaster.internal/ubuntu resolute/main s390x libgomp1 s390x 15.2.0-12ubuntu1 [154 kB] 1137s Get:14 http://ftpmaster.internal/ubuntu resolute/main s390x libitm1 s390x 15.2.0-12ubuntu1 [30.9 kB] 1137s Get:15 http://ftpmaster.internal/ubuntu resolute/main s390x libasan8 s390x 15.2.0-12ubuntu1 [2968 kB] 1137s Get:16 http://ftpmaster.internal/ubuntu resolute/main s390x liblsan0 s390x 15.2.0-12ubuntu1 [1354 kB] 1137s Get:17 http://ftpmaster.internal/ubuntu resolute/main s390x libtsan2 s390x 15.2.0-12ubuntu1 [2685 kB] 1138s Get:18 http://ftpmaster.internal/ubuntu resolute/main s390x libubsan1 s390x 15.2.0-12ubuntu1 [1211 kB] 1138s Get:19 http://ftpmaster.internal/ubuntu resolute/main s390x libgcc-15-dev s390x 15.2.0-12ubuntu1 [1294 kB] 1138s Get:20 http://ftpmaster.internal/ubuntu resolute/main s390x gcc-15-s390x-linux-gnu s390x 15.2.0-12ubuntu1 [19.9 MB] 1138s Get:21 http://ftpmaster.internal/ubuntu resolute/main s390x gcc-15 s390x 15.2.0-12ubuntu1 [519 kB] 1138s Get:22 http://ftpmaster.internal/ubuntu resolute/main s390x gcc-s390x-linux-gnu s390x 4:15.2.0-4ubuntu1 [1208 B] 1138s Get:23 http://ftpmaster.internal/ubuntu resolute/main s390x gcc s390x 4:15.2.0-4ubuntu1 [5018 B] 1139s Get:24 http://ftpmaster.internal/ubuntu resolute/main s390x libstdc++-15-dev s390x 15.2.0-12ubuntu1 [2660 kB] 1139s Get:25 http://ftpmaster.internal/ubuntu resolute/main s390x g++-15-s390x-linux-gnu s390x 15.2.0-12ubuntu1 [11.7 MB] 1139s Get:26 http://ftpmaster.internal/ubuntu resolute/main s390x g++-15 s390x 15.2.0-12ubuntu1 [25.3 kB] 1139s Get:27 http://ftpmaster.internal/ubuntu resolute/main s390x g++-s390x-linux-gnu s390x 4:15.2.0-4ubuntu1 [956 B] 1139s Get:28 http://ftpmaster.internal/ubuntu resolute/main s390x g++ s390x 4:15.2.0-4ubuntu1 [1078 B] 1139s Get:29 http://ftpmaster.internal/ubuntu resolute/main s390x build-essential s390x 12.12ubuntu2 [5258 B] 1139s Get:30 http://ftpmaster.internal/ubuntu resolute/main s390x gir1.2-glib-2.0-dev s390x 2.86.3-4 [865 kB] 1139s Get:31 http://ftpmaster.internal/ubuntu resolute/main s390x native-architecture all 0.2.6build1 [2256 B] 1139s Get:32 http://ftpmaster.internal/ubuntu resolute/main s390x girepository-tools s390x 2.86.3-4 [115 kB] 1139s Get:33 http://ftpmaster.internal/ubuntu resolute/main s390x libffi-dev s390x 3.5.2-3 [62.3 kB] 1139s Get:34 http://ftpmaster.internal/ubuntu resolute/main s390x uuid-dev s390x 2.41.2-4ubuntu2 [56.6 kB] 1139s Get:35 http://ftpmaster.internal/ubuntu resolute/main s390x libblkid-dev s390x 2.41.2-4ubuntu2 [237 kB] 1139s Get:36 http://ftpmaster.internal/ubuntu resolute/main s390x libsepol-dev s390x 3.9-2 [413 kB] 1139s Get:37 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libpcre2-16-0 s390x 10.46-1build1 [259 kB] 1139s Get:38 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libpcre2-32-0 s390x 10.46-1build1 [246 kB] 1139s Get:39 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libpcre2-posix3 s390x 10.46-1build1 [7224 B] 1139s Get:40 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libpcre2-dev s390x 10.46-1build1 [900 kB] 1139s Get:41 http://ftpmaster.internal/ubuntu resolute/main s390x libselinux-dev s390x 3.9-4 [178 kB] 1139s Get:42 http://ftpmaster.internal/ubuntu resolute/main s390x libmount-dev s390x 2.41.2-4ubuntu2 [37.6 kB] 1139s Get:43 http://ftpmaster.internal/ubuntu resolute/main s390x libsysprof-capture-4-dev s390x 49.0-5 [51.8 kB] 1139s Get:44 http://ftpmaster.internal/ubuntu resolute/main s390x libpkgconf3 s390x 1.8.1-4build1 [31.3 kB] 1139s Get:45 http://ftpmaster.internal/ubuntu resolute/main s390x pkgconf-bin s390x 1.8.1-4build1 [21.8 kB] 1139s Get:46 http://ftpmaster.internal/ubuntu resolute/main s390x pkgconf s390x 1.8.1-4build1 [16.8 kB] 1139s Get:47 http://ftpmaster.internal/ubuntu resolute/main s390x zlib1g-dev s390x 1:1.3.dfsg+really1.3.1-1ubuntu2 [897 kB] 1139s Get:48 http://ftpmaster.internal/ubuntu resolute/main s390x libgio-2.0-dev s390x 2.86.3-4 [1829 kB] 1139s Get:49 http://ftpmaster.internal/ubuntu resolute/main s390x libgio-2.0-dev-bin s390x 2.86.3-4 [129 kB] 1139s Get:50 http://ftpmaster.internal/ubuntu resolute/main s390x libglib2.0-bin s390x 2.86.3-4 [99.6 kB] 1139s Get:51 http://ftpmaster.internal/ubuntu resolute/main s390x libglib2.0-dev-bin s390x 2.86.3-4 [18.2 kB] 1139s Get:52 http://ftpmaster.internal/ubuntu resolute/main s390x libglib2.0-dev s390x 2.86.3-4 [18.9 kB] 1141s Fetched 65.8 MB in 4s (17.6 MB/s) 1141s Selecting previously unselected package libc-dev-bin. 1141s (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 ... 61954 files and directories currently installed.) 1142s Preparing to unpack .../00-libc-dev-bin_2.42-2ubuntu4_s390x.deb ... 1142s Unpacking libc-dev-bin (2.42-2ubuntu4) ... 1142s Selecting previously unselected package linux-libc-dev:s390x. 1142s Preparing to unpack .../01-linux-libc-dev_6.18.0-9.9_s390x.deb ... 1142s Unpacking linux-libc-dev:s390x (6.18.0-9.9) ... 1143s Selecting previously unselected package libcrypt-dev:s390x. 1143s Preparing to unpack .../02-libcrypt-dev_1%3a4.5.1-1_s390x.deb ... 1143s Unpacking libcrypt-dev:s390x (1:4.5.1-1) ... 1143s Selecting previously unselected package rpcsvc-proto. 1143s Preparing to unpack .../03-rpcsvc-proto_1.4.3-1build1_s390x.deb ... 1143s Unpacking rpcsvc-proto (1.4.3-1build1) ... 1143s Selecting previously unselected package libc6-dev:s390x. 1143s Preparing to unpack .../04-libc6-dev_2.42-2ubuntu4_s390x.deb ... 1143s Unpacking libc6-dev:s390x (2.42-2ubuntu4) ... 1144s Selecting previously unselected package libisl23:s390x. 1144s Preparing to unpack .../05-libisl23_0.27-1build1_s390x.deb ... 1144s Unpacking libisl23:s390x (0.27-1build1) ... 1144s Selecting previously unselected package libmpc3:s390x. 1144s Preparing to unpack .../06-libmpc3_1.3.1-2_s390x.deb ... 1144s Unpacking libmpc3:s390x (1.3.1-2) ... 1144s Selecting previously unselected package cpp-15-s390x-linux-gnu. 1144s Preparing to unpack .../07-cpp-15-s390x-linux-gnu_15.2.0-12ubuntu1_s390x.deb ... 1144s Unpacking cpp-15-s390x-linux-gnu (15.2.0-12ubuntu1) ... 1146s Selecting previously unselected package cpp-15. 1146s Preparing to unpack .../08-cpp-15_15.2.0-12ubuntu1_s390x.deb ... 1146s Unpacking cpp-15 (15.2.0-12ubuntu1) ... 1147s Selecting previously unselected package cpp-s390x-linux-gnu. 1147s Preparing to unpack .../09-cpp-s390x-linux-gnu_4%3a15.2.0-4ubuntu1_s390x.deb ... 1147s Unpacking cpp-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 1147s Selecting previously unselected package cpp. 1147s Preparing to unpack .../10-cpp_4%3a15.2.0-4ubuntu1_s390x.deb ... 1147s Unpacking cpp (4:15.2.0-4ubuntu1) ... 1147s Selecting previously unselected package libcc1-0:s390x. 1147s Preparing to unpack .../11-libcc1-0_15.2.0-12ubuntu1_s390x.deb ... 1147s Unpacking libcc1-0:s390x (15.2.0-12ubuntu1) ... 1147s Selecting previously unselected package libgomp1:s390x. 1147s Preparing to unpack .../12-libgomp1_15.2.0-12ubuntu1_s390x.deb ... 1147s Unpacking libgomp1:s390x (15.2.0-12ubuntu1) ... 1147s Selecting previously unselected package libitm1:s390x. 1147s Preparing to unpack .../13-libitm1_15.2.0-12ubuntu1_s390x.deb ... 1147s Unpacking libitm1:s390x (15.2.0-12ubuntu1) ... 1147s Selecting previously unselected package libasan8:s390x. 1147s Preparing to unpack .../14-libasan8_15.2.0-12ubuntu1_s390x.deb ... 1147s Unpacking libasan8:s390x (15.2.0-12ubuntu1) ... 1148s Selecting previously unselected package liblsan0:s390x. 1148s Preparing to unpack .../15-liblsan0_15.2.0-12ubuntu1_s390x.deb ... 1148s Unpacking liblsan0:s390x (15.2.0-12ubuntu1) ... 1148s Selecting previously unselected package libtsan2:s390x. 1148s Preparing to unpack .../16-libtsan2_15.2.0-12ubuntu1_s390x.deb ... 1148s Unpacking libtsan2:s390x (15.2.0-12ubuntu1) ... 1149s Selecting previously unselected package libubsan1:s390x. 1149s Preparing to unpack .../17-libubsan1_15.2.0-12ubuntu1_s390x.deb ... 1149s Unpacking libubsan1:s390x (15.2.0-12ubuntu1) ... 1149s Selecting previously unselected package libgcc-15-dev:s390x. 1149s Preparing to unpack .../18-libgcc-15-dev_15.2.0-12ubuntu1_s390x.deb ... 1149s Unpacking libgcc-15-dev:s390x (15.2.0-12ubuntu1) ... 1150s Selecting previously unselected package gcc-15-s390x-linux-gnu. 1150s Preparing to unpack .../19-gcc-15-s390x-linux-gnu_15.2.0-12ubuntu1_s390x.deb ... 1150s Unpacking gcc-15-s390x-linux-gnu (15.2.0-12ubuntu1) ... 1153s Selecting previously unselected package gcc-15. 1153s Preparing to unpack .../20-gcc-15_15.2.0-12ubuntu1_s390x.deb ... 1153s Unpacking gcc-15 (15.2.0-12ubuntu1) ... 1153s Selecting previously unselected package gcc-s390x-linux-gnu. 1153s Preparing to unpack .../21-gcc-s390x-linux-gnu_4%3a15.2.0-4ubuntu1_s390x.deb ... 1153s Unpacking gcc-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 1153s Selecting previously unselected package gcc. 1153s Preparing to unpack .../22-gcc_4%3a15.2.0-4ubuntu1_s390x.deb ... 1153s Unpacking gcc (4:15.2.0-4ubuntu1) ... 1153s Selecting previously unselected package libstdc++-15-dev:s390x. 1153s Preparing to unpack .../23-libstdc++-15-dev_15.2.0-12ubuntu1_s390x.deb ... 1153s Unpacking libstdc++-15-dev:s390x (15.2.0-12ubuntu1) ... 1155s Selecting previously unselected package g++-15-s390x-linux-gnu. 1155s Preparing to unpack .../24-g++-15-s390x-linux-gnu_15.2.0-12ubuntu1_s390x.deb ... 1155s Unpacking g++-15-s390x-linux-gnu (15.2.0-12ubuntu1) ... 1157s Selecting previously unselected package g++-15. 1157s Preparing to unpack .../25-g++-15_15.2.0-12ubuntu1_s390x.deb ... 1157s Unpacking g++-15 (15.2.0-12ubuntu1) ... 1157s Selecting previously unselected package g++-s390x-linux-gnu. 1157s Preparing to unpack .../26-g++-s390x-linux-gnu_4%3a15.2.0-4ubuntu1_s390x.deb ... 1157s Unpacking g++-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 1157s Selecting previously unselected package g++. 1157s Preparing to unpack .../27-g++_4%3a15.2.0-4ubuntu1_s390x.deb ... 1157s Unpacking g++ (4:15.2.0-4ubuntu1) ... 1158s Selecting previously unselected package build-essential. 1158s Preparing to unpack .../28-build-essential_12.12ubuntu2_s390x.deb ... 1158s Unpacking build-essential (12.12ubuntu2) ... 1158s Selecting previously unselected package gir1.2-glib-2.0-dev:s390x. 1158s Preparing to unpack .../29-gir1.2-glib-2.0-dev_2.86.3-4_s390x.deb ... 1158s Unpacking gir1.2-glib-2.0-dev:s390x (2.86.3-4) ... 1158s Selecting previously unselected package native-architecture. 1158s Preparing to unpack .../30-native-architecture_0.2.6build1_all.deb ... 1158s Unpacking native-architecture (0.2.6build1) ... 1158s Selecting previously unselected package girepository-tools:s390x. 1159s Preparing to unpack .../31-girepository-tools_2.86.3-4_s390x.deb ... 1159s Unpacking girepository-tools:s390x (2.86.3-4) ... 1159s Selecting previously unselected package libffi-dev:s390x. 1159s Preparing to unpack .../32-libffi-dev_3.5.2-3_s390x.deb ... 1159s Unpacking libffi-dev:s390x (3.5.2-3) ... 1159s Selecting previously unselected package uuid-dev:s390x. 1159s Preparing to unpack .../33-uuid-dev_2.41.2-4ubuntu2_s390x.deb ... 1159s Unpacking uuid-dev:s390x (2.41.2-4ubuntu2) ... 1159s Selecting previously unselected package libblkid-dev:s390x. 1159s Preparing to unpack .../34-libblkid-dev_2.41.2-4ubuntu2_s390x.deb ... 1159s Unpacking libblkid-dev:s390x (2.41.2-4ubuntu2) ... 1159s Selecting previously unselected package libsepol-dev:s390x. 1159s Preparing to unpack .../35-libsepol-dev_3.9-2_s390x.deb ... 1159s Unpacking libsepol-dev:s390x (3.9-2) ... 1160s Selecting previously unselected package libpcre2-16-0:s390x. 1160s Preparing to unpack .../36-libpcre2-16-0_10.46-1build1_s390x.deb ... 1160s Unpacking libpcre2-16-0:s390x (10.46-1build1) ... 1160s Selecting previously unselected package libpcre2-32-0:s390x. 1160s Preparing to unpack .../37-libpcre2-32-0_10.46-1build1_s390x.deb ... 1160s Unpacking libpcre2-32-0:s390x (10.46-1build1) ... 1160s Selecting previously unselected package libpcre2-posix3:s390x. 1160s Preparing to unpack .../38-libpcre2-posix3_10.46-1build1_s390x.deb ... 1160s Unpacking libpcre2-posix3:s390x (10.46-1build1) ... 1160s Selecting previously unselected package libpcre2-dev:s390x. 1160s Preparing to unpack .../39-libpcre2-dev_10.46-1build1_s390x.deb ... 1160s Unpacking libpcre2-dev:s390x (10.46-1build1) ... 1160s Selecting previously unselected package libselinux-dev:s390x. 1160s Preparing to unpack .../40-libselinux-dev_3.9-4_s390x.deb ... 1160s Unpacking libselinux-dev:s390x (3.9-4) ... 1161s Selecting previously unselected package libmount-dev:s390x. 1161s Preparing to unpack .../41-libmount-dev_2.41.2-4ubuntu2_s390x.deb ... 1161s Unpacking libmount-dev:s390x (2.41.2-4ubuntu2) ... 1161s Selecting previously unselected package libsysprof-capture-4-dev:s390x. 1161s Preparing to unpack .../42-libsysprof-capture-4-dev_49.0-5_s390x.deb ... 1161s Unpacking libsysprof-capture-4-dev:s390x (49.0-5) ... 1161s Selecting previously unselected package libpkgconf3:s390x. 1161s Preparing to unpack .../43-libpkgconf3_1.8.1-4build1_s390x.deb ... 1161s Unpacking libpkgconf3:s390x (1.8.1-4build1) ... 1161s Selecting previously unselected package pkgconf-bin. 1161s Preparing to unpack .../44-pkgconf-bin_1.8.1-4build1_s390x.deb ... 1161s Unpacking pkgconf-bin (1.8.1-4build1) ... 1161s Selecting previously unselected package pkgconf:s390x. 1161s Preparing to unpack .../45-pkgconf_1.8.1-4build1_s390x.deb ... 1161s Unpacking pkgconf:s390x (1.8.1-4build1) ... 1162s Selecting previously unselected package zlib1g-dev:s390x. 1162s Preparing to unpack .../46-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu2_s390x.deb ... 1162s Unpacking zlib1g-dev:s390x (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 1162s Selecting previously unselected package libgio-2.0-dev:s390x. 1162s Preparing to unpack .../47-libgio-2.0-dev_2.86.3-4_s390x.deb ... 1162s Unpacking libgio-2.0-dev:s390x (2.86.3-4) ... 1163s Selecting previously unselected package libgio-2.0-dev-bin. 1163s Preparing to unpack .../48-libgio-2.0-dev-bin_2.86.3-4_s390x.deb ... 1163s Unpacking libgio-2.0-dev-bin (2.86.3-4) ... 1164s Selecting previously unselected package libglib2.0-bin. 1164s Preparing to unpack .../49-libglib2.0-bin_2.86.3-4_s390x.deb ... 1164s Unpacking libglib2.0-bin (2.86.3-4) ... 1164s Selecting previously unselected package libglib2.0-dev-bin. 1164s Preparing to unpack .../50-libglib2.0-dev-bin_2.86.3-4_s390x.deb ... 1164s Unpacking libglib2.0-dev-bin (2.86.3-4) ... 1164s Selecting previously unselected package libglib2.0-dev:s390x. 1164s Preparing to unpack .../51-libglib2.0-dev_2.86.3-4_s390x.deb ... 1164s Unpacking libglib2.0-dev:s390x (2.86.3-4) ... 1164s Setting up libgio-2.0-dev-bin (2.86.3-4) ... 1166s Setting up native-architecture (0.2.6build1) ... 1166s Setting up linux-libc-dev:s390x (6.18.0-9.9) ... 1166s Setting up libglib2.0-bin (2.86.3-4) ... 1166s Setting up libgomp1:s390x (15.2.0-12ubuntu1) ... 1166s Setting up libffi-dev:s390x (3.5.2-3) ... 1166s Setting up libpcre2-16-0:s390x (10.46-1build1) ... 1166s Setting up libsysprof-capture-4-dev:s390x (49.0-5) ... 1166s Setting up libpcre2-32-0:s390x (10.46-1build1) ... 1166s Setting up libpkgconf3:s390x (1.8.1-4build1) ... 1166s Setting up rpcsvc-proto (1.4.3-1build1) ... 1166s Setting up libmpc3:s390x (1.3.1-2) ... 1166s Setting up libsepol-dev:s390x (3.9-2) ... 1166s Setting up pkgconf-bin (1.8.1-4build1) ... 1166s Setting up libubsan1:s390x (15.2.0-12ubuntu1) ... 1166s Setting up libpcre2-posix3:s390x (10.46-1build1) ... 1166s Setting up gir1.2-glib-2.0-dev:s390x (2.86.3-4) ... 1166s Setting up libcrypt-dev:s390x (1:4.5.1-1) ... 1166s Setting up libasan8:s390x (15.2.0-12ubuntu1) ... 1166s Setting up libtsan2:s390x (15.2.0-12ubuntu1) ... 1166s Setting up libisl23:s390x (0.27-1build1) ... 1166s Setting up libc-dev-bin (2.42-2ubuntu4) ... 1166s Setting up libcc1-0:s390x (15.2.0-12ubuntu1) ... 1166s Setting up liblsan0:s390x (15.2.0-12ubuntu1) ... 1166s Setting up libitm1:s390x (15.2.0-12ubuntu1) ... 1166s Setting up girepository-tools:s390x (2.86.3-4) ... 1166s Setting up libgcc-15-dev:s390x (15.2.0-12ubuntu1) ... 1166s Setting up pkgconf:s390x (1.8.1-4build1) ... 1166s Setting up cpp-15-s390x-linux-gnu (15.2.0-12ubuntu1) ... 1166s Setting up libc6-dev:s390x (2.42-2ubuntu4) ... 1166s Setting up gcc-15-s390x-linux-gnu (15.2.0-12ubuntu1) ... 1166s Setting up libglib2.0-dev-bin (2.86.3-4) ... 1166s Setting up libpcre2-dev:s390x (10.46-1build1) ... 1166s Setting up cpp-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 1166s Setting up libstdc++-15-dev:s390x (15.2.0-12ubuntu1) ... 1166s Setting up gcc-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 1166s Setting up uuid-dev:s390x (2.41.2-4ubuntu2) ... 1166s Setting up zlib1g-dev:s390x (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 1166s Setting up cpp-15 (15.2.0-12ubuntu1) ... 1166s Setting up cpp (4:15.2.0-4ubuntu1) ... 1166s Setting up libselinux-dev:s390x (3.9-4) ... 1166s Setting up g++-15-s390x-linux-gnu (15.2.0-12ubuntu1) ... 1166s Setting up libblkid-dev:s390x (2.41.2-4ubuntu2) ... 1166s Setting up g++-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 1166s Setting up gcc-15 (15.2.0-12ubuntu1) ... 1166s Setting up g++-15 (15.2.0-12ubuntu1) ... 1166s Setting up libmount-dev:s390x (2.41.2-4ubuntu2) ... 1166s Setting up libgio-2.0-dev:s390x (2.86.3-4) ... 1166s Setting up gcc (4:15.2.0-4ubuntu1) ... 1166s Setting up g++ (4:15.2.0-4ubuntu1) ... 1167s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 1167s Setting up build-essential (12.12ubuntu2) ... 1167s Processing triggers for install-info (7.2-5) ... 1168s Processing triggers for libc-bin (2.42-2ubuntu4) ... 1168s Processing triggers for man-db (2.13.1-1) ... 1175s Processing triggers for libglib2.0-0t64:s390x (2.86.3-4) ... 1175s No schema files found: doing nothing. 1175s Setting up libglib2.0-dev:s390x (2.86.3-4) ... 1191s autopkgtest [09:44:22]: test libglib2.0-dev: [----------------------- 1192s + debian/tests/build 1192s + mode=dynamic 1192s + getopt -o --long static -n debian/tests/build -- 1192s + getopt_temp= -- 1192s + eval set -- -- 1192s + set -- -- 1192s + true 1192s + shift 1192s + break 1192s + mktemp -d 1192s + WORKDIR=/tmp/tmp.G1loZi6BDR 1192s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 1192s + cd /tmp/tmp.G1loZi6BDR 1192s + [ -n ] 1192s + CROSS_COMPILE= 1192s + cat 1192s + cat 1192s + cat 1192s + cat 1192s + cat 1192s + cat 1192s + cflags= 1192s + pcflags= 1192s + packages=glib-2.0 1192s + pkg-config --cflags --libs glib-2.0 1192s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 1194s + echo build (glib, dynamic): OK 1194s + [ -x glib-dynamic ] 1194s + foo=bar ./glib-dynamic 1194s + echo run (glib, dynamic): OK 1194s + cflags= 1194s + pcflags= 1194s + packages=gobject-2.0 1194s + pkg-config --cflags --libs gobject-2.0 1194s build (glib, dynamic): OK 1194s run (glib, dynamic): OK 1194s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 1195s + echo build (gobject, dynamic): OK 1195s + [ -x gobject-dynamicbuild (gobject, dynamic): OK 1195s ] 1195s + foo=bar ./gobject-dynamic 1195s + echo run (gobject, dynamic): OK 1195s + cflags= 1195s + pcflags= 1195s + packages=gio-2.0 1195s + pkg-config --cflags --libs gio-2.0 1195s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 1195s run (gobject, dynamic): OK 1196s + echo build (gio, dynamic): OK 1196s + [ -x gio-dynamic ] 1196s + foo=bar ./gio-dynamic 1196s build (gio, dynamic): OK 1196s + echo run (gio, dynamic): OK 1196s + cflags= 1196s + pcflags= 1196s + packages=gio-unix-2.0 1196s + pkg-config --cflags --libs gio-unix-2.0 1196s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 1196s run (gio, dynamic): OK 1197s + echo build (gio-unix, dynamic): OK 1197s + [ -x gio-unix-dynamic ] 1197s + build (gio-unix, dynamic): OK 1197s foo=bar ./gio-unix-dynamic 1197s + echo run (gio-unix, dynamic): OK 1197s run (gio-unix, dynamic): OK 1197s + cflags= 1197s + pcflags= 1197s + packages=gmodule-2.0 1197s + pkg-config --cflags --libs gmodule-2.0 1197s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-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 1198s build (gmodule, dynamic): OK 1198s + echo build (gmodule, dynamic): OK 1198s + [ -x gmodule-dynamic ] 1198s + foo=bar ./gmodule-dynamic 1198s + echo run (gmodule, dynamic): OK 1198s + cflags= 1198s + pcflags= 1198s + packages=gthread-2.0 1198s run (gmodule, dynamic): OK 1198s + pkg-config --cflags --libs gthread-2.0 1198s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 1198s build (gthread, dynamic): OK 1198s + echo build (gthread, dynamic): OK 1198s + [ -x gthread-dynamic ] 1198s + foo=bar ./gthread-dynamic 1198s + echo run (gthread, dynamic): OK 1198s + rm -rf /tmp/tmp.G1loZi6BDR 1198s run (gthread, dynamic): OK 1198s + debian/tests/build-static 1198s + mode=dynamic 1198s + getopt -o --long static -n debian/tests/build -- --static 1198s + getopt_temp= --static -- 1198s + eval set -- --static -- 1198s + set -- --static -- 1198s + true 1198s + mode=static 1198s + shift 1198s + continue 1198s + true 1198s + shift 1198s + break 1198s + mktemp -d 1198s + WORKDIR=/tmp/tmp.kH062QnDSq 1198s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 1198s + cd /tmp/tmp.kH062QnDSq 1198s + [ -n ] 1198s + CROSS_COMPILE= 1198s + cat 1198s + cat 1199s + cat 1199s + cat 1199s + cat 1199s + cat 1199s + cflags= 1199s + pcflags= 1199s + packages=glib-2.0 1199s + cflags=-static 1199s + pcflags=--static 1199s + pkg-config --static --cflags --libs glib-2.0 1199s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 1199s /usr/bin/s390x-linux-gnu-ld.bfd: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 1199s (.text+0xec): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1199s /usr/bin/s390x-linux-gnu-ld.bfd: (.text+0x2a6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1199s /usr/bin/s390x-linux-gnu-ld.bfd: (.text+0x12a): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1200s build (glib, static): OK 1200s + echo build (glib, static): OK 1200s + [ -x glib-static ] 1200s + foo=bar ./glib-static 1200s + echo run (glib, static): OK 1200s + cflags= 1200s + pcflags= 1200s + packages=gobject-2.0 1200s + cflags=-static 1200s + pcflags=--static 1200s run (glib, static): OK 1200s + pkg-config --static --cflags --libs gobject-2.0 1200s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 -lffi 1200s /usr/bin/s390x-linux-gnu-ld.bfd: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 1200s (.text+0xec): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1200s /usr/bin/s390x-linux-gnu-ld.bfd: (.text+0x2a6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1200s /usr/bin/s390x-linux-gnu-ld.bfd: (.text+0x12a): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1201s build (gobject, static): OK 1201s + echo build (gobject, static): OK 1201s + [ -x gobject-static ] 1201s + foo=bar ./gobject-static 1201s run (gobject, static): OK 1201s + echo run (gobject, static): OK 1201s + cflags= 1201s + pcflags= 1201s + packages=gio-2.0 1201s + cflags=-static 1201s + pcflags=--static 1201s + continue 1201s + cflags= 1201s + pcflags= 1201s + packages=gio-unix-2.0 1201s + cflags=-static 1201s + pcflags=--static 1201s + continue 1201s + cflags= 1201s + pcflags= 1201s + packages=gmodule-2.0 1201s + cflags=-static 1201s + pcflags=--static 1201s + pkg-config --static --cflags --libs gmodule-2.0 1201s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 1202s /usr/bin/s390x-linux-gnu-ld.bfd: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 1202s (.text+0x672): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1202s /usr/bin/s390x-linux-gnu-ld.bfd: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 1202s (.text+0xec): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1202s /usr/bin/s390x-linux-gnu-ld.bfd: (.text+0x2a6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1202s /usr/bin/s390x-linux-gnu-ld.bfd: (.text+0x12a): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1202s build (gmodule, static): OK 1202s + echo build (gmodule, static): OK 1202s + [ -x gmodule-static ] 1202s + foo=bar ./gmodule-static 1202s run (gmodule, static): OK 1202s + echo run (gmodule, static): OK 1202s + cflags= 1202s + pcflags= 1202s + packages=gthread-2.0 1202s + cflags=-static 1202s + pcflags=--static 1202s + pkg-config --static --cflags --libs gthread-2.0 1202s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 1203s /usr/bin/s390x-linux-gnu-ld.bfd: /usr/lib/gcc/s390x-linux-gnu/15/../../../s390x-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 1203s (.text+0xec): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1203s /usr/bin/s390x-linux-gnu-ld.bfd: (.text+0x2a6): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1203s /usr/bin/s390x-linux-gnu-ld.bfd: (.text+0x12a): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1203s build (gthread, static): OK 1203s run (gthread, static): OK 1203s + echo build (gthread, static): OK 1203s + [ -x gthread-static ] 1203s + foo=bar ./gthread-static 1203s + echo run (gthread, static): OK 1203s + rm -rf /tmp/tmp.kH062QnDSq 1203s + debian/tests/girepository-tools 1203s + cd /tmp/autopkgtest.n2KYti/autopkgtest_tmp 1203s + dpkg-architecture -qDEB_HOST_GNU_TYPE 1203s + DEB_HOST_GNU_TYPE=s390x-linux-gnu 1203s + dpkg-architecture -qDEB_HOST_MULTIARCH 1204s + DEB_HOST_MULTIARCH=s390x-linux-gnu 1204s + s390x-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 1204s typelib: GLib-2.0 1204s + s390x-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/s390x-linux-gnu/gir-1.0/GLib-2.0.gir 1205s + s390x-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 1205s + debian/tests/libgio-2.0-dev-bin 1205s + gdbus-codegen --help 1205s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1205s [--c-namespace NAMESPACE] [--c-generate-object-manager] 1205s [--c-generate-autocleanup {none,objects,all}] 1205s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1205s [--generate-rst OUTFILES] [--pragma-once] 1205s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1205s [--glib-min-required VERSION] 1205s [--glib-max-allowed VERSION] 1205s [--symbol-decorator SYMBOL_DECORATOR] 1205s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1205s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1205s [--generate-c-code OUTFILES | --header | --body | 1205s --interface-info-header | --interface-info-body] 1205s [--output FILE | --output-directory OUTDIR] 1205s FILE [FILE ...] 1205s 1205s D-Bus code and documentation generator 1205s 1205s positional arguments: 1205s FILE D-Bus introspection XML file 1205s 1205s options: 1205s -h, --help show this help message and exit 1205s --interface-prefix PREFIX 1205s String to strip from D-Bus interface names for code 1205s and docs 1205s --c-namespace NAMESPACE 1205s The namespace to use for generated C code 1205s --c-generate-object-manager 1205s Generate a GDBusObjectManagerClient subclass when 1205s generating C code 1205s --c-generate-autocleanup {none,objects,all} 1205s Generate autocleanup support 1205s --generate-docbook OUTFILES 1205s Generate Docbook in OUTFILES-org.Project.IFace.xml 1205s --generate-md OUTFILES 1205s Generate Markdown in OUTFILES-org.Project.IFace.md 1205s --generate-rst OUTFILES 1205s Generate reStructuredText in OUTFILES- 1205s org.Project.IFace.rst 1205s --pragma-once Use "pragma once" as the inclusion guard 1205s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 1205s Add annotation (may be used several times) 1205s --glib-min-required VERSION 1205s Minimum version of GLib to be supported by the 1205s outputted code (default: 2.30) 1205s --glib-max-allowed VERSION 1205s Maximum version of GLib to be used by the outputted 1205s code (default: current GLib version) 1205s --symbol-decorator SYMBOL_DECORATOR 1205s Macro used to decorate a symbol in the outputted 1205s header, possibly to export symbols 1205s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 1205s Additional header required for decorator specified by 1205s --symbol-decorator 1205s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 1205s Additional define required for decorator specified by 1205s --symbol-decorator 1205s --generate-c-code OUTFILES 1205s Generate C code in OUTFILES.[ch] 1205s --header Generate C headers 1205s --body Generate C code 1205s --interface-info-header 1205s Generate GDBusInterfaceInfo C header 1205s --interface-info-body 1205s Generate GDBusInterfaceInfo C code 1205s --output FILE Write output into the specified file 1205s --output-directory OUTDIR 1205s Location to output generated files 1205s + glib-compile-resources --version 1205s 2.86.3 1205s + glib-genmarshal --version 1206s glib-genmarshal version 2.86.3 1206s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 1206s You may redistribute copies of glib-genmarshal under the terms of 1206s the GNU General Public License which can be found in the 1206s GLib source package. Sources, examples and contact 1206s information are available at http://www.gtk.org 1206s + glib-gettextize --version 1206s + glib-mkenums --version 1206s /usr/bin/glib-gettextize (GNU glib) 2.86.3 1206s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 1206s This is free software; see the source for copying conditions. There is NO 1206s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 1206s Written by Ulrich Drepper 1206s glib-mkenums version 2.86.3 1206s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 1206s You may redistribute copies of glib-mkenums under the terms of 1206s the GNU General Public License which can be found in the 1206s GLib source package. Sources, examples and contact 1206s information are available at http://www.gtk.org 1206s GObject 1206s + gobject-query tree 1206s + gtester --version 1206s + gtester-report --version 1206s gtester version 2.86.3 1206s gtester-report (GLib utils) version 2.86.3. 1206s + cd /tmp/autopkgtest.n2KYti/autopkgtest_tmp 1206s + dpkg-architecture -qDEB_HOST_MULTIARCH 1206s + DEB_HOST_MULTIARCH=s390x-linux-gnu 1206s + gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 1206s typelib: GLib-2.0 1206s + gi-compile-repository -o GLib.typelib /usr/lib/s390x-linux-gnu/gir-1.0/GLib-2.0.gir 1207s + gi-decompile-typelib -o GLib.gir GLib.typelib 1208s autopkgtest [09:44:39]: test libglib2.0-dev: -----------------------] 1209s libglib2.0-dev PASS (superficial) 1209s autopkgtest [09:44:40]: test libglib2.0-dev: - - - - - - - - - - results - - - - - - - - - - 1210s autopkgtest [09:44:41]: test installed-tests: preparing testbed 1228s Creating nova instance adt-resolute-s390x-glib2.0-20260207-092431-juju-7f2275-prod-proposed-migration-environment-15-6e4bd5e6-d99e-4bc5-a398-82926f07dd34 from image adt/ubuntu-resolute-s390x-server-20260206.img (UUID 49c0a1d9-89cb-4112-bb14-7a2a39e81cac)... 1422s autopkgtest [09:48:13]: testbed dpkg architecture: s390x 1423s autopkgtest [09:48:14]: testbed apt version: 3.1.15 1424s autopkgtest [09:48:15]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1425s autopkgtest [09:48:16]: testbed release detected to be: resolute 1427s autopkgtest [09:48:18]: updating testbed package index (apt update) 1429s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 1429s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 1429s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 1430s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 1430s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [35.1 kB] 1431s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 1431s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [196 kB] 1431s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1608 kB] 1431s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x Packages [233 kB] 1431s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x Packages [1399 kB] 1432s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse s390x Packages [10.2 kB] 1434s Fetched 3616 kB in 6s (640 kB/s) 1442s Reading package lists... 1444s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 1444s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 1444s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 1444s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 1451s Reading package lists... 1452s Reading package lists... 1453s Building dependency tree... 1453s Reading state information... 1454s Calculating upgrade... 1456s The following packages will be upgraded: 1456s 3cpio libpcap0.8t64 libpcre2-8-0 1457s 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1457s Need to get 743 kB of archives. 1457s After this operation, 4096 B disk space will be freed. 1457s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libpcre2-8-0 s390x 10.46-1build1 [276 kB] 1457s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x libpcap0.8t64 s390x 1.10.5-2ubuntu3 [155 kB] 1457s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x 3cpio s390x 0.14.0-1ubuntu1 [313 kB] 1462s dpkg-preconfigure: unable to re-open stdin: No such file or directory 1462s Fetched 743 kB in 0s (3029 kB/s) 1470s (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 ... 61954 files and directories currently installed.) 1470s Preparing to unpack .../libpcre2-8-0_10.46-1build1_s390x.deb ... 1471s Unpacking libpcre2-8-0:s390x (10.46-1build1) over (10.46-1) ... 1472s Setting up libpcre2-8-0:s390x (10.46-1build1) ... 1474s (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 ... 61954 files and directories currently installed.) 1474s Preparing to unpack .../libpcap0.8t64_1.10.5-2ubuntu3_s390x.deb ... 1475s Unpacking libpcap0.8t64:s390x (1.10.5-2ubuntu3) over (1.10.5-2ubuntu2) ... 1477s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_s390x.deb ... 1479s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 1484s Setting up 3cpio (0.14.0-1ubuntu1) ... 1486s Setting up libpcap0.8t64:s390x (1.10.5-2ubuntu3) ... 1487s Processing triggers for man-db (2.13.1-1) ... 1516s Processing triggers for libselinux1:s390x (3.9-4) ... 1516s Processing triggers for libc-bin (2.42-2ubuntu4) ... 1520s autopkgtest [09:49:51]: upgrading testbed (apt dist-upgrade and autopurge) 1521s Reading package lists... 1522s Building dependency tree... 1522s Reading state information... 1524s Calculating upgrade... 1525s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1526s Reading package lists... 1527s Building dependency tree... 1527s Reading state information... 1528s Solving dependencies... 1528s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1539s Reading package lists... 1540s Building dependency tree... 1540s Reading state information... 1541s Solving dependencies... 1542s The following NEW packages will be installed: 1542s dbus-x11 desktop-file-utils gir1.2-glib-2.0-dev girepository-tools 1542s gnome-desktop-testing libfontenc1 libfreetype6 libgbm1 libgio-2.0-dev-bin 1542s libgl1 libgl1-mesa-dri libglib2.0-bin libglib2.0-dev-bin libglib2.0-tests 1542s libglvnd0 libglx-mesa0 libglx0 libice6 libpixman-1-0 libsm6 libvulkan1 1542s libx11-xcb1 libxaw7 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 1542s libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxfont2 libxkbfile1 libxmu6 1542s libxpm4 libxrandr2 libxrender1 libxshmfence1 libxt6t64 libxxf86vm1 1542s mesa-libgallium native-architecture python3-dbusmock tzdata-legacy 1542s x11-common x11-xkb-utils xserver-common xvfb 1543s 0 upgraded, 47 newly installed, 0 to remove and 0 not upgraded. 1543s Need to get 15.5 MB of archives. 1543s After this operation, 73.9 MB of additional disk space will be used. 1543s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x dbus-x11 s390x 1.16.2-2ubuntu2 [23.9 kB] 1543s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x desktop-file-utils s390x 0.28-1build1 [54.2 kB] 1543s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x gir1.2-glib-2.0-dev s390x 2.86.3-4 [865 kB] 1543s Get:4 http://ftpmaster.internal/ubuntu resolute/main s390x native-architecture all 0.2.6build1 [2256 B] 1543s Get:5 http://ftpmaster.internal/ubuntu resolute/main s390x girepository-tools s390x 2.86.3-4 [115 kB] 1543s Get:6 http://ftpmaster.internal/ubuntu resolute/universe s390x gnome-desktop-testing s390x 2021.1-5 [16.7 kB] 1543s Get:7 http://ftpmaster.internal/ubuntu resolute/main s390x libfontenc1 s390x 1:1.1.8-1build2 [14.5 kB] 1543s Get:8 http://ftpmaster.internal/ubuntu resolute/main s390x libfreetype6 s390x 2.14.1+dfsg-2 [443 kB] 1543s Get:9 http://ftpmaster.internal/ubuntu resolute/main s390x libx11-xcb1 s390x 2:1.8.12-1build1 [7972 B] 1543s Get:10 http://ftpmaster.internal/ubuntu resolute/main s390x libxcb-dri3-0 s390x 1.17.0-2ubuntu1 [7682 B] 1543s Get:11 http://ftpmaster.internal/ubuntu resolute/main s390x libxcb-present0 s390x 1.17.0-2ubuntu1 [6346 B] 1543s Get:12 http://ftpmaster.internal/ubuntu resolute/main s390x libxcb-randr0 s390x 1.17.0-2ubuntu1 [19.0 kB] 1544s Get:13 http://ftpmaster.internal/ubuntu resolute/main s390x libxcb-sync1 s390x 1.17.0-2ubuntu1 [9508 B] 1544s Get:14 http://ftpmaster.internal/ubuntu resolute/main s390x libxcb-xfixes0 s390x 1.17.0-2ubuntu1 [10.6 kB] 1544s Get:15 http://ftpmaster.internal/ubuntu resolute/main s390x libxshmfence1 s390x 1.3.3-1build1 [5254 B] 1544s Get:16 http://ftpmaster.internal/ubuntu resolute/main s390x mesa-libgallium s390x 25.3.3-1ubuntu1 [8357 kB] 1544s Get:17 http://ftpmaster.internal/ubuntu resolute/main s390x libgbm1 s390x 25.3.3-1ubuntu1 [35.1 kB] 1544s Get:18 http://ftpmaster.internal/ubuntu resolute/main s390x libgio-2.0-dev-bin s390x 2.86.3-4 [129 kB] 1544s Get:19 http://ftpmaster.internal/ubuntu resolute/main s390x libvulkan1 s390x 1.4.335.0-1 [156 kB] 1544s Get:20 http://ftpmaster.internal/ubuntu resolute/main s390x libgl1-mesa-dri s390x 25.3.3-1ubuntu1 [36.7 kB] 1544s Get:21 http://ftpmaster.internal/ubuntu resolute/main s390x libglib2.0-bin s390x 2.86.3-4 [99.6 kB] 1544s Get:22 http://ftpmaster.internal/ubuntu resolute/main s390x libglib2.0-dev-bin s390x 2.86.3-4 [18.2 kB] 1544s Get:23 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-dbusmock all 0.38.1-1 [92.0 kB] 1544s Get:24 http://ftpmaster.internal/ubuntu resolute/main s390x tzdata-legacy all 2025c-3ubuntu3 [99.3 kB] 1544s Get:25 http://ftpmaster.internal/ubuntu resolute/universe s390x libglib2.0-tests s390x 2.86.3-4 [2336 kB] 1544s Get:26 http://ftpmaster.internal/ubuntu resolute/main s390x libxcb-glx0 s390x 1.17.0-2ubuntu1 [25.6 kB] 1544s Get:27 http://ftpmaster.internal/ubuntu resolute/main s390x libxcb-shm0 s390x 1.17.0-2ubuntu1 [5926 B] 1544s Get:28 http://ftpmaster.internal/ubuntu resolute/main s390x libxxf86vm1 s390x 1:1.1.4-2 [10.6 kB] 1544s Get:29 http://ftpmaster.internal/ubuntu resolute/main s390x libglx-mesa0 s390x 25.3.3-1ubuntu1 [114 kB] 1544s Get:30 http://ftpmaster.internal/ubuntu resolute/main s390x x11-common all 1:7.7+24ubuntu1 [22.4 kB] 1544s Get:31 http://ftpmaster.internal/ubuntu resolute/main s390x libice6 s390x 2:1.1.1-1build1 [46.2 kB] 1544s Get:32 http://ftpmaster.internal/ubuntu resolute/main s390x libpixman-1-0 s390x 0.46.4-1 [217 kB] 1544s Get:33 http://ftpmaster.internal/ubuntu resolute/main s390x libsm6 s390x 2:1.2.6-1build1 [18.3 kB] 1544s Get:34 http://ftpmaster.internal/ubuntu resolute/main s390x libxt6t64 s390x 1:1.2.1-1.3 [180 kB] 1544s Get:35 http://ftpmaster.internal/ubuntu resolute/main s390x libxmu6 s390x 2:1.1.3-4 [51.7 kB] 1544s Get:36 http://ftpmaster.internal/ubuntu resolute/main s390x libxpm4 s390x 1:3.5.17-1build3 [41.5 kB] 1544s Get:37 http://ftpmaster.internal/ubuntu resolute/main s390x libxaw7 s390x 2:1.0.16-1build1 [201 kB] 1544s Get:38 http://ftpmaster.internal/ubuntu resolute/main s390x libxfont2 s390x 1:2.0.6-2 [105 kB] 1544s Get:39 http://ftpmaster.internal/ubuntu resolute/main s390x libxkbfile1 s390x 1:1.1.0-1build5 [75.9 kB] 1544s Get:40 http://ftpmaster.internal/ubuntu resolute/main s390x libxrender1 s390x 1:0.9.12-1 [20.9 kB] 1544s Get:41 http://ftpmaster.internal/ubuntu resolute/main s390x libxrandr2 s390x 2:1.5.4-1build1 [20.4 kB] 1544s Get:42 http://ftpmaster.internal/ubuntu resolute/main s390x x11-xkb-utils s390x 7.7+9build1 [168 kB] 1544s Get:43 http://ftpmaster.internal/ubuntu resolute/main s390x xserver-common all 2:21.1.21-1ubuntu1 [34.8 kB] 1544s Get:44 http://ftpmaster.internal/ubuntu resolute/main s390x libglvnd0 s390x 1.7.0-3 [106 kB] 1544s Get:45 http://ftpmaster.internal/ubuntu resolute/main s390x libglx0 s390x 1.7.0-3 [30.9 kB] 1544s Get:46 http://ftpmaster.internal/ubuntu resolute/main s390x libgl1 s390x 1.7.0-3 [134 kB] 1544s Get:47 http://ftpmaster.internal/ubuntu resolute/universe s390x xvfb s390x 2:21.1.21-1ubuntu1 [938 kB] 1548s Fetched 15.5 MB in 2s (7134 kB/s) 1548s Selecting previously unselected package dbus-x11. 1548s (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 ... 61954 files and directories currently installed.) 1548s Preparing to unpack .../00-dbus-x11_1.16.2-2ubuntu2_s390x.deb ... 1548s Unpacking dbus-x11 (1.16.2-2ubuntu2) ... 1549s Selecting previously unselected package desktop-file-utils. 1549s Preparing to unpack .../01-desktop-file-utils_0.28-1build1_s390x.deb ... 1549s Unpacking desktop-file-utils (0.28-1build1) ... 1549s Selecting previously unselected package gir1.2-glib-2.0-dev:s390x. 1549s Preparing to unpack .../02-gir1.2-glib-2.0-dev_2.86.3-4_s390x.deb ... 1549s Unpacking gir1.2-glib-2.0-dev:s390x (2.86.3-4) ... 1551s Selecting previously unselected package native-architecture. 1551s Preparing to unpack .../03-native-architecture_0.2.6build1_all.deb ... 1551s Unpacking native-architecture (0.2.6build1) ... 1551s Selecting previously unselected package girepository-tools:s390x. 1551s Preparing to unpack .../04-girepository-tools_2.86.3-4_s390x.deb ... 1551s Unpacking girepository-tools:s390x (2.86.3-4) ... 1551s Selecting previously unselected package gnome-desktop-testing. 1551s Preparing to unpack .../05-gnome-desktop-testing_2021.1-5_s390x.deb ... 1551s Unpacking gnome-desktop-testing (2021.1-5) ... 1551s Selecting previously unselected package libfontenc1:s390x. 1551s Preparing to unpack .../06-libfontenc1_1%3a1.1.8-1build2_s390x.deb ... 1551s Unpacking libfontenc1:s390x (1:1.1.8-1build2) ... 1551s Selecting previously unselected package libfreetype6:s390x. 1551s Preparing to unpack .../07-libfreetype6_2.14.1+dfsg-2_s390x.deb ... 1551s Unpacking libfreetype6:s390x (2.14.1+dfsg-2) ... 1552s Selecting previously unselected package libx11-xcb1:s390x. 1552s Preparing to unpack .../08-libx11-xcb1_2%3a1.8.12-1build1_s390x.deb ... 1552s Unpacking libx11-xcb1:s390x (2:1.8.12-1build1) ... 1552s Selecting previously unselected package libxcb-dri3-0:s390x. 1552s Preparing to unpack .../09-libxcb-dri3-0_1.17.0-2ubuntu1_s390x.deb ... 1552s Unpacking libxcb-dri3-0:s390x (1.17.0-2ubuntu1) ... 1552s Selecting previously unselected package libxcb-present0:s390x. 1552s Preparing to unpack .../10-libxcb-present0_1.17.0-2ubuntu1_s390x.deb ... 1552s Unpacking libxcb-present0:s390x (1.17.0-2ubuntu1) ... 1552s Selecting previously unselected package libxcb-randr0:s390x. 1553s Preparing to unpack .../11-libxcb-randr0_1.17.0-2ubuntu1_s390x.deb ... 1553s Unpacking libxcb-randr0:s390x (1.17.0-2ubuntu1) ... 1553s Selecting previously unselected package libxcb-sync1:s390x. 1553s Preparing to unpack .../12-libxcb-sync1_1.17.0-2ubuntu1_s390x.deb ... 1553s Unpacking libxcb-sync1:s390x (1.17.0-2ubuntu1) ... 1553s Selecting previously unselected package libxcb-xfixes0:s390x. 1553s Preparing to unpack .../13-libxcb-xfixes0_1.17.0-2ubuntu1_s390x.deb ... 1553s Unpacking libxcb-xfixes0:s390x (1.17.0-2ubuntu1) ... 1553s Selecting previously unselected package libxshmfence1:s390x. 1553s Preparing to unpack .../14-libxshmfence1_1.3.3-1build1_s390x.deb ... 1553s Unpacking libxshmfence1:s390x (1.3.3-1build1) ... 1553s Selecting previously unselected package mesa-libgallium:s390x. 1553s Preparing to unpack .../15-mesa-libgallium_25.3.3-1ubuntu1_s390x.deb ... 1553s Unpacking mesa-libgallium:s390x (25.3.3-1ubuntu1) ... 1555s Selecting previously unselected package libgbm1:s390x. 1555s Preparing to unpack .../16-libgbm1_25.3.3-1ubuntu1_s390x.deb ... 1555s Unpacking libgbm1:s390x (25.3.3-1ubuntu1) ... 1555s Selecting previously unselected package libgio-2.0-dev-bin. 1555s Preparing to unpack .../17-libgio-2.0-dev-bin_2.86.3-4_s390x.deb ... 1555s Unpacking libgio-2.0-dev-bin (2.86.3-4) ... 1555s Selecting previously unselected package libvulkan1:s390x. 1555s Preparing to unpack .../18-libvulkan1_1.4.335.0-1_s390x.deb ... 1555s Unpacking libvulkan1:s390x (1.4.335.0-1) ... 1555s Selecting previously unselected package libgl1-mesa-dri:s390x. 1555s Preparing to unpack .../19-libgl1-mesa-dri_25.3.3-1ubuntu1_s390x.deb ... 1556s Unpacking libgl1-mesa-dri:s390x (25.3.3-1ubuntu1) ... 1556s Selecting previously unselected package libglib2.0-bin. 1556s Preparing to unpack .../20-libglib2.0-bin_2.86.3-4_s390x.deb ... 1556s Unpacking libglib2.0-bin (2.86.3-4) ... 1557s Selecting previously unselected package libglib2.0-dev-bin. 1557s Preparing to unpack .../21-libglib2.0-dev-bin_2.86.3-4_s390x.deb ... 1557s Unpacking libglib2.0-dev-bin (2.86.3-4) ... 1557s Selecting previously unselected package python3-dbusmock. 1557s Preparing to unpack .../22-python3-dbusmock_0.38.1-1_all.deb ... 1557s Unpacking python3-dbusmock (0.38.1-1) ... 1557s Selecting previously unselected package tzdata-legacy. 1557s Preparing to unpack .../23-tzdata-legacy_2025c-3ubuntu3_all.deb ... 1557s Unpacking tzdata-legacy (2025c-3ubuntu3) ... 1558s Selecting previously unselected package libglib2.0-tests. 1558s Preparing to unpack .../24-libglib2.0-tests_2.86.3-4_s390x.deb ... 1558s Unpacking libglib2.0-tests (2.86.3-4) ... 1561s Selecting previously unselected package libxcb-glx0:s390x. 1561s Preparing to unpack .../25-libxcb-glx0_1.17.0-2ubuntu1_s390x.deb ... 1561s Unpacking libxcb-glx0:s390x (1.17.0-2ubuntu1) ... 1561s Selecting previously unselected package libxcb-shm0:s390x. 1561s Preparing to unpack .../26-libxcb-shm0_1.17.0-2ubuntu1_s390x.deb ... 1561s Unpacking libxcb-shm0:s390x (1.17.0-2ubuntu1) ... 1561s Selecting previously unselected package libxxf86vm1:s390x. 1561s Preparing to unpack .../27-libxxf86vm1_1%3a1.1.4-2_s390x.deb ... 1561s Unpacking libxxf86vm1:s390x (1:1.1.4-2) ... 1562s Selecting previously unselected package libglx-mesa0:s390x. 1562s Preparing to unpack .../28-libglx-mesa0_25.3.3-1ubuntu1_s390x.deb ... 1562s Unpacking libglx-mesa0:s390x (25.3.3-1ubuntu1) ... 1562s Selecting previously unselected package x11-common. 1562s Preparing to unpack .../29-x11-common_1%3a7.7+24ubuntu1_all.deb ... 1562s Unpacking x11-common (1:7.7+24ubuntu1) ... 1563s Selecting previously unselected package libice6:s390x. 1563s Preparing to unpack .../30-libice6_2%3a1.1.1-1build1_s390x.deb ... 1563s Unpacking libice6:s390x (2:1.1.1-1build1) ... 1563s Selecting previously unselected package libpixman-1-0:s390x. 1563s Preparing to unpack .../31-libpixman-1-0_0.46.4-1_s390x.deb ... 1563s Unpacking libpixman-1-0:s390x (0.46.4-1) ... 1563s Selecting previously unselected package libsm6:s390x. 1563s Preparing to unpack .../32-libsm6_2%3a1.2.6-1build1_s390x.deb ... 1563s Unpacking libsm6:s390x (2:1.2.6-1build1) ... 1563s Selecting previously unselected package libxt6t64:s390x. 1563s Preparing to unpack .../33-libxt6t64_1%3a1.2.1-1.3_s390x.deb ... 1563s Unpacking libxt6t64:s390x (1:1.2.1-1.3) ... 1563s Selecting previously unselected package libxmu6:s390x. 1563s Preparing to unpack .../34-libxmu6_2%3a1.1.3-4_s390x.deb ... 1563s Unpacking libxmu6:s390x (2:1.1.3-4) ... 1563s Selecting previously unselected package libxpm4:s390x. 1563s Preparing to unpack .../35-libxpm4_1%3a3.5.17-1build3_s390x.deb ... 1563s Unpacking libxpm4:s390x (1:3.5.17-1build3) ... 1563s Selecting previously unselected package libxaw7:s390x. 1563s Preparing to unpack .../36-libxaw7_2%3a1.0.16-1build1_s390x.deb ... 1563s Unpacking libxaw7:s390x (2:1.0.16-1build1) ... 1564s Selecting previously unselected package libxfont2:s390x. 1564s Preparing to unpack .../37-libxfont2_1%3a2.0.6-2_s390x.deb ... 1564s Unpacking libxfont2:s390x (1:2.0.6-2) ... 1564s Selecting previously unselected package libxkbfile1:s390x. 1564s Preparing to unpack .../38-libxkbfile1_1%3a1.1.0-1build5_s390x.deb ... 1564s Unpacking libxkbfile1:s390x (1:1.1.0-1build5) ... 1564s Selecting previously unselected package libxrender1:s390x. 1564s Preparing to unpack .../39-libxrender1_1%3a0.9.12-1_s390x.deb ... 1564s Unpacking libxrender1:s390x (1:0.9.12-1) ... 1564s Selecting previously unselected package libxrandr2:s390x. 1564s Preparing to unpack .../40-libxrandr2_2%3a1.5.4-1build1_s390x.deb ... 1564s Unpacking libxrandr2:s390x (2:1.5.4-1build1) ... 1565s Selecting previously unselected package x11-xkb-utils. 1565s Preparing to unpack .../41-x11-xkb-utils_7.7+9build1_s390x.deb ... 1565s Unpacking x11-xkb-utils (7.7+9build1) ... 1565s Selecting previously unselected package xserver-common. 1565s Preparing to unpack .../42-xserver-common_2%3a21.1.21-1ubuntu1_all.deb ... 1565s Unpacking xserver-common (2:21.1.21-1ubuntu1) ... 1565s Selecting previously unselected package libglvnd0:s390x. 1565s Preparing to unpack .../43-libglvnd0_1.7.0-3_s390x.deb ... 1565s Unpacking libglvnd0:s390x (1.7.0-3) ... 1565s Selecting previously unselected package libglx0:s390x. 1565s Preparing to unpack .../44-libglx0_1.7.0-3_s390x.deb ... 1565s Unpacking libglx0:s390x (1.7.0-3) ... 1565s Selecting previously unselected package libgl1:s390x. 1565s Preparing to unpack .../45-libgl1_1.7.0-3_s390x.deb ... 1565s Unpacking libgl1:s390x (1.7.0-3) ... 1566s Selecting previously unselected package xvfb. 1566s Preparing to unpack .../46-xvfb_2%3a21.1.21-1ubuntu1_s390x.deb ... 1566s Unpacking xvfb (2:21.1.21-1ubuntu1) ... 1566s Setting up gnome-desktop-testing (2021.1-5) ... 1566s Setting up libxcb-dri3-0:s390x (1.17.0-2ubuntu1) ... 1566s Setting up libpixman-1-0:s390x (0.46.4-1) ... 1566s Setting up libx11-xcb1:s390x (2:1.8.12-1build1) ... 1566s Setting up libgio-2.0-dev-bin (2.86.3-4) ... 1569s Setting up native-architecture (0.2.6build1) ... 1569s Setting up libxcb-xfixes0:s390x (1.17.0-2ubuntu1) ... 1569s Setting up desktop-file-utils (0.28-1build1) ... 1569s Setting up libxpm4:s390x (1:3.5.17-1build3) ... 1569s Setting up libxrender1:s390x (1:0.9.12-1) ... 1569s Setting up libglvnd0:s390x (1.7.0-3) ... 1569s Setting up libxcb-glx0:s390x (1.17.0-2ubuntu1) ... 1569s Setting up x11-common (1:7.7+24ubuntu1) ... 1572s Setting up libglib2.0-bin (2.86.3-4) ... 1572s Setting up libxcb-shm0:s390x (1.17.0-2ubuntu1) ... 1572s Setting up python3-dbusmock (0.38.1-1) ... 1573s Setting up tzdata-legacy (2025c-3ubuntu3) ... 1573s Setting up libxxf86vm1:s390x (1:1.1.4-2) ... 1573s Setting up libxcb-present0:s390x (1.17.0-2ubuntu1) ... 1573s Setting up libfontenc1:s390x (1:1.1.8-1build2) ... 1573s Setting up libfreetype6:s390x (2.14.1+dfsg-2) ... 1573s Setting up libxcb-sync1:s390x (1.17.0-2ubuntu1) ... 1573s Setting up libxrandr2:s390x (2:1.5.4-1build1) ... 1573s Setting up libvulkan1:s390x (1.4.335.0-1) ... 1573s Setting up gir1.2-glib-2.0-dev:s390x (2.86.3-4) ... 1573s Setting up libxshmfence1:s390x (1.3.3-1build1) ... 1573s Setting up dbus-x11 (1.16.2-2ubuntu2) ... 1573s Setting up libxcb-randr0:s390x (1.17.0-2ubuntu1) ... 1573s Setting up libxkbfile1:s390x (1:1.1.0-1build5) ... 1573s Setting up libxfont2:s390x (1:2.0.6-2) ... 1573s Setting up libice6:s390x (2:1.1.1-1build1) ... 1573s Setting up mesa-libgallium:s390x (25.3.3-1ubuntu1) ... 1573s Setting up girepository-tools:s390x (2.86.3-4) ... 1573s Setting up libgbm1:s390x (25.3.3-1ubuntu1) ... 1573s Setting up libgl1-mesa-dri:s390x (25.3.3-1ubuntu1) ... 1573s Setting up libsm6:s390x (2:1.2.6-1build1) ... 1573s Setting up libglib2.0-dev-bin (2.86.3-4) ... 1573s Setting up libglx-mesa0:s390x (25.3.3-1ubuntu1) ... 1573s Setting up libglx0:s390x (1.7.0-3) ... 1573s Setting up libgl1:s390x (1.7.0-3) ... 1573s Setting up libxt6t64:s390x (1:1.2.1-1.3) ... 1573s Setting up libglib2.0-tests (2.86.3-4) ... 1574s Setting up libxmu6:s390x (2:1.1.3-4) ... 1574s Setting up libxaw7:s390x (2:1.0.16-1build1) ... 1574s Setting up x11-xkb-utils (7.7+9build1) ... 1574s Setting up xserver-common (2:21.1.21-1ubuntu1) ... 1574s Setting up xvfb (2:21.1.21-1ubuntu1) ... 1574s Processing triggers for man-db (2.13.1-1) ... 1577s Processing triggers for libc-bin (2.42-2ubuntu4) ... 1598s autopkgtest [09:51:09]: test installed-tests: [----------------------- 1599s Running as: uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),103(lxd) 1599s passwd entry: ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash 1599s group entry: ubuntu:x:1000: 1599s Environment: 1599s ADTTMP=/tmp/autopkgtest.n2KYti/autopkgtest_tmp 1599s ADT_ARTIFACTS=/tmp/autopkgtest.n2KYti/installed-tests-artifacts 1599s ADT_TEST_TRIGGERS=pcre2/10.46-1build1 1599s AUTOPKGTEST_ARTIFACTS=/tmp/autopkgtest.n2KYti/installed-tests-artifacts 1599s AUTOPKGTEST_TESTBED_ARCH=s390x 1599s AUTOPKGTEST_TEST_ARCH=s390x 1599s AUTOPKGTEST_TMP=/tmp/autopkgtest.n2KYti/autopkgtest_tmp 1599s DEBIAN_FRONTEND=noninteractive 1599s DEBUGINFOD_URLS=https://debuginfod.ubuntu.com 1599s DEB_BUILD_OPTIONS=parallel=2 1599s GIO_USE_VFS=local 1599s GIO_USE_VOLUME_MONITOR=unix 1599s HOME=/home/ubuntu 1599s LANG=C.UTF-8 1599s LOGNAME=ubuntu 1599s MAIL=/var/mail/ubuntu 1599s OLDPWD=/home/ubuntu 1599s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 1599s PWD=/tmp/autopkgtest.n2KYti/build.cAr/src 1599s SHELL=/bin/bash 1599s SHLVL=1 1599s SUDO_COMMAND=/tmp/autopkgtest-run-wrapper su -s /bin/bash ubuntu -c set -e; exec /tmp/autopkgtest.n2KYti/wrapper.sh --artifacts=/tmp/autopkgtest.n2KYti/installed-tests-artifacts --chdir=/tmp/autopkgtest.n2KYti/build.cAr/src --env=AUTOPKGTEST_TESTBED_ARCH=s390x --env=AUTOPKGTEST_TEST_ARCH=s390x --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.n2KYti/installed-tests-stderr --stdout=/tmp/autopkgtest.n2KYti/installed-tests-stdout --tmp=/tmp/autopkgtest.n2KYti/autopkgtest_tmp --env=ADT_TEST_TRIGGERS=pcre2/10.46-1build1 --make-executable=/tmp/autopkgtest.n2KYti/build.cAr/src/debian/tests/installed-tests -- /tmp/autopkgtest.n2KYti/build.cAr/src/debian/tests/installed-tests 1599s SUDO_GID=1000 1599s SUDO_HOME=/home/ubuntu 1599s SUDO_UID=1000 1599s SUDO_USER=ubuntu 1599s TERM=linux 1599s USER=ubuntu 1599s XDG_RUNTIME_DIR=/tmp/autopkgtest.n2KYti/autopkgtest_tmp 1599s http_proxy=http://egress.ps7.internal:3128/ 1599s https_proxy=http://egress.ps7.internal:3128/ 1599s no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain 1604s run-with-locales: de_DE=ISO-8859-1... 1604s Character set: ISO-8859-1 1604s Source file: de_DE 1604s Output: /tmp/tmp.HrPI8fYhPW/de_DE 1608s run-with-locales: de_DE.utf8... 1608s Character set: UTF-8 1608s Source file: de_DE 1608s Output: /tmp/tmp.HrPI8fYhPW/de_DE.utf8 1619s run-with-locales: de_DE@euro.utf8... 1619s Character set: UTF-8 1619s Source file: de_DE@euro 1619s Output: /tmp/tmp.HrPI8fYhPW/de_DE@euro.utf8 1629s run-with-locales: el_GR.utf8... 1629s Character set: UTF-8 1629s Source file: el_GR 1629s Output: /tmp/tmp.HrPI8fYhPW/el_GR.utf8 1639s run-with-locales: en_GB=ISO-8859-1... 1639s Character set: ISO-8859-1 1639s Source file: en_GB 1639s Output: /tmp/tmp.HrPI8fYhPW/en_GB 1643s run-with-locales: en_GB.utf8... 1643s Character set: UTF-8 1643s Source file: en_GB 1643s Output: /tmp/tmp.HrPI8fYhPW/en_GB.utf8 1653s run-with-locales: en_US=ISO-8859-1... 1653s Character set: ISO-8859-1 1653s Source file: en_US 1653s Output: /tmp/tmp.HrPI8fYhPW/en_US 1657s run-with-locales: en_US.utf8... 1657s Character set: UTF-8 1657s Source file: en_US 1657s Output: /tmp/tmp.HrPI8fYhPW/en_US.utf8 1665s run-with-locales: es_ES.utf8... 1665s Character set: UTF-8 1665s Source file: es_ES 1665s Output: /tmp/tmp.HrPI8fYhPW/es_ES.utf8 1676s run-with-locales: fa_IR=UTF-8... 1676s Character set: UTF-8 1676s Source file: fa_IR 1676s Output: /tmp/tmp.HrPI8fYhPW/fa_IR 1685s run-with-locales: fa_IR.utf8... 1686s Character set: UTF-8 1686s Source file: fa_IR 1686s Output: /tmp/tmp.HrPI8fYhPW/fa_IR.utf8 1694s run-with-locales: fr_FR.utf8... 1694s Character set: UTF-8 1694s Source file: fr_FR 1694s Output: /tmp/tmp.HrPI8fYhPW/fr_FR.utf8 1702s run-with-locales: hr_HR.utf8... 1703s Character set: UTF-8 1703s Source file: hr_HR 1703s Output: /tmp/tmp.HrPI8fYhPW/hr_HR.utf8 1713s run-with-locales: ja_JP.utf8... 1713s Character set: UTF-8 1713s Source file: ja_JP 1713s Output: /tmp/tmp.HrPI8fYhPW/ja_JP.utf8 1721s run-with-locales: ja_JP.EUC-JP... 1721s Character set: EUC-JP 1721s Source file: ja_JP 1721s Output: /tmp/tmp.HrPI8fYhPW/ja_JP.eucjp 1724s run-with-locales: lt_LT.utf8... 1724s Character set: UTF-8 1724s Source file: lt_LT 1724s Output: /tmp/tmp.HrPI8fYhPW/lt_LT.utf8 1732s run-with-locales: pl_PL=ISO-8859-2... 1732s Character set: ISO-8859-2 1732s Source file: pl_PL 1732s Output: /tmp/tmp.HrPI8fYhPW/pl_PL 1735s run-with-locales: pl_PL.ISO-8859-2... 1735s Character set: ISO-8859-2 1735s Source file: pl_PL 1735s Output: /tmp/tmp.HrPI8fYhPW/pl_PL.iso88592 1738s run-with-locales: pl_PL.utf8... 1738s Character set: UTF-8 1738s Source file: pl_PL 1738s Output: /tmp/tmp.HrPI8fYhPW/pl_PL.utf8 1747s run-with-locales: ru_RU=ISO-8859-5... 1747s Character set: ISO-8859-5 1747s Source file: ru_RU 1747s Output: /tmp/tmp.HrPI8fYhPW/ru_RU 1750s run-with-locales: ru_RU.utf8... 1750s Character set: UTF-8 1750s Source file: ru_RU 1750s Output: /tmp/tmp.HrPI8fYhPW/ru_RU.utf8 1759s run-with-locales: sr_RS=UTF-8... 1759s Character set: UTF-8 1759s Source file: sr_RS 1759s Output: /tmp/tmp.HrPI8fYhPW/sr_RS 1767s run-with-locales: sr_RS@latin=UTF-8... 1767s Character set: UTF-8 1767s Source file: sr_RS@latin 1767s Output: /tmp/tmp.HrPI8fYhPW/sr_RS@latin 1775s run-with-locales: sv_SE=ISO-8859-1... 1775s Character set: ISO-8859-1 1775s Source file: sv_SE 1775s Output: /tmp/tmp.HrPI8fYhPW/sv_SE 1778s run-with-locales: sv_SE.utf8... 1779s Character set: UTF-8 1779s Source file: sv_SE 1779s Output: /tmp/tmp.HrPI8fYhPW/sv_SE.utf8 1788s run-with-locales: tr_TR=ISO-8859-9... 1788s Character set: ISO-8859-9 1788s Source file: tr_TR 1788s Output: /tmp/tmp.HrPI8fYhPW/tr_TR 1792s run-with-locales: tr_TR.utf8... 1792s Character set: UTF-8 1792s Source file: tr_TR 1792s Output: /tmp/tmp.HrPI8fYhPW/tr_TR.utf8 1801s run-with-locales: tt_RU=UTF-8... 1801s Character set: UTF-8 1801s Source file: tt_RU 1801s Output: /tmp/tmp.HrPI8fYhPW/tt_RU 1809s run-with-locales: tt_RU.utf8... 1809s Character set: UTF-8 1809s Source file: tt_RU 1809s Output: /tmp/tmp.HrPI8fYhPW/tt_RU.utf8 1819s run-with-locales: tt_RU@iqtelif=UTF-8... 1819s Character set: UTF-8 1819s Source file: tt_RU@iqtelif 1819s Output: /tmp/tmp.HrPI8fYhPW/tt_RU@iqtelif 1827s /tmp/tmp.HrPI8fYhPW 1827s /tmp/tmp.HrPI8fYhPW/pl_PL 1827s /tmp/tmp.HrPI8fYhPW/pl_PL/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/pl_PL/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/pl_PL/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/pl_PL/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/pl_PL/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/pl_PL/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/pl_PL/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/pl_PL/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/pl_PL/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/pl_PL/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/pl_PL/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/pl_PL/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/pl_PL/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/fa_IR 1827s /tmp/tmp.HrPI8fYhPW/fa_IR/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/fa_IR/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/fa_IR/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/fa_IR/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/fa_IR/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/fa_IR/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/fa_IR/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/fa_IR/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/fa_IR/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/fa_IR/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/fa_IR/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/fa_IR/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/fa_IR/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/hr_HR.utf8 1827s /tmp/tmp.HrPI8fYhPW/hr_HR.utf8/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/hr_HR.utf8/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/hr_HR.utf8/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/hr_HR.utf8/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/hr_HR.utf8/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/hr_HR.utf8/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/hr_HR.utf8/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/hr_HR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/hr_HR.utf8/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/hr_HR.utf8/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/hr_HR.utf8/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/hr_HR.utf8/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/hr_HR.utf8/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/el_GR.utf8 1827s /tmp/tmp.HrPI8fYhPW/el_GR.utf8/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/el_GR.utf8/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/el_GR.utf8/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/el_GR.utf8/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/el_GR.utf8/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/el_GR.utf8/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/el_GR.utf8/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/el_GR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/el_GR.utf8/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/el_GR.utf8/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/el_GR.utf8/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/el_GR.utf8/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/el_GR.utf8/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/fr_FR.utf8 1827s /tmp/tmp.HrPI8fYhPW/fr_FR.utf8/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/fr_FR.utf8/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/fr_FR.utf8/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/fr_FR.utf8/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/fr_FR.utf8/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/fr_FR.utf8/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/fr_FR.utf8/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/fr_FR.utf8/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/fr_FR.utf8/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/fr_FR.utf8/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/fr_FR.utf8/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/fr_FR.utf8/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.utf8 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.utf8/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.utf8/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.utf8/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.utf8/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.utf8/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.utf8/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.utf8/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.utf8/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.utf8/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.utf8/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.utf8/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.utf8/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/en_GB 1827s /tmp/tmp.HrPI8fYhPW/en_GB/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/en_GB/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/en_GB/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/en_GB/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/en_GB/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/en_GB/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/en_GB/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/en_GB/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/en_GB/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/en_GB/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/en_GB/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/en_GB/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/en_GB/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.eucjp 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.eucjp/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.eucjp/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.eucjp/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.eucjp/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.eucjp/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.eucjp/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.eucjp/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.eucjp/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.eucjp/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.eucjp/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.eucjp/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.eucjp/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.eucjp/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/en_GB.utf8 1827s /tmp/tmp.HrPI8fYhPW/en_GB.utf8/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/en_GB.utf8/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/en_GB.utf8/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/en_GB.utf8/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/en_GB.utf8/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/en_GB.utf8/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/en_GB.utf8/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/en_GB.utf8/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/en_GB.utf8/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/en_GB.utf8/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/en_GB.utf8/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/en_GB.utf8/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/lt_LT.utf8 1827s /tmp/tmp.HrPI8fYhPW/lt_LT.utf8/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/lt_LT.utf8/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/lt_LT.utf8/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/lt_LT.utf8/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/lt_LT.utf8/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/lt_LT.utf8/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/lt_LT.utf8/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/lt_LT.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/lt_LT.utf8/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/lt_LT.utf8/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/lt_LT.utf8/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/lt_LT.utf8/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/lt_LT.utf8/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/de_DE 1827s /tmp/tmp.HrPI8fYhPW/de_DE/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/de_DE/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/de_DE/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/de_DE/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/de_DE/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/de_DE/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/de_DE/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/de_DE/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/de_DE/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/de_DE/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/de_DE/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/de_DE/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/de_DE/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/tt_RU@iqtelif 1827s /tmp/tmp.HrPI8fYhPW/tt_RU@iqtelif/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/tt_RU@iqtelif/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/tt_RU@iqtelif/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/tt_RU@iqtelif/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/tt_RU@iqtelif/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/tt_RU@iqtelif/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/tt_RU@iqtelif/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/tt_RU@iqtelif/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/tt_RU@iqtelif/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/tt_RU@iqtelif/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/tt_RU@iqtelif/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/tt_RU@iqtelif/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/tt_RU@iqtelif/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/tt_RU.utf8 1827s /tmp/tmp.HrPI8fYhPW/tt_RU.utf8/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/tt_RU.utf8/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/tt_RU.utf8/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/tt_RU.utf8/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/tt_RU.utf8/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/tt_RU.utf8/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/tt_RU.utf8/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/tt_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/tt_RU.utf8/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/tt_RU.utf8/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/tt_RU.utf8/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/tt_RU.utf8/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/tt_RU.utf8/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/ru_RU.utf8 1827s /tmp/tmp.HrPI8fYhPW/ru_RU.utf8/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/ru_RU.utf8/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/ru_RU.utf8/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/ru_RU.utf8/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/ru_RU.utf8/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/ru_RU.utf8/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/ru_RU.utf8/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/ru_RU.utf8/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/ru_RU.utf8/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/ru_RU.utf8/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/ru_RU.utf8/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/ru_RU.utf8/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.utf8 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.utf8/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.utf8/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.utf8/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.utf8/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.utf8/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.utf8/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.utf8/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.utf8/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.utf8/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.utf8/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.utf8/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/ja_JP.utf8/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/sv_SE 1827s /tmp/tmp.HrPI8fYhPW/sv_SE/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/sv_SE/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/sv_SE/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/sv_SE/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/sv_SE/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/sv_SE/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/sv_SE/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/sv_SE/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/sv_SE/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/sv_SE/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/sv_SE/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/sv_SE/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/sv_SE/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/en_US 1827s /tmp/tmp.HrPI8fYhPW/en_US/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/en_US/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/en_US/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/en_US/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/en_US/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/en_US/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/en_US/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/en_US/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/en_US/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/en_US/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/en_US/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/en_US/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/en_US/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/sr_RS@latin 1827s /tmp/tmp.HrPI8fYhPW/sr_RS@latin/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/sr_RS@latin/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/sr_RS@latin/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/sr_RS@latin/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/sr_RS@latin/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/sr_RS@latin/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/sr_RS@latin/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/sr_RS@latin/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/sr_RS@latin/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/sr_RS@latin/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/sr_RS@latin/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/sr_RS@latin/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/sr_RS@latin/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/de_DE.utf8 1827s /tmp/tmp.HrPI8fYhPW/de_DE.utf8/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/de_DE.utf8/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/de_DE.utf8/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/de_DE.utf8/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/de_DE.utf8/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/de_DE.utf8/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/de_DE.utf8/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/de_DE.utf8/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/de_DE.utf8/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/de_DE.utf8/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/de_DE.utf8/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/de_DE.utf8/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/tt_RU 1827s /tmp/tmp.HrPI8fYhPW/tt_RU/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/tt_RU/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/tt_RU/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/tt_RU/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/tt_RU/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/tt_RU/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/tt_RU/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/tt_RU/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/tt_RU/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/tt_RU/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/tt_RU/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/tt_RU/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/tt_RU/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/en_US.utf8 1827s /tmp/tmp.HrPI8fYhPW/en_US.utf8/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/en_US.utf8/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/en_US.utf8/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/en_US.utf8/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/en_US.utf8/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/en_US.utf8/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/en_US.utf8/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/en_US.utf8/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/en_US.utf8/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/en_US.utf8/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/en_US.utf8/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/en_US.utf8/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/tr_TR.utf8 1827s /tmp/tmp.HrPI8fYhPW/tr_TR.utf8/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/tr_TR.utf8/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/tr_TR.utf8/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/tr_TR.utf8/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/tr_TR.utf8/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/tr_TR.utf8/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/tr_TR.utf8/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/tr_TR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/tr_TR.utf8/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/tr_TR.utf8/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/tr_TR.utf8/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/tr_TR.utf8/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/tr_TR.utf8/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/fa_IR.utf8 1827s /tmp/tmp.HrPI8fYhPW/fa_IR.utf8/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/fa_IR.utf8/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/fa_IR.utf8/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/fa_IR.utf8/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/fa_IR.utf8/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/fa_IR.utf8/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/fa_IR.utf8/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/fa_IR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/fa_IR.utf8/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/fa_IR.utf8/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/fa_IR.utf8/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/fa_IR.utf8/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/fa_IR.utf8/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/es_ES.utf8 1827s /tmp/tmp.HrPI8fYhPW/es_ES.utf8/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/es_ES.utf8/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/es_ES.utf8/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/es_ES.utf8/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/es_ES.utf8/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/es_ES.utf8/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/es_ES.utf8/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/es_ES.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/es_ES.utf8/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/es_ES.utf8/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/es_ES.utf8/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/es_ES.utf8/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/es_ES.utf8/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/sr_RS 1827s /tmp/tmp.HrPI8fYhPW/sr_RS/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/sr_RS/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/sr_RS/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/sr_RS/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/sr_RS/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/sr_RS/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/sr_RS/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/sr_RS/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/sr_RS/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/sr_RS/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/sr_RS/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/sr_RS/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/sr_RS/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.iso88592 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.iso88592/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.iso88592/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.iso88592/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.iso88592/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.iso88592/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.iso88592/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.iso88592/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.iso88592/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.iso88592/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.iso88592/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.iso88592/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.iso88592/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/pl_PL.iso88592/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/tr_TR 1827s /tmp/tmp.HrPI8fYhPW/tr_TR/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/tr_TR/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/tr_TR/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/tr_TR/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/tr_TR/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/tr_TR/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/tr_TR/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/tr_TR/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/tr_TR/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/tr_TR/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/tr_TR/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/tr_TR/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/tr_TR/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/de_DE@euro.utf8 1827s /tmp/tmp.HrPI8fYhPW/de_DE@euro.utf8/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/de_DE@euro.utf8/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/de_DE@euro.utf8/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/de_DE@euro.utf8/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/de_DE@euro.utf8/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/de_DE@euro.utf8/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/de_DE@euro.utf8/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/de_DE@euro.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/de_DE@euro.utf8/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/de_DE@euro.utf8/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/de_DE@euro.utf8/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/de_DE@euro.utf8/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/de_DE@euro.utf8/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/ru_RU 1827s /tmp/tmp.HrPI8fYhPW/ru_RU/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/ru_RU/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/ru_RU/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/ru_RU/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/ru_RU/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/ru_RU/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/ru_RU/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/ru_RU/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/ru_RU/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/ru_RU/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/ru_RU/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/ru_RU/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/ru_RU/LC_PAPER 1827s /tmp/tmp.HrPI8fYhPW/sv_SE.utf8 1827s /tmp/tmp.HrPI8fYhPW/sv_SE.utf8/LC_TELEPHONE 1827s /tmp/tmp.HrPI8fYhPW/sv_SE.utf8/LC_MONETARY 1827s /tmp/tmp.HrPI8fYhPW/sv_SE.utf8/LC_TIME 1827s /tmp/tmp.HrPI8fYhPW/sv_SE.utf8/LC_NAME 1827s /tmp/tmp.HrPI8fYhPW/sv_SE.utf8/LC_COLLATE 1827s /tmp/tmp.HrPI8fYhPW/sv_SE.utf8/LC_IDENTIFICATION 1827s /tmp/tmp.HrPI8fYhPW/sv_SE.utf8/LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/sv_SE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1827s /tmp/tmp.HrPI8fYhPW/sv_SE.utf8/LC_CTYPE 1827s /tmp/tmp.HrPI8fYhPW/sv_SE.utf8/LC_MEASUREMENT 1827s /tmp/tmp.HrPI8fYhPW/sv_SE.utf8/LC_ADDRESS 1827s /tmp/tmp.HrPI8fYhPW/sv_SE.utf8/LC_NUMERIC 1827s /tmp/tmp.HrPI8fYhPW/sv_SE.utf8/LC_PAPER 1827s TAP version 14 1827s # random seed: R02S7aacedb8524b13351af15265747007a8 1827s 1..2 1827s # Start of gtask tests 1827s 1..332 1827s # Running test: glib/cxx-2b.test 1827s ok - glib/cxx-2b.test 1827s # Running test: glib/portal-support-snap-classic.test 1827s ok - glib/portal-support-snap-classic.test 1827s # Running test: glib/volumemonitor.test 1827s ok - glib/volumemonitor.test 1827s # Running test: glib/init.test 1827s ok - glib/init.test 1827s # 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. 1827s ok 1 /gtask/name 1827s # Start of name tests 1827s # 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. 1827s ok 2 /gtask/name/macro-wrapper 1827s # End of name tests 1827s # End of gtask tests 1827s TAP version 14 1827s # random seed: R02S6d793bd4fb20872300576fd2a06a1201 1827s 1..3 1827s # Start of portal-support tests 1827s # Start of snap-classic tests 1827s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/no-snapctl/.dirs/home 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/no-snapctl/.dirs/cache 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/no-snapctl/.dirs/system-config2 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/no-snapctl/.dirs/config 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/no-snapctl/.dirs/system-data2 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/no-snapctl/.dirs/data 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/no-snapctl/.dirs/state 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/no-snapctl/.dirs/runtime 1827s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/no-snapctl: No such file or directory 1827s ok 1 /portal-support/snap-classic/no-snapctl 1827s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/none/.dirs/home 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/none/.dirs/cache 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/none/.dirs/system-config1:/tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/none/.dirs/system-config2 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/none/.dirs/config 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/none/.dirs/system-data1:/tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/none/.dirs/system-data2 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/none/.dirs/data 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/none/.dirs/state 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/none/.dirs/runtime 1827s # Created snap.yaml in /tmp/test_portal-support-snap-classic_WTWBK3/meta/snap.yaml 1827s # Created snapctl in /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/none/.dirs/runtime/snapctl 1827s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/none: No such file or directory 1827s ok 2 /portal-support/snap-classic/none 1827s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/all/.dirs/home 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/all/.dirs/cache 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/all/.dirs/system-config1:/tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/all/.dirs/system-config2 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/all/.dirs/config 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/all/.dirs/system-data1:/tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/all/.dirs/system-data2 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/all/.dirs/data 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/all/.dirs/state 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/all/.dirs/runtime 1827s # Created snap.yaml in /tmp/test_portal-support-snap-classic_WTWBK3/meta/snap.yaml 1827s # Created snapctl in /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/all/.dirs/runtime/snapctl 1827s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_WTWBK3/portal-support/snap-classic/all: No such file or directory 1827s ok 3 /portal-support/snap-classic/all 1827s # End of snap-classic tests 1827s # End of portal-support tests 1827s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_WTWBK3: No such file or directory 1827s TAP version 14 1827s # random seed: R02S80e9014838bd12f532365c25cc2a4ef5 1827s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1827s 1..3 1827s # Start of volumemonitor tests 1827s ok 1 /volumemonitor/connected_drives 1827s ok 2 /volumemonitor/volumes 1827s ok 3 /volumemonitor/mounts 1827s # End of volumemonitor tests 1827s TAP version 14 1827s # random seed: R02S052d94389dc8c78a0c254baa30bbb186 1827s 1..2 1827s # Start of thread tests 1827s # Start of deprecated tests 1827s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_VC4BK3/thread/deprecated/init/.dirs/home 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_VC4BK3/thread/deprecated/init/.dirs/cache 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_VC4BK3/thread/deprecated/init/.dirs/system-config1:/tmp/test_init_VC4BK3/thread/deprecated/init/.dirs/system-config2 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_VC4BK3/thread/deprecated/init/.dirs/config 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_VC4BK3/thread/deprecated/init/.dirs/system-data1:/tmp/test_init_VC4BK3/thread/deprecated/init/.dirs/system-data2 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_VC4BK3/thread/deprecated/init/.dirs/data 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_VC4BK3/thread/deprecated/init/.dirs/state 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_VC4BK3/thread/deprecated/init/.dirs/runtime 1827s ok 1 /thread/deprecated/init 1827s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_VC4BK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/home 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_VC4BK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/cache 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_VC4BK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config1:/tmp/test_init_VC4BK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config2 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_VC4BK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/config 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_VC4BK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data1:/tmp/test_init_VC4BK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data2 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_VC4BK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/data 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_VC4BK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/state 1827s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_VC4BK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/runtime 1827s ok 2 /thread/deprecated/init-with-errorcheck-mutexes 1827s # End of deprecated tests 1827s # End of thread tests 1827s TAP version 14 1827s # random seed: R02S82d770f09c4923df2cc7a014f9d0bb98 1827s 1..8 1827s # Start of thread tests 1827s ok 1 /thread/rwlock1 1827s ok 2 /thread/rwlock2 1827s ok 3 /thread/rwlock3 1827s ok 4 /thread/rwlock4 1827s ok 5 /thread/rwlock5 1827s ok 6 /thread/rwlock6 1827s # Running test: glib/rwlock.test 1832s # Executing: glib/rwlock.test 1837s # Executing: glib/rwlock.test 1842s # Executing: glib/rwlock.test 1847s # Executing: glib/rwlock.test 1851s ok 7 /thread/rwlock7 1851s # slow test /thread/rwlock7 executed in 23.50 secs 1851s ok - glib/rwlock.test 1851s ok 8 /thread/rwlock8 1851s # End of thread tests 1851s # Running test: glib/testing-nonfatal.test 1851s TAP version 14 1851s # random seed: R02Sa9fd81c19c83d6fa9f517983d7321253 1851s ** 1851s 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?") 1851s # 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?") 1851s ok - glib/testing-nonfatal.test 1851s # Running test: glib/dump.test 1851s TAP version 14 1851s # random seed: R02Sa50bd3b407e62c829811a2731e75204e 1851s 1..4 1851s # Start of dump tests 1851s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_KVTGK3/dump/empty-file/.dirs/home 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_KVTGK3/dump/empty-file/.dirs/cache 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_KVTGK3/dump/empty-file/.dirs/system-config1:/tmp/test_dump_KVTGK3/dump/empty-file/.dirs/system-config2 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_KVTGK3/dump/empty-file/.dirs/config 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_KVTGK3/dump/empty-file/.dirs/system-data1:/tmp/test_dump_KVTGK3/dump/empty-file/.dirs/system-data2 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_KVTGK3/dump/empty-file/.dirs/data 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_KVTGK3/dump/empty-file/.dirs/state 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_KVTGK3/dump/empty-file/.dirs/runtime 1851s ok 1 /dump/empty-file 1851s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_KVTGK3/dump/missing-get-type/.dirs/home 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_KVTGK3/dump/missing-get-type/.dirs/cache 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_KVTGK3/dump/missing-get-type/.dirs/system-config1:/tmp/test_dump_KVTGK3/dump/missing-get-type/.dirs/system-config2 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_KVTGK3/dump/missing-get-type/.dirs/config 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_KVTGK3/dump/missing-get-type/.dirs/system-data1:/tmp/test_dump_KVTGK3/dump/missing-get-type/.dirs/system-data2 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_KVTGK3/dump/missing-get-type/.dirs/data 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_KVTGK3/dump/missing-get-type/.dirs/state 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_KVTGK3/dump/missing-get-type/.dirs/runtime 1851s Invalid GType function: 'does_not_exist_get_type' 1851s ok 2 /dump/missing-get-type 1851s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_KVTGK3/dump/missing-quark/.dirs/home 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_KVTGK3/dump/missing-quark/.dirs/cache 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_KVTGK3/dump/missing-quark/.dirs/system-config1:/tmp/test_dump_KVTGK3/dump/missing-quark/.dirs/system-config2 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_KVTGK3/dump/missing-quark/.dirs/config 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_KVTGK3/dump/missing-quark/.dirs/system-data1:/tmp/test_dump_KVTGK3/dump/missing-quark/.dirs/system-data2 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_KVTGK3/dump/missing-quark/.dirs/data 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_KVTGK3/dump/missing-quark/.dirs/state 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_KVTGK3/dump/missing-quark/.dirs/runtime 1851s Invalid error quark function: 'does_not_exist_error' 1851s ok 3 /dump/missing-quark 1851s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_KVTGK3/dump/basic/.dirs/home 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_KVTGK3/dump/basic/.dirs/cache 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_KVTGK3/dump/basic/.dirs/system-config1:/tmp/test_dump_KVTGK3/dump/basic/.dirs/system-config2 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_KVTGK3/dump/basic/.dirs/config 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_KVTGK3/dump/basic/.dirs/system-data1:/tmp/test_dump_KVTGK3/dump/basic/.dirs/system-data2 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_KVTGK3/dump/basic/.dirs/data 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_KVTGK3/dump/basic/.dirs/state 1851s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_KVTGK3/dump/basic/.dirs/runtime 1851s ok 4 /dump/basic 1851s # End of dump tests 1851s TAP version 14 1851s # random seed: R02S577c3e98c2d45d926b4d75bf04365f0f 1851s 1..1 1851s # Start of gobject tests 1851s # Start of refcount tests 1851s # init 0x2aa15e58d70 1851s # 1851s # . 1851s ok - glib/dump.test 1851s # Running test: glib/objects-refcount2.test 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # Executing: glib/objects-refcount2.test 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # Executing: glib/objects-refcount2.test 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1861s # . 1862s # . 1862s # . 1862s # . 1862s # . 1862s # . 1862s # . 1862s # . 1862s # . 1862s # . 1862s # . 1862s # . 1862s # . 1862s # . 1862s # . 1862s # . 1862s # . 1862s # . 1862s # . 1862s # . 1862s # Executing: glib/objects-refcount2.test 1862s # . 1862s # . 1862s # . 1862s # . 1862s # . 1862s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1863s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1864s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1865s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1866s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # . 1867s # Executing: glib/objects-refcount2.test 1867s # . 1867s # . 1867s # . 1867s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1868s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1869s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1870s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1871s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # Executing: glib/objects-refcount2.test 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1872s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1873s # . 1874s # . 1874s # . 1874s # . 1874s # . 1874s # . 1874s # . 1874s # . 1874s # . 1874s # . 1874s # . 1874s # . 1874s # . 1874s # . 1874s # . 1874s # . 1874s # . 1874s # . 1874s # . 1874s # . 1874s # . 1874s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1875s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1876s # . 1877s # . 1877s # . 1877s # . 1877s # . 1877s # . 1877s # . 1877s # . 1877s # . 1877s # . 1877s # . 1877s # . 1877s # . 1877s # . 1877s # . 1877s # . 1877s # . 1877s # . 1877s # Executing: glib/objects-refcount2.test 1877s # . 1877s # . 1877s # . 1877s # . 1877s # . 1877s # . 1877s # . 1877s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1878s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1879s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1880s # . 1881s # . 1881s # . 1881s # . 1881s # . 1881s # . 1881s # . 1881s # . 1881s # . 1881s # . 1881s # . 1881s # . 1881s # . 1881s # . 1881s # . 1881s # . 1881s # . 1881s # . 1881s # . 1881s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # Executing: glib/objects-refcount2.test 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1882s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1883s # . 1884s # . 1884s # . 1884s # . 1884s # . 1884s # . 1884s ok - glib/objects-refcount2.test 1884s # Running test: glib/spawn-multithreaded.test 1884s # . 1884s # . 1884s # . 1884s # . 1884s # . 1884s # . 1884s # . 1884s # . 1884s # dispose 0x2aa15e58d70! 1884s # 1884s ok 1 /gobject/refcount/object-advanced 1884s # slow test /gobject/refcount/object-advanced executed in 32.79 secs 1884s # End of refcount tests 1884s # End of gobject tests 1884s TAP version 14 1884s # random seed: R02S9ee814aeb3a66c5e544689cab3abcb75 1884s 1..4 1884s # Start of gthread tests 1885s # Child 2676 (ttl 1) exited, status 0 1886s # Child 2677 (ttl 2) exited, status 0 1886s ok 1 /gthread/spawn-childs 1886s # slow test /gthread/spawn-childs executed in 2.01 secs 1886s # Created pid: 2681 (ttl 1) 1886s # Created pid: 2682 (ttl 2) 1887s # Child 2681 (ttl 1) exited, status 0 1887s # Executing: glib/spawn-multithreaded.test 1888s # Child 2682 (ttl 2) exited, status 0 1888s ok 2 /gthread/spawn-childs-threads 1888s # slow test /gthread/spawn-childs-threads executed in 2.00 secs 1888s ok 3 /gthread/spawn-sync 1888s ok 4 /gthread/spawn-async 1888s # End of gthread tests 1888s ok - glib/spawn-multithreaded.test 1888s # Running test: glib/simple-async-result.test 1888s TAP version 14 1888s # random seed: R02Sad6aafca846d07fcecfab9fbfd5c49f4 1888s 1..2 1888s # Start of gio tests 1888s # Start of simple-async-result tests 1888s ok 1 /gio/simple-async-result/test 1888s # GLib-GIO-DEBUG: GTask 0x2aa3ad09b10 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1888s ok 2 /gio/simple-async-result/valid 1888s # End of simple-async-result tests 1888s # End of gio tests 1888s ok - glib/simple-async-result.test 1888s # Running test: glib/spawn-singlethread.test 1888s ok - glib/spawn-singlethread.test 1888s TAP version 14 1888s # random seed: R02Sd81fbb064048ff539a718c659186f3c5 1888s 1..9 1888s # Start of gthread tests 1888s ok 1 /gthread/spawn-single-sync 1888s # /gthread/spawn-stderr-socket summary: Test calling g_spawn_sync() with its stderr FD set to a socket 1888s ok 2 /gthread/spawn-stderr-socket 1888s ok 3 /gthread/spawn-single-async 1888s # thread 1 1888s # thread 1 1888s ok 4 /gthread/spawn-single-async-with-fds 1888s ok 5 /gthread/spawn-async-with-invalid-fds 1888s ok 6 /gthread/spawn-script 1888s ok 7 /gthread/spawn-posix-spawn 1888s # Start of spawn tests 1888s ok 8 /gthread/spawn/nonexistent 1888s # FD map: 1888s # • 5 → 15 1888s # • 6 → 16 1888s # • 7 → 17 1888s # • 8 → 18 1888s # • 9 → 19 1888s # • 10 → 20 1888s # • 11 → 21 1888s # • 12 → 22 1888s # • 13 → 23 1888s # • 3 → 13 1888s ok 9 /gthread/spawn/fd-assignment-clash 1888s # End of spawn tests 1888s # End of gthread tests 1888s # Running test: glib/stream-rw_all.test 1888s ok - glib/stream-rw_all.test 1888s # Running test: glib/timeout.test 1888s TAP version 14 1888s # random seed: R02S09aa7b956c4b42beed92dc9f56dec637 1888s 1..3 1888s # Start of stream tests 1888s # Start of read_all_async tests 1888s ok 1 /stream/read_all_async/memory 1888s # End of read_all_async tests 1888s # Start of write_all_async tests 1888s ok 2 /stream/write_all_async/memory 1888s # End of write_all_async tests 1888s # Start of read_write_all_async tests 1888s ok 3 /stream/read_write_all_async/pipe 1888s # End of read_write_all_async tests 1888s # End of stream tests 1888s TAP version 14 1888s # random seed: R02Sdd4d73625018d8b441d88f228d1e877b 1888s 1..5 1888s # Start of timeout tests 1888s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1890s ok 1 /timeout/seconds 1890s # slow test /timeout/seconds executed in 2.19 secs 1892s # Executing: glib/timeout.test 1892s ok 2 /timeout/seconds-once 1892s # slow test /timeout/seconds-once executed in 2.12 secs 1892s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1894s ok 3 /timeout/weeks-overflow 1894s # slow test /timeout/weeks-overflow executed in 2.10 secs 1894s ok 4 /timeout/far-future-ready-time 1897s # Executing: glib/timeout.test 1902s # Executing: glib/timeout.test 1904s ok 5 /timeout/rounding 1904s # slow test /timeout/rounding executed in 10.02 secs 1904s # End of timeout tests 1904s ok - glib/timeout.test 1904s # Running test: glib/socket.test 1904s TAP version 14 1904s # random seed: R02S65c327b5b37a7eaf15e8698ce39eaff9 1904s 1..30 1904s # Start of socket tests 1906s ok 1 /socket/ipv4_sync 1906s # slow test /socket/ipv4_sync executed in 1.16 secs 1907s ok 2 /socket/ipv4_async 1907s # slow test /socket/ipv4_async executed in 1.17 secs 1907s ok 3 /socket/ipv6_sync 1907s ok 4 /socket/ipv6_async 1907s ok 5 /socket/ipv6_v4mapped 1907s # Executing: glib/socket.test 1908s ok 6 /socket/close_graceful 1908s # slow test /socket/close_graceful executed in 1.08 secs 1908s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1908s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1908s ok 8 /socket/fd_reuse 1908s ok 9 /socket/address 1908s ok 10 /socket/unix-from-fd 1908s ok 11 /socket/unix-connection 1908s ok 12 /socket/unix-connection-ancillary-data 1908s ok 13 /socket/source-postmortem 1908s ok 14 /socket/read_write 1908s ok 15 /socket/read_writev 1908s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1908s ok 16 /socket/receive_bytes 1908s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1908s ok 17 /socket/receive_bytes_from 1908s # Start of ipv4_sync tests 1908s ok 18 /socket/ipv4_sync/datagram 1908s # Start of datagram tests 1909s ok 19 /socket/ipv4_sync/datagram/timeouts 1909s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.16 secs 1909s # End of datagram tests 1909s # End of ipv4_sync tests 1909s # Start of ipv6_sync tests 1909s ok 20 /socket/ipv6_sync/datagram 1909s # Start of datagram tests 1910s ok 21 /socket/ipv6_sync/datagram/timeouts 1911s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.17 secs 1911s # End of datagram tests 1911s # End of ipv6_sync tests 1911s # Start of reuse tests 1911s ok 22 /socket/reuse/tcp 1911s ok 23 /socket/reuse/udp 1911s # End of reuse tests 1911s # Start of get_available tests 1911s ok 24 /socket/get_available/datagram 1911s ok 25 /socket/get_available/stream 1911s # End of get_available tests 1911s # Start of credentials tests 1911s ok - glib/socket.test 1911s # Running test: glib/portal-support-snap.test 1911s # Supported on this OS: GCredentials:linux-ucred:pid=0 1911s ok 26 /socket/credentials/tcp_client 1911s # Supported on this OS: GCredentials:linux-ucred:pid=0 1911s ok 27 /socket/credentials/tcp_server 1911s # Supported on this OS: GCredentials:linux-ucred:pid=2727,uid=1000,gid=1000 1911s ok 28 /socket/credentials/unix_socketpair 1911s # End of credentials tests 1911s # Start of accept tests 1911s # /socket/accept/cancelled summary: Calling g_socket_accept() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1911s ok 29 /socket/accept/cancelled 1911s # End of accept tests 1911s # Start of connect tests 1911s # /socket/connect/cancelled summary: Calling g_socket_connect() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1911s ok 30 /socket/connect/cancelled 1911s # End of connect tests 1911s # End of socket tests 1911s TAP version 14 1911s # random seed: R02S871977c90fd61a940bc1abd81122dcc3 1911s 1..7 1911s # Start of portal-support tests 1911s # Start of snap tests 1911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/no-snapctl/.dirs/home 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/no-snapctl/.dirs/cache 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap_4YHJK3/portal-support/snap/no-snapctl/.dirs/system-config2 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/no-snapctl/.dirs/config 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap_4YHJK3/portal-support/snap/no-snapctl/.dirs/system-data2 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/no-snapctl/.dirs/data 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/no-snapctl/.dirs/state 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/no-snapctl/.dirs/runtime 1911s # Created snap.yaml in /tmp/test_portal-support-snap_4YHJK3/meta/snap.yaml 1911s Unable to clean up temporary directory /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/no-snapctl: No such file or directory 1911s ok 1 /portal-support/snap/no-snapctl 1911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/none/.dirs/home 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/none/.dirs/cache 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/none/.dirs/system-config1:/tmp/test_portal-support-snap_4YHJK3/portal-support/snap/none/.dirs/system-config2 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/none/.dirs/config 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/none/.dirs/system-data1:/tmp/test_portal-support-snap_4YHJK3/portal-support/snap/none/.dirs/system-data2 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/none/.dirs/data 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/none/.dirs/state 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/none/.dirs/runtime 1911s # Created snap.yaml in /tmp/test_portal-support-snap_4YHJK3/meta/snap.yaml 1911s # Created snapctl in /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/none/.dirs/runtime/snapctl 1911s Unable to clean up temporary directory /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/none: No such file or directory 1911s ok 2 /portal-support/snap/none 1911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/all/.dirs/home 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/all/.dirs/cache 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/all/.dirs/system-config1:/tmp/test_portal-support-snap_4YHJK3/portal-support/snap/all/.dirs/system-config2 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/all/.dirs/config 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/all/.dirs/system-data1:/tmp/test_portal-support-snap_4YHJK3/portal-support/snap/all/.dirs/system-data2 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/all/.dirs/data 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/all/.dirs/state 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/all/.dirs/runtime 1911s # Created snap.yaml in /tmp/test_portal-support-snap_4YHJK3/meta/snap.yaml 1911s # Created snapctl in /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/all/.dirs/runtime/snapctl 1911s Unable to clean up temporary directory /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/all: No such file or directory 1911s ok 3 /portal-support/snap/all 1911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/desktop-only/.dirs/home 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/desktop-only/.dirs/cache 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/desktop-only/.dirs/system-config1:/tmp/test_portal-support-snap_4YHJK3/portal-support/snap/desktop-only/.dirs/system-config2 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/desktop-only/.dirs/config 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/desktop-only/.dirs/system-data1:/tmp/test_portal-support-snap_4YHJK3/portal-support/snap/desktop-only/.dirs/system-data2 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/desktop-only/.dirs/data 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/desktop-only/.dirs/state 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/desktop-only/.dirs/runtime 1911s # Created snap.yaml in /tmp/test_portal-support-snap_4YHJK3/meta/snap.yaml 1911s # Created snapctl in /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/desktop-only/.dirs/runtime/snapctl 1911s Unable to clean up temporary directory /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/desktop-only: No such file or directory 1911s ok 4 /portal-support/snap/desktop-only 1911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/network-only/.dirs/home 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/network-only/.dirs/cache 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/network-only/.dirs/system-config1:/tmp/test_portal-support-snap_4YHJK3/portal-support/snap/network-only/.dirs/system-config2 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/network-only/.dirs/config 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/network-only/.dirs/system-data1:/tmp/test_portal-support-snap_4YHJK3/portal-support/snap/network-only/.dirs/system-data2 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/network-only/.dirs/data 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/network-only/.dirs/state 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/network-only/.dirs/runtime 1911s # Created snap.yaml in /tmp/test_portal-support-snap_4YHJK3/meta/snap.yaml 1911s # Created snapctl in /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/network-only/.dirs/runtime/snapctl 1911s Unable to clean up temporary directory /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/network-only: No such file or directory 1911s ok 5 /portal-support/snap/network-only 1911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/gsettings-only/.dirs/home 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/gsettings-only/.dirs/cache 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/gsettings-only/.dirs/system-config1:/tmp/test_portal-support-snap_4YHJK3/portal-support/snap/gsettings-only/.dirs/system-config2 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/gsettings-only/.dirs/config 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/gsettings-only/.dirs/system-data1:/tmp/test_portal-support-snap_4YHJK3/portal-support/snap/gsettings-only/.dirs/system-data2 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/gsettings-only/.dirs/data 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/gsettings-only/.dirs/state 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/gsettings-only/.dirs/runtime 1911s # Created snap.yaml in /tmp/test_portal-support-snap_4YHJK3/meta/snap.yaml 1911s # Created snapctl in /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/gsettings-only/.dirs/runtime/snapctl 1911s Unable to clean up temporary directory /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/gsettings-only: No such file or directory 1911s ok 6 /portal-support/snap/gsettings-only 1911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically/.dirs/home 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically/.dirs/cache 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically/.dirs/system-config1:/tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically/.dirs/system-config2 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically/.dirs/config 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically/.dirs/system-data1:/tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically/.dirs/system-data2 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically/.dirs/data 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically/.dirs/state 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically/.dirs/runtime 1911s # Created snap.yaml in /tmp/test_portal-support-snap_4YHJK3/meta/snap.yaml 1911s # Created snapctl in /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1911s # Created snapctl in /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1912s # Created snapctl in /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1912s # Executing: glib/portal-support-snap.test 1912s # Created snapctl in /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1913s # Created snapctl in /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1913s # Created snapctl in /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1914s # Created snapctl in /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1914s ok - glib/portal-support-snap.test 1914s Unable to clean up temporary directory /tmp/test_portal-support-snap_4YHJK3/portal-support/snap/updates-dynamically: No such file or directory 1914s ok 7 /portal-support/snap/updates-dynamically 1914s # slow test /portal-support/snap/updates-dynamically executed in 3.07 secs 1914s # End of snap tests 1914s # End of portal-support tests 1914s Unable to clean up temporary directory /tmp/test_portal-support-snap_4YHJK3: No such file or directory 1914s # Running test: glib/task.test 1914s TAP version 14 1914s # random seed: R02Sa2a64a10bab3bc008cd34d18f6ed69e3 1914s 1..36 1914s # Start of gtask tests 1914s ok 1 /gtask/basic 1914s ok 2 /gtask/error 1914s ok 3 /gtask/error-literal 1914s ok 4 /gtask/error-literal-from-variable 1914s ok 5 /gtask/return-from-same-iteration 1914s ok 6 /gtask/return-from-toplevel 1914s ok 7 /gtask/return-from-anon-thread 1914s ok 8 /gtask/return-from-wrong-thread 1914s ok 9 /gtask/no-callback 1914s ok 10 /gtask/report-error 1914s ok 11 /gtask/priority 1914s ok 12 /gtask/name 1914s ok 13 /gtask/static-name 1914s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1608 1914s ok 14 /gtask/asynchronous-cancellation 1914s ok 15 /gtask/check-cancellable 1914s ok 16 /gtask/return-if-cancelled 1914s ok 17 /gtask/run-in-thread 1914s ok 18 /gtask/run-in-thread-sync 1914s ok 19 /gtask/run-in-thread-priority 1915s ok 20 /gtask/run-in-thread-nested 1915s # slow test /gtask/run-in-thread-nested executed in 0.54 secs 1915s ok 21 /gtask/run-in-thread-overflow 1915s # slow test /gtask/run-in-thread-overflow executed in 0.56 secs 1915s # GLib-GIO-DEBUG: GTask 0x2aa38a4f270 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1915s # GLib-GIO-DEBUG: GTask 0x2aa38a4f400 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1915s ok 22 /gtask/return-on-cancel 1915s # GLib-GIO-DEBUG: GTask 0x2aa38a4f590 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1915s ok - glib/task.test 1915s # Running test: glib/overflow-fallback.test 1915s ok - glib/overflow-fallback.test 1915s # Running test: glib/atomic.test 1915s # GLib-GIO-DEBUG: GTask 0x2aa389e5350 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1915s ok 23 /gtask/return-on-cancel-sync 1915s ok 24 /gtask/return-on-cancel-atomic 1915s ok 25 /gtask/return-pointer 1915s ok 26 /gtask/return-value 1915s ok 27 /gtask/return-prefixed-error 1915s ok 28 /gtask/object-keepalive 1915s ok 29 /gtask/legacy-error 1915s ok 30 /gtask/finalize-without-return 1915s # Start of name tests 1915s ok 31 /gtask/name/macro-wrapper 1915s # End of name tests 1915s # Start of return tests 1915s ok 32 /gtask/return/error-first 1915s ok 33 /gtask/return/value-first 1915s # Start of in-idle tests 1915s ok 34 /gtask/return/in-idle/error-first 1915s ok 35 /gtask/return/in-idle/value-first 1915s # End of in-idle tests 1915s # End of return tests 1915s # Start of attach-source tests 1915s # /gtask/attach-source/set-name summary: Test that attaching a source to a task will set the source’s name if unset 1915s ok 36 /gtask/attach-source/set-name 1915s # End of attach-source tests 1915s # End of gtask tests 1915s TAP version 14 1915s # random seed: R02Sedc5e4d00b41c62d1527fd0cfdc94193 1915s 1..6 1915s # Start of glib tests 1915s # Start of checked-math tests 1915s ok 1 /glib/checked-math/guint-add 1915s ok 2 /glib/checked-math/guint-mul 1915s ok 3 /glib/checked-math/guint64-add 1915s ok 4 /glib/checked-math/guint64-mul 1915s ok 5 /glib/checked-math/gsize-add 1915s ok 6 /glib/checked-math/gsize-mul 1915s # End of checked-math tests 1915s # End of glib tests 1915s TAP version 14 1915s # random seed: R02Sef601d6f78b8161113888cbcb7ab7952 1915s 1..2 1915s # Start of atomic tests 1915s ok 1 /atomic/types 1916s ok - glib/atomic.test 1916s ok 2 /atomic/threaded 1916s # slow test /atomic/threaded executed in 0.71 secs 1916s # End of atomic tests 1916s # Running test: glib/portal-support-flatpak-full.test 1916s TAP version 14 1916s # random seed: R02S1ae502f0dd4eec9127d5dfd9131bb4a1 1916s 1..1 1916s # Start of portal-support tests 1916s # Start of flatpak tests 1916s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-full_9ZR9J3/portal-support/flatpak/full/.dirs/home 1916s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-full_9ZR9J3/portal-support/flatpak/full/.dirs/cache 1916s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-full_9ZR9J3/portal-support/flatpak/full/.dirs/system-config1:/tmp/test_portal-support-flatpak-full_9ZR9J3/portal-support/flatpak/full/.dirs/system-config2 1916s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-full_9ZR9J3/portal-support/flatpak/full/.dirs/config 1916s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-full_9ZR9J3/portal-support/flatpak/full/.dirs/system-data1:/tmp/test_portal-support-flatpak-full_9ZR9J3/portal-support/flatpak/full/.dirs/system-data2 1916s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-full_9ZR9J3/portal-support/flatpak/full/.dirs/data 1916s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-full_9ZR9J3/portal-support/flatpak/full/.dirs/state 1916s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-full_9ZR9J3/portal-support/flatpak/full/.dirs/runtime 1916s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-full_9ZR9J3/portal-support/flatpak/full/.dirs/runtime/.flatpak-info 1916s ok 1 /portal-support/flatpak/full 1916s # End of flatpak tests 1916s # End of portal-support tests 1916s ok - glib/portal-support-flatpak-full.test 1916s # Running test: glib/io-channel-basic.test 1916s TAP version 14 1916s # random seed: R02Sc089b634d2d52fc54c57d47f5f1aef4d 1916s 1..1 1916s # Start of gio tests 1916s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1916s # random seed: R02S71a45afb36b5095d2db79a17f8e006f5 1916s # GLib-DEBUG: io-channel-basic: child writing 8+4987 bytes to 6 1916s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1916s # GLib-DEBUG: io-channel-basic: ...from 5: 4987 bytes 1916s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1917s # GLib-DEBUG: io-channel-basic: child writing 8+3247 bytes to 6 1917s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1917s # GLib-DEBUG: io-channel-basic: ...from 5: 3247 bytes 1917s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1917s # GLib-DEBUG: io-channel-basic: child writing 8+1814 bytes to 6 1917s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1917s # GLib-DEBUG: io-channel-basic: ...from 5: 1814 bytes 1917s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1917s # Executing: glib/io-channel-basic.test 1917s # GLib-DEBUG: io-channel-basic: child writing 8+1129 bytes to 6 1917s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1917s # GLib-DEBUG: io-channel-basic: ...from 5: 1129 bytes 1917s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1918s # GLib-DEBUG: io-channel-basic: child writing 8+4797 bytes to 6 1918s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1918s # GLib-DEBUG: io-channel-basic: ...from 5: 4797 bytes 1918s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1918s # GLib-DEBUG: io-channel-basic: child writing 8+3291 bytes to 6 1918s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1918s # GLib-DEBUG: io-channel-basic: ...from 5: 3291 bytes 1918s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1918s # GLib-DEBUG: io-channel-basic: child writing 8+2189 bytes to 6 1918s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1918s # GLib-DEBUG: io-channel-basic: ...from 5: 2189 bytes 1918s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1919s # GLib-DEBUG: io-channel-basic: child writing 8+2376 bytes to 6 1919s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1919s # GLib-DEBUG: io-channel-basic: ...from 5: 2376 bytes 1919s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1919s # GLib-DEBUG: io-channel-basic: child writing 8+2100 bytes to 6 1919s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1919s # GLib-DEBUG: io-channel-basic: ...from 5: 2100 bytes 1919s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1919s # GLib-DEBUG: io-channel-basic: child writing 8+3851 bytes to 6 1919s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1919s # GLib-DEBUG: io-channel-basic: ...from 5: 3851 bytes 1919s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1919s # GLib-DEBUG: io-channel-basic: child writing 8+4860 bytes to 6 1919s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1919s # GLib-DEBUG: io-channel-basic: ...from 5: 4860 bytes 1919s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1920s # GLib-DEBUG: io-channel-basic: child writing 8+2182 bytes to 6 1920s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1920s # GLib-DEBUG: io-channel-basic: ...from 5: 2182 bytes 1920s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1920s # GLib-DEBUG: io-channel-basic: child writing 8+3264 bytes to 6 1920s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1920s # GLib-DEBUG: io-channel-basic: ...from 5: 3264 bytes 1920s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1921s # GLib-DEBUG: io-channel-basic: child writing 8+3320 bytes to 6 1921s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1921s # GLib-DEBUG: io-channel-basic: ...from 5: 3320 bytes 1921s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1921s # GLib-DEBUG: io-channel-basic: child writing 8+3822 bytes to 6 1921s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1921s # GLib-DEBUG: io-channel-basic: ...from 5: 3822 bytes 1921s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1921s # GLib-DEBUG: io-channel-basic: child writing 8+245 bytes to 6 1921s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1921s # GLib-DEBUG: io-channel-basic: ...from 5: 245 bytes 1921s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1922s # GLib-DEBUG: io-channel-basic: child writing 8+634 bytes to 6 1922s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1922s # GLib-DEBUG: io-channel-basic: ...from 5: 634 bytes 1922s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1922s # GLib-DEBUG: io-channel-basic: child writing 8+2584 bytes to 6 1922s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1922s # GLib-DEBUG: io-channel-basic: ...from 5: 2584 bytes 1922s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1922s # Executing: glib/io-channel-basic.test 1922s # GLib-DEBUG: io-channel-basic: child writing 8+544 bytes to 6 1922s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1922s # GLib-DEBUG: io-channel-basic: ...from 5: 544 bytes 1922s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1923s # GLib-DEBUG: io-channel-basic: child writing 8+4755 bytes to 6 1923s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1923s # GLib-DEBUG: io-channel-basic: ...from 5: 4755 bytes 1923s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1923s # GLib-DEBUG: io-channel-basic: child writing 8+3508 bytes to 6 1923s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1923s # GLib-DEBUG: io-channel-basic: ...from 5: 3508 bytes 1923s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1923s # GLib-DEBUG: io-channel-basic: child writing 8+2497 bytes to 6 1923s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1923s # GLib-DEBUG: io-channel-basic: ...from 5: 2497 bytes 1923s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1924s # GLib-DEBUG: io-channel-basic: child writing 8+3814 bytes to 6 1924s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1924s # GLib-DEBUG: io-channel-basic: ...from 5: 3814 bytes 1924s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1924s # GLib-DEBUG: io-channel-basic: child writing 8+4828 bytes to 6 1924s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1924s # GLib-DEBUG: io-channel-basic: ...from 5: 4828 bytes 1924s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1924s # GLib-DEBUG: io-channel-basic: child exiting, closing 6 1924s # GLib-DEBUG: io-channel-basic: ...from 5: HUP 1924s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1924s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1924s # random seed: R02Sb0ce5efb5bf821a4098e1c098e4e87fe 1924s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1924s # random seed: R02S7f36f9d763c1ed2f700d0200bbb41b01 1924s # random seed: R02Scc95aaf2c44a2a26993f5bdbd54e5f8f 1924s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1924s # random seed: R02S2f7776813764b73a5f6b35fb7978b384 1924s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1924s # random seed: R02Sd877cee325a4878090642e7bf450b99f 1924s # GLib-DEBUG: io-channel-basic: child writing 8+3815 bytes to 13 1924s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1924s # GLib-DEBUG: io-channel-basic: child writing 8+469 bytes to 15 1924s # GLib-DEBUG: io-channel-basic: ...from 12: 3815 bytes 1924s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1924s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1924s # GLib-DEBUG: io-channel-basic: ...from 14: 469 bytes 1924s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1924s # GLib-DEBUG: io-channel-basic: child writing 8+1099 bytes to 11 1924s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1924s # GLib-DEBUG: io-channel-basic: ...from 10: 1099 bytes 1924s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1924s # GLib-DEBUG: io-channel-basic: child writing 8+2527 bytes to 17 1924s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1924s # GLib-DEBUG: io-channel-basic: ...from 16: 2527 bytes 1924s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1925s # GLib-DEBUG: io-channel-basic: child writing 8+257 bytes to 9 1925s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1925s # GLib-DEBUG: io-channel-basic: child writing 8+771 bytes to 15 1925s # GLib-DEBUG: io-channel-basic: child writing 8+4643 bytes to 17 1925s # GLib-DEBUG: io-channel-basic: child writing 8+1812 bytes to 11 1925s # GLib-DEBUG: io-channel-basic: child writing 8+2671 bytes to 13 1925s # GLib-DEBUG: io-channel-basic: ...from 8: 257 bytes 1925s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1925s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1925s # GLib-DEBUG: io-channel-basic: ...from 10: 1812 bytes 1925s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1925s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1925s # GLib-DEBUG: io-channel-basic: ...from 12: 2671 bytes 1925s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1925s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1925s # GLib-DEBUG: io-channel-basic: ...from 14: 771 bytes 1925s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1925s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1925s # GLib-DEBUG: io-channel-basic: ...from 16: 4643 bytes 1925s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1925s # GLib-DEBUG: io-channel-basic: child writing 8+1396 bytes to 9 1925s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1925s # GLib-DEBUG: io-channel-basic: ...from 8: 1396 bytes 1925s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1925s # GLib-DEBUG: io-channel-basic: child writing 8+4430 bytes to 11 1925s # GLib-DEBUG: io-channel-basic: child writing 8+2699 bytes to 15 1925s # GLib-DEBUG: io-channel-basic: child writing 8+589 bytes to 17 1925s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1925s # GLib-DEBUG: io-channel-basic: ...from 10: 4430 bytes 1925s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1925s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1925s # GLib-DEBUG: io-channel-basic: ...from 14: 2699 bytes 1925s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1925s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1925s # GLib-DEBUG: io-channel-basic: ...from 16: 589 bytes 1925s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1925s # GLib-DEBUG: io-channel-basic: child writing 8+2860 bytes to 13 1925s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1925s # GLib-DEBUG: io-channel-basic: ...from 12: 2860 bytes 1925s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1925s # GLib-DEBUG: io-channel-basic: child writing 8+2429 bytes to 9 1925s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1925s # GLib-DEBUG: io-channel-basic: ...from 8: 2429 bytes 1925s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1925s # GLib-DEBUG: io-channel-basic: child writing 8+2699 bytes to 15 1925s # GLib-DEBUG: io-channel-basic: child writing 8+712 bytes to 17 1925s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1925s # GLib-DEBUG: io-channel-basic: ...from 14: 2699 bytes 1925s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1925s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1925s # GLib-DEBUG: io-channel-basic: ...from 16: 712 bytes 1925s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1925s # GLib-DEBUG: io-channel-basic: child writing 8+2393 bytes to 11 1925s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1925s # GLib-DEBUG: io-channel-basic: child writing 8+1038 bytes to 13 1925s # GLib-DEBUG: io-channel-basic: ...from 10: 2393 bytes 1925s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1925s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1925s # GLib-DEBUG: io-channel-basic: ...from 12: 1038 bytes 1925s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1925s # GLib-DEBUG: io-channel-basic: child writing 8+2119 bytes to 9 1925s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1925s # GLib-DEBUG: io-channel-basic: ...from 8: 2119 bytes 1925s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1926s # GLib-DEBUG: io-channel-basic: child writing 8+1865 bytes to 15 1926s # GLib-DEBUG: io-channel-basic: child writing 8+2795 bytes to 9 1926s # GLib-DEBUG: io-channel-basic: child writing 8+1612 bytes to 17 1926s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1926s # GLib-DEBUG: io-channel-basic: ...from 8: 2795 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1926s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1926s # GLib-DEBUG: io-channel-basic: ...from 14: 1865 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1926s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1926s # GLib-DEBUG: io-channel-basic: ...from 16: 1612 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1926s # GLib-DEBUG: io-channel-basic: child writing 8+2491 bytes to 13 1926s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1926s # GLib-DEBUG: io-channel-basic: child writing 8+762 bytes to 11 1926s # GLib-DEBUG: io-channel-basic: ...from 12: 2491 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1926s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1926s # GLib-DEBUG: io-channel-basic: ...from 10: 762 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1926s # GLib-DEBUG: io-channel-basic: child writing 8+4761 bytes to 11 1926s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1926s # GLib-DEBUG: io-channel-basic: ...from 10: 4761 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1926s # GLib-DEBUG: io-channel-basic: child writing 8+2408 bytes to 13 1926s # GLib-DEBUG: io-channel-basic: child writing 8+2548 bytes to 9 1926s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1926s # GLib-DEBUG: io-channel-basic: ...from 8: 2548 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1926s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1926s # GLib-DEBUG: io-channel-basic: child writing 8+123 bytes to 17 1926s # GLib-DEBUG: io-channel-basic: ...from 12: 2408 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1926s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1926s # GLib-DEBUG: io-channel-basic: ...from 16: 123 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1926s # GLib-DEBUG: io-channel-basic: child writing 8+1132 bytes to 15 1926s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1926s # GLib-DEBUG: io-channel-basic: ...from 14: 1132 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1926s # GLib-DEBUG: io-channel-basic: child writing 8+555 bytes to 9 1926s # GLib-DEBUG: io-channel-basic: child writing 8+4412 bytes to 17 1926s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1926s # GLib-DEBUG: io-channel-basic: ...from 8: 555 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1926s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1926s # GLib-DEBUG: io-channel-basic: ...from 16: 4412 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1926s # GLib-DEBUG: io-channel-basic: child writing 8+4384 bytes to 11 1926s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1926s # GLib-DEBUG: io-channel-basic: child writing 8+1465 bytes to 13 1926s # GLib-DEBUG: io-channel-basic: child writing 8+3399 bytes to 15 1926s # GLib-DEBUG: io-channel-basic: ...from 10: 4384 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1926s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1926s # GLib-DEBUG: io-channel-basic: ...from 12: 1465 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1926s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1926s # GLib-DEBUG: io-channel-basic: ...from 14: 3399 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1926s # GLib-DEBUG: io-channel-basic: child writing 8+2780 bytes to 15 1926s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1926s # GLib-DEBUG: io-channel-basic: ...from 14: 2780 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1926s # GLib-DEBUG: io-channel-basic: child writing 8+1101 bytes to 13 1926s # GLib-DEBUG: io-channel-basic: child writing 8+3566 bytes to 11 1926s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1926s # GLib-DEBUG: io-channel-basic: ...from 10: 3566 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1926s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1926s # GLib-DEBUG: io-channel-basic: ...from 12: 1101 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1926s # GLib-DEBUG: io-channel-basic: child writing 8+1333 bytes to 17 1926s # GLib-DEBUG: io-channel-basic: child writing 8+911 bytes to 9 1926s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1926s # GLib-DEBUG: io-channel-basic: ...from 8: 911 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1926s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1926s # GLib-DEBUG: io-channel-basic: ...from 16: 1333 bytes 1926s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1927s # GLib-DEBUG: io-channel-basic: child writing 8+4080 bytes to 17 1927s # GLib-DEBUG: io-channel-basic: child writing 8+3893 bytes to 9 1927s # GLib-DEBUG: io-channel-basic: child writing 8+4116 bytes to 13 1927s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1927s # GLib-DEBUG: io-channel-basic: ...from 8: 3893 bytes 1927s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1927s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1927s # GLib-DEBUG: io-channel-basic: ...from 12: 4116 bytes 1927s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1927s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1927s # GLib-DEBUG: io-channel-basic: ...from 16: 4080 bytes 1927s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1927s # GLib-DEBUG: io-channel-basic: child writing 8+4545 bytes to 11 1927s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1927s # GLib-DEBUG: io-channel-basic: ...from 10: 4545 bytes 1927s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1927s # GLib-DEBUG: io-channel-basic: child writing 8+2314 bytes to 15 1927s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1927s # GLib-DEBUG: io-channel-basic: ...from 14: 2314 bytes 1927s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1927s # GLib-DEBUG: io-channel-basic: child writing 8+3529 bytes to 17 1927s # GLib-DEBUG: io-channel-basic: child writing 8+2292 bytes to 11 1927s # GLib-DEBUG: io-channel-basic: child writing 8+387 bytes to 9 1927s # GLib-DEBUG: io-channel-basic: child writing 8+4823 bytes to 13 1927s # GLib-DEBUG: io-channel-basic: child writing 8+3259 bytes to 15 1927s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1927s # GLib-DEBUG: io-channel-basic: ...from 8: 387 bytes 1927s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1927s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1927s # GLib-DEBUG: io-channel-basic: ...from 10: 2292 bytes 1927s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1927s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1927s # GLib-DEBUG: io-channel-basic: ...from 16: 3529 bytes 1927s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1927s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1927s # GLib-DEBUG: io-channel-basic: ...from 12: 4823 bytes 1927s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1927s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1927s # GLib-DEBUG: io-channel-basic: ...from 14: 3259 bytes 1927s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1927s # Executing: glib/io-channel-basic.test 1927s # GLib-DEBUG: io-channel-basic: child writing 8+1649 bytes to 17 1927s # GLib-DEBUG: io-channel-basic: child writing 8+480 bytes to 11 1927s # GLib-DEBUG: io-channel-basic: child writing 8+1704 bytes to 9 1927s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1927s # GLib-DEBUG: io-channel-basic: ...from 8: 1704 bytes 1927s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1927s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1927s # GLib-DEBUG: io-channel-basic: ...from 10: 480 bytes 1927s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1927s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1927s # GLib-DEBUG: io-channel-basic: ...from 16: 1649 bytes 1927s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1927s # GLib-DEBUG: io-channel-basic: child writing 8+265 bytes to 15 1927s # GLib-DEBUG: io-channel-basic: child writing 8+529 bytes to 13 1927s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1928s # GLib-DEBUG: io-channel-basic: child writing 8+106 bytes to 9 1928s # GLib-DEBUG: io-channel-basic: child writing 8+4744 bytes to 17 1928s # GLib-DEBUG: io-channel-basic: ...from 12: 529 bytes 1928s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1928s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1928s # GLib-DEBUG: io-channel-basic: ...from 14: 265 bytes 1928s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1928s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1928s # GLib-DEBUG: io-channel-basic: ...from 8: 106 bytes 1928s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1928s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1928s # GLib-DEBUG: io-channel-basic: ...from 16: 4744 bytes 1928s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1928s # GLib-DEBUG: io-channel-basic: child writing 8+3219 bytes to 11 1928s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1928s # GLib-DEBUG: io-channel-basic: ...from 10: 3219 bytes 1928s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1928s # GLib-DEBUG: io-channel-basic: child writing 8+982 bytes to 9 1928s # GLib-DEBUG: io-channel-basic: child writing 8+1461 bytes to 15 1928s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1928s # GLib-DEBUG: io-channel-basic: ...from 8: 982 bytes 1928s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1928s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1928s # GLib-DEBUG: io-channel-basic: ...from 14: 1461 bytes 1928s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1928s # GLib-DEBUG: io-channel-basic: child writing 8+4484 bytes to 17 1928s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1928s # GLib-DEBUG: io-channel-basic: ...from 16: 4484 bytes 1928s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1928s # GLib-DEBUG: io-channel-basic: child writing 8+4000 bytes to 13 1928s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1928s # GLib-DEBUG: io-channel-basic: ...from 12: 4000 bytes 1928s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1928s # GLib-DEBUG: io-channel-basic: child writing 8+320 bytes to 11 1928s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1928s # GLib-DEBUG: io-channel-basic: ...from 10: 320 bytes 1928s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1928s # GLib-DEBUG: io-channel-basic: child writing 8+1906 bytes to 9 1928s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1928s # GLib-DEBUG: io-channel-basic: ...from 8: 1906 bytes 1928s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1928s # GLib-DEBUG: io-channel-basic: child writing 8+2042 bytes to 15 1928s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1928s # GLib-DEBUG: io-channel-basic: ...from 14: 2042 bytes 1928s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1928s # GLib-DEBUG: io-channel-basic: child writing 8+3114 bytes to 17 1928s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1928s # GLib-DEBUG: io-channel-basic: ...from 16: 3114 bytes 1928s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1928s # GLib-DEBUG: io-channel-basic: child writing 8+4745 bytes to 11 1928s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1928s # GLib-DEBUG: io-channel-basic: ...from 10: 4745 bytes 1928s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1928s # GLib-DEBUG: io-channel-basic: child writing 8+1786 bytes to 13 1928s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1928s # GLib-DEBUG: io-channel-basic: ...from 12: 1786 bytes 1928s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1929s # GLib-DEBUG: io-channel-basic: child writing 8+812 bytes to 17 1929s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1929s # GLib-DEBUG: io-channel-basic: ...from 16: 812 bytes 1929s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1929s # GLib-DEBUG: io-channel-basic: child writing 8+3798 bytes to 9 1929s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1929s # GLib-DEBUG: io-channel-basic: child writing 8+2212 bytes to 13 1929s # GLib-DEBUG: io-channel-basic: ...from 8: 3798 bytes 1929s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1929s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1929s # GLib-DEBUG: io-channel-basic: ...from 12: 2212 bytes 1929s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1929s # GLib-DEBUG: io-channel-basic: child writing 8+4322 bytes to 15 1929s # GLib-DEBUG: io-channel-basic: child writing 8+2622 bytes to 11 1929s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1929s # GLib-DEBUG: io-channel-basic: ...from 10: 2622 bytes 1929s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1929s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1929s # GLib-DEBUG: io-channel-basic: ...from 14: 4322 bytes 1929s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1929s # GLib-DEBUG: io-channel-basic: child writing 8+3337 bytes to 13 1929s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1929s # GLib-DEBUG: io-channel-basic: ...from 12: 3337 bytes 1929s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1929s # GLib-DEBUG: io-channel-basic: child writing 8+3190 bytes to 17 1929s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1929s # GLib-DEBUG: io-channel-basic: ...from 16: 3190 bytes 1929s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1929s # GLib-DEBUG: io-channel-basic: child writing 8+844 bytes to 9 1929s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1929s # GLib-DEBUG: io-channel-basic: ...from 8: 844 bytes 1929s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1929s # GLib-DEBUG: io-channel-basic: child writing 8+2590 bytes to 15 1929s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1929s # GLib-DEBUG: io-channel-basic: ...from 14: 2590 bytes 1929s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1929s # GLib-DEBUG: io-channel-basic: child writing 8+4525 bytes to 11 1929s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1929s # GLib-DEBUG: io-channel-basic: ...from 10: 4525 bytes 1929s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1929s # GLib-DEBUG: io-channel-basic: child writing 8+1196 bytes to 17 1929s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1929s # GLib-DEBUG: io-channel-basic: ...from 16: 1196 bytes 1929s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1929s # GLib-DEBUG: io-channel-basic: child writing 8+3380 bytes to 9 1929s # GLib-DEBUG: io-channel-basic: child writing 8+204 bytes to 11 1929s # GLib-DEBUG: io-channel-basic: child writing 8+2909 bytes to 15 1929s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1929s # GLib-DEBUG: io-channel-basic: ...from 8: 3380 bytes 1929s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1929s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1929s # GLib-DEBUG: io-channel-basic: ...from 10: 204 bytes 1929s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1929s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1929s # GLib-DEBUG: io-channel-basic: ...from 14: 2909 bytes 1929s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1929s # GLib-DEBUG: io-channel-basic: child writing 8+453 bytes to 13 1929s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1929s # GLib-DEBUG: io-channel-basic: ...from 12: 453 bytes 1929s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1930s # GLib-DEBUG: io-channel-basic: child writing 8+965 bytes to 17 1930s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 16: 965 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1930s # GLib-DEBUG: io-channel-basic: child writing 8+3810 bytes to 15 1930s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 14: 3810 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1930s # GLib-DEBUG: io-channel-basic: child writing 8+1652 bytes to 13 1930s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 12: 1652 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1930s # GLib-DEBUG: io-channel-basic: child writing 8+3019 bytes to 9 1930s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 8: 3019 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1930s # GLib-DEBUG: io-channel-basic: child writing 8+2240 bytes to 11 1930s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 10: 2240 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1930s # GLib-DEBUG: io-channel-basic: child writing 8+826 bytes to 17 1930s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 16: 826 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1930s # GLib-DEBUG: io-channel-basic: child writing 8+1841 bytes to 15 1930s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 14: 1841 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1930s # GLib-DEBUG: io-channel-basic: child writing 8+1716 bytes to 13 1930s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 12: 1716 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1930s # GLib-DEBUG: io-channel-basic: child writing 8+3662 bytes to 9 1930s # GLib-DEBUG: io-channel-basic: child writing 8+4792 bytes to 11 1930s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 8: 3662 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1930s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 10: 4792 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1930s # GLib-DEBUG: io-channel-basic: child writing 8+673 bytes to 13 1930s # GLib-DEBUG: io-channel-basic: child writing 8+3821 bytes to 17 1930s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 12: 673 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1930s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 16: 3821 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1930s # GLib-DEBUG: io-channel-basic: child writing 8+2267 bytes to 15 1930s # GLib-DEBUG: io-channel-basic: child writing 8+4855 bytes to 11 1930s # GLib-DEBUG: io-channel-basic: child writing 8+438 bytes to 9 1930s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 8: 438 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1930s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 10: 4855 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1930s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 14: 2267 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1930s # GLib-DEBUG: io-channel-basic: child writing 8+291 bytes to 11 1930s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 10: 291 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1930s # GLib-DEBUG: io-channel-basic: child exiting, closing 11 1930s # GLib-DEBUG: io-channel-basic: ...from 10: HUP 1930s # GLib-DEBUG: io-channel-basic: child writing 8+245 bytes to 9 1930s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 8: 245 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1930s # GLib-DEBUG: io-channel-basic: child writing 8+4122 bytes to 13 1930s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1930s # GLib-DEBUG: io-channel-basic: ...from 12: 4122 bytes 1930s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1931s # GLib-DEBUG: io-channel-basic: child writing 8+57 bytes to 15 1931s # GLib-DEBUG: io-channel-basic: child writing 8+1066 bytes to 17 1931s # GLib-DEBUG: io-channel-basic: child exiting, closing 17 1931s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1931s # GLib-DEBUG: io-channel-basic: ...from 14: 57 bytes 1931s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1931s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1931s # GLib-DEBUG: io-channel-basic: ...from 16: 1066 bytes 1931s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1931s # GLib-DEBUG: io-channel-basic: ...from 16: HUP 1931s # GLib-DEBUG: io-channel-basic: child writing 8+1095 bytes to 9 1931s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1931s # GLib-DEBUG: io-channel-basic: child writing 8+1640 bytes to 15 1931s # GLib-DEBUG: io-channel-basic: child exiting, closing 15 1931s # GLib-DEBUG: io-channel-basic: ...from 8: 1095 bytes 1931s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1931s # GLib-DEBUG: io-channel-basic: ...from 14: HUP IN 1931s # GLib-DEBUG: io-channel-basic: ...from 14: 1640 bytes 1931s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1931s # GLib-DEBUG: io-channel-basic: child writing 8+4355 bytes to 13 1931s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1931s # GLib-DEBUG: io-channel-basic: ...from 12: 4355 bytes 1931s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1931s # GLib-DEBUG: io-channel-basic: child writing 8+4419 bytes to 9 1931s # GLib-DEBUG: io-channel-basic: child writing 8+3087 bytes to 13 1931s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1931s # GLib-DEBUG: io-channel-basic: ...from 12: 3087 bytes 1931s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1931s # GLib-DEBUG: io-channel-basic: child exiting, closing 9 1931s # GLib-DEBUG: io-channel-basic: ...from 8: HUP IN 1931s # GLib-DEBUG: io-channel-basic: ...from 8: 4419 bytes 1931s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1931s # GLib-DEBUG: io-channel-basic: child writing 8+4028 bytes to 13 1931s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1931s # GLib-DEBUG: io-channel-basic: ...from 12: 4028 bytes 1931s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1932s # GLib-DEBUG: io-channel-basic: child writing 8+2652 bytes to 13 1932s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1932s # GLib-DEBUG: io-channel-basic: ...from 12: 2652 bytes 1932s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1932s # Executing: glib/io-channel-basic.test 1932s # GLib-DEBUG: io-channel-basic: child writing 8+3326 bytes to 13 1932s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1932s # GLib-DEBUG: io-channel-basic: ...from 12: 3326 bytes 1932s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1933s # GLib-DEBUG: io-channel-basic: child writing 8+2621 bytes to 13 1933s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1933s # GLib-DEBUG: io-channel-basic: ...from 12: 2621 bytes 1933s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1933s # GLib-DEBUG: io-channel-basic: child exiting, closing 13 1933s # GLib-DEBUG: io-channel-basic: ...from 12: HUP 1933s ok 1 /gio/io-basics 1933s # slow test /gio/io-basics executed in 16.40 secs 1933s # End of gio tests 1933s ok - glib/io-channel-basic.test 1933s # Running test: glib/gdbus-test-codegen.test 1933s TAP version 14 1933s # random seed: R02S148a3d1ed2e11618280e5e6eb5afee75 1933s 1..8 1933s # Start of gdbus tests 1933s # Start of codegen tests 1933s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/annotations/.dirs/home 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/annotations/.dirs/cache 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/annotations/.dirs/system-config2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/annotations/.dirs/config 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/annotations/.dirs/system-data2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/annotations/.dirs/data 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/annotations/.dirs/state 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/annotations/.dirs/runtime 1933s ok 1 /gdbus/codegen/annotations 1933s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/interface_stability/.dirs/home 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/interface_stability/.dirs/cache 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/interface_stability/.dirs/system-config2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/interface_stability/.dirs/config 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/interface_stability/.dirs/system-data2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/interface_stability/.dirs/data 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/interface_stability/.dirs/state 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/interface_stability/.dirs/runtime 1933s ok 2 /gdbus/codegen/interface_stability 1933s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/object-manager/.dirs/home 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/object-manager/.dirs/cache 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/object-manager/.dirs/system-config2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/object-manager/.dirs/config 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/object-manager/.dirs/system-data2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/object-manager/.dirs/data 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/object-manager/.dirs/state 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/object-manager/.dirs/runtime 1933s ok 3 /gdbus/codegen/object-manager 1933s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/property-naming/.dirs/home 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/property-naming/.dirs/cache 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/property-naming/.dirs/system-config2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/property-naming/.dirs/config 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/property-naming/.dirs/system-data2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/property-naming/.dirs/data 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/property-naming/.dirs/state 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/property-naming/.dirs/runtime 1933s ok 4 /gdbus/codegen/property-naming 1933s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/autocleanups/.dirs/home 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/autocleanups/.dirs/cache 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/autocleanups/.dirs/system-config2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/autocleanups/.dirs/config 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/autocleanups/.dirs/system-data2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/autocleanups/.dirs/data 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/autocleanups/.dirs/state 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/autocleanups/.dirs/runtime 1933s ok 5 /gdbus/codegen/autocleanups 1933s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/deprecations/.dirs/home 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/deprecations/.dirs/cache 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/deprecations/.dirs/system-config2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/deprecations/.dirs/config 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/deprecations/.dirs/system-data2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/deprecations/.dirs/data 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/deprecations/.dirs/state 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/deprecations/.dirs/runtime 1933s ok 6 /gdbus/codegen/deprecations 1933s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/standalone-interface-info/.dirs/home 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/standalone-interface-info/.dirs/cache 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/standalone-interface-info/.dirs/config 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/standalone-interface-info/.dirs/data 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/standalone-interface-info/.dirs/state 1933s ok - glib/gdbus-test-codegen.test 1933s # Running test: glib/references.test 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/standalone-interface-info/.dirs/runtime 1933s ok 7 /gdbus/codegen/standalone-interface-info 1933s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/unix-fd-list/.dirs/home 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/unix-fd-list/.dirs/cache 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/unix-fd-list/.dirs/system-config2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/unix-fd-list/.dirs/config 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/unix-fd-list/.dirs/system-data2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/unix-fd-list/.dirs/data 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/unix-fd-list/.dirs/state 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_G83NK3/gdbus/codegen/unix-fd-list/.dirs/runtime 1933s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1933s ok 8 /gdbus/codegen/unix-fd-list 1933s # End of codegen tests 1933s # End of gdbus tests 1933s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1933s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1933s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1933s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1933s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1933s TAP version 14 1933s # random seed: R02S9dca9257e84168de8127af3da9fc0410 1933s 1..4 1933s # Start of gobject tests 1933s ok 1 /gobject/references 1933s ok 2 /gobject/references-many 1933s ok 3 /gobject/references_two 1933s ok 4 /gobject/references_run_dispose 1933s # End of gobject tests 1933s ok - glib/references.test 1933s # Running test: glib/converter.test 1933s TAP version 14 1933s ok - glib/converter.test 1933s # Running test: glib/live-g-file.test 1933s # random seed: R02Sbe3717686dda8fc6f8bc8ecaa7803261 1933s 1..3 1933s # Start of converter tests 1933s ok 1 /converter/bytes 1933s ok 2 /converter/extra-bytes-at-end 1933s ok 3 /converter/gzip-os-property 1933s # End of converter tests 1933s TAP version 14 1933s # random seed: R02S562bed5e14f11267f814e3f6149f13d3 1933s 1..13 1933s # Start of live-g-file tests 1933s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_O11JK3/live-g-file/prep_clean_structure/.dirs/home 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/prep_clean_structure/.dirs/cache 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/prep_clean_structure/.dirs/system-config1:/tmp/test_live-g-file_O11JK3/live-g-file/prep_clean_structure/.dirs/system-config2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/prep_clean_structure/.dirs/config 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/prep_clean_structure/.dirs/system-data1:/tmp/test_live-g-file_O11JK3/live-g-file/prep_clean_structure/.dirs/system-data2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/prep_clean_structure/.dirs/data 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/prep_clean_structure/.dirs/state 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_O11JK3/live-g-file/prep_clean_structure/.dirs/runtime 1933s # Cleaning target testing structure in '/tmp/test_live-g-file_O11JK3/testdir_live-g-file'... 1933s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1933s ok 1 /live-g-file/prep_clean_structure 1933s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_O11JK3/live-g-file/create_structure/.dirs/home 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/create_structure/.dirs/cache 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/create_structure/.dirs/system-config1:/tmp/test_live-g-file_O11JK3/live-g-file/create_structure/.dirs/system-config2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/create_structure/.dirs/config 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/create_structure/.dirs/system-data1:/tmp/test_live-g-file_O11JK3/live-g-file/create_structure/.dirs/system-data2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/create_structure/.dirs/data 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/create_structure/.dirs/state 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_O11JK3/live-g-file/create_structure/.dirs/runtime 1933s # 1933s # Going to create testing structure in '/tmp/test_live-g-file_O11JK3/testdir_live-g-file'... 1933s # Creating directory 'dir1'... 1933s # Creating directory 'dir1/subdir'... 1933s # Creating directory 'dir2'... 1933s # Creating directory 'dir-target'... 1933s # Creating directory 'dir_no-access'... 1933s # Creating directory 'dir_no-write'... 1933s # Creating file 'target-file'... 1933s # Creating file 'normal_file'... 1933s # Creating symlink 'normal_file-symlink' --> 'normal_file'... 1933s # Creating file 'executable_file'... 1933s # Creating file 'private_file'... 1933s # Creating file 'normal_file2'... 1933s # Creating file 'readonly_file'... 1933s # Creating file 'UTF_příliš z'... 1933s # Creating directory 'dir_příliš z'... 1933s # Creating symlink 'lost_symlink' --> 'nowhere'... 1933s # Creating directory 'dir_hidden'... 1933s # Creating file 'dir_hidden/.a-hidden-file'... 1933s # Creating file 'dir_hidden/file-in-.hidden1'... 1933s # Creating file 'dir_hidden/file-in-.hidden2'... 1933s # Creating pattern file... 1933s # done. 1933s ok 2 /live-g-file/create_structure 1933s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_initial_structure/.dirs/home 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_initial_structure/.dirs/cache 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_initial_structure/.dirs/system-config1:/tmp/test_live-g-file_O11JK3/live-g-file/test_initial_structure/.dirs/system-config2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_initial_structure/.dirs/config 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_initial_structure/.dirs/system-data1:/tmp/test_live-g-file_O11JK3/live-g-file/test_initial_structure/.dirs/system-data2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_initial_structure/.dirs/data 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_initial_structure/.dirs/state 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_O11JK3/live-g-file/test_initial_structure/.dirs/runtime 1933s # Testing sample structure in '/tmp/test_live-g-file_O11JK3/testdir_live-g-file'... 1933s # Testing file 'dir1'... 1933s # Testing file 'dir1/subdir'... 1933s # Testing file 'dir2'... 1933s # Testing file 'dir-target'... 1933s # Testing file 'dir_no-access'... 1933s # Testing file 'dir_no-write'... 1933s # Testing file 'target-file'... 1933s # Testing file 'normal_file'... 1933s # Testing file 'normal_file-symlink'... 1933s # Testing file 'executable_file'... 1933s # Testing file 'private_file'... 1933s # Testing file 'normal_file2'... 1933s # Testing file 'readonly_file'... 1933s # Testing file 'UTF_příliš z'... 1933s # Testing file 'dir_příliš z'... 1933s # Testing file 'lost_symlink'... 1933s # Testing file 'dir_hidden'... 1933s # Testing file 'dir_hidden/.a-hidden-file'... 1933s # Testing file 'dir_hidden/file-in-.hidden1'... 1933s # Testing file 'dir_hidden/file-in-.hidden2'... 1933s # Testing pattern file... 1933s # read 65536 bytes, total = 65536 of 65536. 1933s ok 3 /live-g-file/test_initial_structure 1933s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_traverse_structure/.dirs/home 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_traverse_structure/.dirs/cache 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_traverse_structure/.dirs/system-config1:/tmp/test_live-g-file_O11JK3/live-g-file/test_traverse_structure/.dirs/system-config2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_traverse_structure/.dirs/config 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_traverse_structure/.dirs/system-data1:/tmp/test_live-g-file_O11JK3/live-g-file/test_traverse_structure/.dirs/system-data2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_traverse_structure/.dirs/data 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_traverse_structure/.dirs/state 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_O11JK3/live-g-file/test_traverse_structure/.dirs/runtime 1933s # Traversing through the sample structure in '/tmp/test_live-g-file_O11JK3/testdir_live-g-file'... 1933s # Found file dir1, relative to root: dir1 1933s # Found file subdir, relative to root: dir1/subdir 1933s # Found file dir2, relative to root: dir2 1933s # Found file dir-target, relative to root: dir-target 1933s # Found file dir_no-access, relative to root: dir_no-access 1933s # Found file dir_no-write, relative to root: dir_no-write 1933s # Found file target-file, relative to root: target-file 1933s # Found file normal_file, relative to root: normal_file 1933s # Found file normal_file-symlink, relative to root: normal_file-symlink 1933s # Found file executable_file, relative to root: executable_file 1933s # Found file private_file, relative to root: private_file 1933s # Found file normal_file2, relative to root: normal_file2 1933s # Found file readonly_file, relative to root: readonly_file 1933s # Found file UTF_příliš z, relative to root: UTF_příliš z 1933s # Found file dir_příliš z, relative to root: dir_příliš z 1933s # Found file lost_symlink, relative to root: lost_symlink 1933s # Found file dir_hidden, relative to root: dir_hidden 1933s # Found file .a-hidden-file, relative to root: dir_hidden/.a-hidden-file 1933s # Found file file-in-.hidden1, relative to root: dir_hidden/file-in-.hidden1 1933s # Found file .hidden, relative to root: dir_hidden/.hidden 1933s # Found file file-in-.hidden2, relative to root: dir_hidden/file-in-.hidden2 1933s # Found file pattern_file, relative to root: pattern_file 1933s ok 4 /live-g-file/test_traverse_structure 1933s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_enumerate/.dirs/home 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_enumerate/.dirs/cache 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_enumerate/.dirs/system-config1:/tmp/test_live-g-file_O11JK3/live-g-file/test_enumerate/.dirs/system-config2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_enumerate/.dirs/config 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_enumerate/.dirs/system-data1:/tmp/test_live-g-file_O11JK3/live-g-file/test_enumerate/.dirs/system-data2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_enumerate/.dirs/data 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_enumerate/.dirs/state 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_O11JK3/live-g-file/test_enumerate/.dirs/runtime 1933s # Test enumerate '/tmp/test_live-g-file_O11JK3/testdir_live-g-file'... 1933s # Testing file 'dir_no-access' 1933s # Testing file 'normal_file' 1933s # Testing file 'normal_file-symlink' 1933s # Testing file 'not_exists' 1933s # Testing file 'not_exists' 1933s # Testing file 'not_exists2' 1933s # Testing file 'not_exists3' 1933s # Testing file 'not_exists4' 1933s # Testing file 'dir_no-execute/file' 1933s ok 5 /live-g-file/test_enumerate 1933s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_open/.dirs/home 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_open/.dirs/cache 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_open/.dirs/system-config1:/tmp/test_live-g-file_O11JK3/live-g-file/test_open/.dirs/system-config2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_open/.dirs/config 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_open/.dirs/system-data1:/tmp/test_live-g-file_O11JK3/live-g-file/test_open/.dirs/system-data2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_open/.dirs/data 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_open/.dirs/state 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_O11JK3/live-g-file/test_open/.dirs/runtime 1933s # test_open: 'dir1' 1933s # test_open: 'dir_no-access' 1933s # test_open: 'target-file' 1933s # test_open: 'normal_file-symlink' 1933s # test_open: 'executable_file' 1933s # test_open: 'private_file' 1933s # test_open: 'readonly_file' 1933s # test_open: 'UTF_příliš z' 1933s # test_open: 'pattern_file' 1933s # test_open: 'not_exists' 1933s # test_open: 'dir_no-execute/file' 1933s # test_open: 'lost_symlink' 1933s ok 6 /live-g-file/test_open 1933s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_create/.dirs/home 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_create/.dirs/cache 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_create/.dirs/system-config1:/tmp/test_live-g-file_O11JK3/live-g-file/test_create/.dirs/system-config2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_create/.dirs/config 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_create/.dirs/system-data1:/tmp/test_live-g-file_O11JK3/live-g-file/test_create/.dirs/system-data2 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_create/.dirs/data 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_create/.dirs/state 1933s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_O11JK3/live-g-file/test_create/.dirs/runtime 1933s # test_create: 'dir1' 1933s # error code 3 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir1”: Is a directory 1933s # test_create: 'dir1/subdir' 1933s # error code 3 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir1/subdir”: Is a directory 1933s # test_create: 'dir2' 1933s # error code 2 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir2”: File exists 1933s # test_create: 'normal_file' 1933s # error code 2 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/normal_file”: File exists 1933s # test_create: 'executable_file' 1933s # test_create: 'private_file' 1933s # test_create: 'normal_file2' 1933s # test_create: 'UTF_příliš z' 1934s # error code 2 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/UTF_příliš z”: File exists 1934s # test_create: 'dir_příliš z' 1934s # error code 2 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_příliš z”: File exists 1934s # test_create: 'pattern_file' 1934s # test_create: 'not_exists2' 1934s # test_create: 'not_exists3' 1934s # test_create: 'not_exists4' 1934s ok 7 /live-g-file/test_create 1934s # slow test /live-g-file/test_create executed in 0.55 secs 1934s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_copy_move/.dirs/home 1934s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_copy_move/.dirs/cache 1934s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_copy_move/.dirs/system-config1:/tmp/test_live-g-file_O11JK3/live-g-file/test_copy_move/.dirs/system-config2 1934s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_copy_move/.dirs/config 1934s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_copy_move/.dirs/system-data1:/tmp/test_live-g-file_O11JK3/live-g-file/test_copy_move/.dirs/system-data2 1934s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_copy_move/.dirs/data 1934s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_copy_move/.dirs/state 1934s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_O11JK3/live-g-file/test_copy_move/.dirs/runtime 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'dir1/subdir' --> 'dir-target' 1934s # res = 0, error code 25 = Can’t recursively copy directory 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'dir1/subdir' --> '.' 1934s # res = 0, error code 2 = Target file exists 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'dir1/subdir' --> 'target-file' 1934s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/target-file/dir1/subdir”: Not a directory 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'dir1/subdir' --> 'not_exists' 1934s # res = 0, error code 25 = Can’t recursively copy directory 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'dir1/subdir' --> 'dir_no-access' 1934s # res = 0, error code 25 = Can’t recursively copy directory 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'dir1/subdir' --> 'dir_no-write' 1934s # res = 0, error code 25 = Can’t recursively copy directory 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'dir2' --> 'dir-target' 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'dir-target' --> 'dir-target' 1934s # res = 0, error code 25 = Can’t recursively copy directory 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'dir-target' --> '.' 1934s # res = 0, error code 2 = Target file exists 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'dir-target' --> 'target-file' 1934s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/target-file/dir-target”: Not a directory 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'dir-target' --> 'not_exists' 1934s # res = 0, error code 25 = Can’t recursively copy directory 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'dir-target' --> 'dir_no-access' 1934s # res = 0, error code 25 = Can’t recursively copy directory 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'dir-target' --> 'dir_no-write' 1934s # res = 0, error code 25 = Can’t recursively copy directory 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'target-file' --> 'dir-target' 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'target-file' --> '.' 1934s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/target-file”: File exists 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'target-file' --> 'target-file' 1934s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/target-file/target-file”: Not a directory 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'target-file' --> 'not_exists' 1934s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists/target-file”: No such file or directory 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'target-file' --> 'dir_no-access' 1934s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-access/target-file”: Permission denied 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'target-file' --> 'dir_no-write' 1934s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-write/target-file”: Permission denied 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'normal_file-symlink' --> 'dir-target' 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'normal_file-symlink' --> '.' 1934s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_O11JK3/testdir_live-g-file/normal_file-symlink: File exists 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'normal_file-symlink' --> 'target-file' 1934s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_O11JK3/testdir_live-g-file/target-file/normal_file-symlink: Not a directory 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'normal_file-symlink' --> 'not_exists' 1934s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists/normal_file-symlink: No such file or directory 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'normal_file-symlink' --> 'dir_no-access' 1934s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-access/normal_file-symlink: Permission denied 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'normal_file-symlink' --> 'dir_no-write' 1934s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-write/normal_file-symlink: Permission denied 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'executable_file' --> 'dir-target' 1934s # We do not have CAP_DAC_OVERRIDE or equivalent 1934s # do_copy_move: 'executable_file' --> 'dir-target' 1935s # We do not have CAP_DAC_OVERRIDE or equivalent 1935s # do_copy_move: 'executable_file' --> '.' 1935s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/executable_file”: File exists 1935s # We do not have CAP_DAC_OVERRIDE or equivalent 1935s # do_copy_move: 'executable_file' --> 'target-file' 1935s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/target-file/executable_file”: Not a directory 1935s # We do not have CAP_DAC_OVERRIDE or equivalent 1935s # do_copy_move: 'executable_file' --> 'not_exists' 1935s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists/executable_file”: No such file or directory 1935s # We do not have CAP_DAC_OVERRIDE or equivalent 1935s # do_copy_move: 'executable_file' --> 'dir_no-access' 1935s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-access/executable_file”: Permission denied 1935s # We do not have CAP_DAC_OVERRIDE or equivalent 1935s # do_copy_move: 'executable_file' --> 'dir_no-write' 1935s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-write/executable_file”: Permission denied 1935s # We do not have CAP_DAC_OVERRIDE or equivalent 1935s # do_copy_move: 'private_file' --> 'dir-target' 1935s # We do not have CAP_DAC_OVERRIDE or equivalent 1935s # do_copy_move: 'private_file' --> 'dir-target' 1935s # We do not have CAP_DAC_OVERRIDE or equivalent 1935s # do_copy_move: 'private_file' --> '.' 1935s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/private_file”: File exists 1935s # We do not have CAP_DAC_OVERRIDE or equivalent 1935s # do_copy_move: 'private_file' --> 'target-file' 1935s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/target-file/private_file”: Not a directory 1935s # We do not have CAP_DAC_OVERRIDE or equivalent 1935s # do_copy_move: 'private_file' --> 'not_exists' 1935s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists/private_file”: No such file or directory 1935s # We do not have CAP_DAC_OVERRIDE or equivalent 1935s # do_copy_move: 'private_file' --> 'dir_no-access' 1935s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-access/private_file”: Permission denied 1935s # We do not have CAP_DAC_OVERRIDE or equivalent 1935s # do_copy_move: 'private_file' --> 'dir_no-write' 1935s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-write/private_file”: Permission denied 1935s # We do not have CAP_DAC_OVERRIDE or equivalent 1935s # do_copy_move: 'normal_file2' --> 'dir-target' 1935s # We do not have CAP_DAC_OVERRIDE or equivalent 1935s # do_copy_move: 'normal_file2' --> 'dir-target' 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'normal_file2' --> '.' 1936s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/normal_file2”: File exists 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'normal_file2' --> 'target-file' 1936s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/target-file/normal_file2”: Not a directory 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'normal_file2' --> 'not_exists' 1936s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists/normal_file2”: No such file or directory 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'normal_file2' --> 'dir_no-access' 1936s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-access/normal_file2”: Permission denied 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'normal_file2' --> 'dir_no-write' 1936s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-write/normal_file2”: Permission denied 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 1936s ok - glib/live-g-file.test 1936s # Running test: glib/g-file-info-filesystem-readonly.test 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'UTF_příliš z' --> '.' 1936s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/UTF_příliš z”: File exists 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'UTF_příliš z' --> 'target-file' 1936s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/target-file/UTF_příliš z”: Not a directory 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'UTF_příliš z' --> 'not_exists' 1936s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists/UTF_příliš z”: No such file or directory 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'UTF_příliš z' --> 'dir_no-access' 1936s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-access/UTF_příliš z”: Permission denied 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'UTF_příliš z' --> 'dir_no-write' 1936s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-write/UTF_příliš z”: Permission denied 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'pattern_file' --> 'dir-target' 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'pattern_file' --> '.' 1936s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/pattern_file”: File exists 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'pattern_file' --> 'target-file' 1936s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/target-file/pattern_file”: Not a directory 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'pattern_file' --> 'not_exists' 1936s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists/pattern_file”: No such file or directory 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'pattern_file' --> 'dir_no-access' 1936s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-access/pattern_file”: Permission denied 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'pattern_file' --> 'dir_no-write' 1936s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-write/pattern_file”: Permission denied 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'not_exists' --> 'dir-target' 1936s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists”: No such file or directory 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'not_exists' --> '.' 1936s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists”: No such file or directory 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'not_exists' --> 'target-file' 1936s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists”: No such file or directory 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'not_exists' --> 'not_exists' 1936s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists”: No such file or directory 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'not_exists' --> 'dir_no-access' 1936s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists”: No such file or directory 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'not_exists' --> 'dir_no-write' 1936s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists”: No such file or directory 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'not_exists' --> 'dir-target' 1936s # res = 0, error code 1 = Error moving file /tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists: No such file or directory 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'lost_symlink' --> 'dir-target' 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'lost_symlink' --> '.' 1936s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_O11JK3/testdir_live-g-file/lost_symlink: File exists 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'lost_symlink' --> 'target-file' 1936s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_O11JK3/testdir_live-g-file/target-file/lost_symlink: Not a directory 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'lost_symlink' --> 'not_exists' 1936s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists/lost_symlink: No such file or directory 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'lost_symlink' --> 'dir_no-access' 1936s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-access/lost_symlink: Permission denied 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s # do_copy_move: 'lost_symlink' --> 'dir_no-write' 1936s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-write/lost_symlink: Permission denied 1936s ok 8 /live-g-file/test_copy_move 1936s # slow test /live-g-file/test_copy_move executed in 2.77 secs 1936s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_delete/.dirs/home 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_delete/.dirs/cache 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_delete/.dirs/system-config1:/tmp/test_live-g-file_O11JK3/live-g-file/test_delete/.dirs/system-config2 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_delete/.dirs/config 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_delete/.dirs/system-data1:/tmp/test_live-g-file_O11JK3/live-g-file/test_delete/.dirs/system-data2 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_delete/.dirs/data 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_delete/.dirs/state 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_O11JK3/live-g-file/test_delete/.dirs/runtime 1936s # Deleting dir1, path = /tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir1 1936s # result = 0, error = Error removing file /tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir1: Directory not empty 1936s # Deleting dir2, path = /tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir2 1936s # result = 0, error = Error removing file /tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir2: No such file or directory 1936s # Deleting executable_file, path = /tmp/test_live-g-file_O11JK3/testdir_live-g-file/executable_file 1936s # result = 0, error = Error trashing file /tmp/test_live-g-file_O11JK3/testdir_live-g-file/executable_file: No such file or directory 1936s # Deleting readonly_file, path = /tmp/test_live-g-file_O11JK3/testdir_live-g-file/readonly_file 1936s # Deleting dir_příliš z, path = /tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_příliš z 1936s # Deleting not_exists, path = /tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists 1936s # result = 0, error = Error removing file /tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists: No such file or directory 1936s # Deleting not_exists, path = /tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists 1936s # result = 0, error = Error trashing file /tmp/test_live-g-file_O11JK3/testdir_live-g-file/not_exists: No such file or directory 1936s # Deleting dir_no-execute/file, path = /tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-execute/file 1936s # result = 0, error = Error removing file /tmp/test_live-g-file_O11JK3/testdir_live-g-file/dir_no-execute/file: No such file or directory 1936s # Deleting lost_symlink, path = /tmp/test_live-g-file_O11JK3/testdir_live-g-file/lost_symlink 1936s ok 9 /live-g-file/test_delete 1936s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_make_directory_with_parents/.dirs/home 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_make_directory_with_parents/.dirs/cache 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_make_directory_with_parents/.dirs/system-config1:/tmp/test_live-g-file_O11JK3/live-g-file/test_make_directory_with_parents/.dirs/system-config2 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_make_directory_with_parents/.dirs/config 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_make_directory_with_parents/.dirs/system-data1:/tmp/test_live-g-file_O11JK3/live-g-file/test_make_directory_with_parents/.dirs/system-data2 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_make_directory_with_parents/.dirs/data 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_make_directory_with_parents/.dirs/state 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_O11JK3/live-g-file/test_make_directory_with_parents/.dirs/runtime 1936s # We do not have CAP_DAC_OVERRIDE or equivalent 1936s ok 10 /live-g-file/test_make_directory_with_parents 1936s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_O11JK3/live-g-file/final_clean/.dirs/home 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/final_clean/.dirs/cache 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/final_clean/.dirs/system-config1:/tmp/test_live-g-file_O11JK3/live-g-file/final_clean/.dirs/system-config2 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/final_clean/.dirs/config 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/final_clean/.dirs/system-data1:/tmp/test_live-g-file_O11JK3/live-g-file/final_clean/.dirs/system-data2 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/final_clean/.dirs/data 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/final_clean/.dirs/state 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_O11JK3/live-g-file/final_clean/.dirs/runtime 1936s # Cleaning target testing structure in '/tmp/test_live-g-file_O11JK3/testdir_live-g-file'... 1936s # deleting 'dir1' 1936s # deleting 'subdir' 1936s # deleting 'dir-target' 1936s # deleting 'dir2' 1936s # deleting 'target-file' 1936s # deleting 'normal_file-symlink' 1936s # deleting 'pattern_file' 1936s # deleting 'executable_file' 1936s # deleting 'private_file' 1936s # deleting 'normal_file2' 1936s # deleting 'UTF_příliš z' 1936s # deleting 'lost_symlink' 1936s # deleting 'dir_no-access' 1936s # deleting 'dir_no-write' 1936s # deleting 'target-file' 1936s # deleting 'normal_file' 1936s # deleting 'normal_file-symlink' 1936s # deleting 'executable_file~' 1936s # deleting 'private_file' 1936s # deleting 'normal_file2~' 1936s # deleting 'a' 1936s # deleting 'UTF_příliš z' 1936s # deleting 'dir_hidden' 1936s # deleting '.a-hidden-file' 1936s # deleting 'file-in-.hidden1' 1936s # deleting '.hidden' 1936s # deleting 'file-in-.hidden2' 1936s # deleting 'pattern_file' 1936s # deleting 'executable_file' 1936s # deleting 'normal_file2' 1936s # deleting 'not_exists2' 1936s # deleting 'not_exists3' 1936s # deleting 'not_exists4' 1936s ok 11 /live-g-file/final_clean 1936s # Start of test_unix_is_mountpoint tests 1936s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/home 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/cache 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config1:/tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config2 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/config 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data1:/tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data2 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/data 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/state 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/runtime 1936s ok 12 /live-g-file/test_unix_is_mountpoint/sysroot 1936s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/home 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/cache 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config1:/tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config2 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/config 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data1:/tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data2 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/data 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/state 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_O11JK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/runtime 1936s ok 13 /live-g-file/test_unix_is_mountpoint/proc 1936s # End of test_unix_is_mountpoint tests 1936s # End of live-g-file tests 1936s TAP version 14 1936s # random seed: R02Sfa5b711be4285313e278f2e02178acee 1936s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=787731 1936s 1..2 1936s # Start of g-file-info-filesystem-readonly tests 1936s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/home 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/cache 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config2 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/config 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data2 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/data 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/state 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/runtime 1936s ok 1 /g-file-info-filesystem-readonly/test-fs-ro # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1936s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/home 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/cache 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config2 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/config 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data2 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/data 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/state 1936s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_WB78J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/runtime 1936s ok 2 /g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1936s # End of g-file-info-filesystem-readonly tests 1936s ok - glib/g-file-info-filesystem-readonly.test 1936s # Running test: glib/gutils-user-database.test 1936s TAP version 14 1936s # random seed: R02Sbfb9f58a1d553a4c3fa6b2472b47bc89 1936s 1..1 1936s # Start of gutils tests 1936s ok 1 /gutils/get_user_database_entry 1936s # End of gutils tests 1936s TAP version 14 1936s # random seed: R02S2dcb06b96c6fa2d379d47e98f7d7da53 1936s 1..4 1936s # Start of unix-mounts tests 1936s ok 1 /unix-mounts/is-system-fs-type 1936s ok 2 /unix-mounts/is-system-device-path 1936s # /unix-mounts/get-mount-points summary: Basic test of g_unix_mount_points_get_from_file() 1936s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1936s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1936s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1936s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1936s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1936s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1936s ok - glib/gutils-user-database.test 1936s # Running test: glib/unix-mounts.test 1936s ok - glib/unix-mounts.test 1936s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1936s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1936s ok 3 /unix-mounts/get-mount-points 1936s # /unix-mounts/get-mount-entries summary: Basic test of g_unix_mounts_get_from_file() 1936s ok 4 /unix-mounts/get-mount-entries 1936s # End of unix-mounts tests 1937s # Running test: glib/642026.test 1937s TAP version 14 1937s # random seed: R02S73763f631920c98fa984bbda4bf72c42 1937s 1..1 1937s # Start of glib tests 1937s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1937s ok 1 /glib/642026 1937s ok - glib/642026.test 1937s # End of glib tests 1937s # Running test: glib/power-profile-monitor-portal.test 1937s # Executing: glib/power-profile-monitor-portal.test 1940s TAP version 13 1940s ok 1 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal # SKIP xdg-desktop-portal not available 1940s ok 2 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal_default # SKIP xdg-desktop-portal not available 1941s 1..2 1941s ok - glib/power-profile-monitor-portal.test 1941s # Running test: glib/unix-streams.test 1941s TAP version 14 1941s # random seed: R02Sfc86e00a48d8bdae053025f083352e72 1941s 1..9 1941s # Start of unix-streams tests 1941s ok 1 /unix-streams/basic 1941s ok 2 /unix-streams/pipe-io-test 1941s # slow test /unix-streams/pipe-io-test executed in 0.50 secs 1942s ok 3 /unix-streams/nonblocking-io-test 1942s # slow test /unix-streams/nonblocking-io-test executed in 0.66 secs 1942s ok 4 /unix-streams/read_write 1942s ok 5 /unix-streams/read_writev 1942s ok 6 /unix-streams/write-wouldblock 1942s ok 7 /unix-streams/writev-wouldblock 1942s ok 8 /unix-streams/write-async-wouldblock 1942s ok 9 /unix-streams/writev-async-wouldblock 1942s # End of unix-streams tests 1942s ok - glib/unix-streams.test 1942s # Running test: glib/tls-database.test 1942s TAP version 14 1942s # random seed: R02S4700a70117159c94a8369b0f022da738 1942s 1..1 1942s # Start of tls-backend tests 1942s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1942s ok 1 /tls-backend/set-default-database 1942s # End of tls-backend tests 1942s ok - glib/tls-database.test 1942s # Running test: glib/object.test 1942s TAP version 14 1942s # random seed: R02Sdb1f2ed47a51b809d3ce2f08f261f1a4 1942s 1..2 1942s # Start of object tests 1942s # Start of constructor tests 1942s ok 1 /object/constructor/singleton 1942s ok 2 /object/constructor/infanticide # SKIP skip tests that rely on debug-only warnings 1942s # End of constructor tests 1942s # End of object tests 1942s ok - glib/object.test 1942s # Running test: glib/utils-c-89.test 1942s TAP version 14 1942s # random seed: R02S96b64348bc29f6fc3bbde00477f015ae 1942s 1..41 1942s # Start of utils tests 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/language-names/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/language-names/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/language-names/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/language-names/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/language-names/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/language-names/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/language-names/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/language-names/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/language-names/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/language-names/.dirs/runtime 1942s ok 1 /utils/language-names 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/locale-variants/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/locale-variants/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/locale-variants/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/locale-variants/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/locale-variants/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/locale-variants/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/locale-variants/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/locale-variants/.dirs/runtime 1942s # Testing locale ‘en’ 1942s # Testing locale ‘sr@latin’ 1942s # Testing locale ‘fr_BE’ 1942s # Testing locale ‘sr_SR@latin’ 1942s # Testing locale ‘sr_SR@latin.UTF-8’ 1942s # Testing locale ‘sr@latin_invalid’ 1942s # Testing locale ‘sr.UTF-8@latin’ 1942s # Testing locale ‘sr.UTF-8_latin’ 1942s # Testing locale ‘sr.UTF-8@latin_invalid’ 1942s ok 2 /utils/locale-variants 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/version/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/version/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/version/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/version/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/version/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/version/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/version/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/version/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/version/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/version/.dirs/runtime 1942s ok 3 /utils/version 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/appname/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/appname/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/appname/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/appname/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/appname/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/appname/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/appname/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/appname/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/appname/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/appname/.dirs/runtime 1942s ok 4 /utils/appname 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/prgname-thread-safety/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/prgname-thread-safety/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/prgname-thread-safety/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/prgname-thread-safety/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/prgname-thread-safety/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/prgname-thread-safety/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/prgname-thread-safety/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/prgname-thread-safety/.dirs/runtime 1942s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1942s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1942s ok 5 /utils/prgname-thread-safety 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/tmpdir/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/tmpdir/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/tmpdir/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/tmpdir/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/tmpdir/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/tmpdir/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/tmpdir/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/tmpdir/.dirs/runtime 1942s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1942s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1942s Unable to clean up temporary directory /tmp/test_utils-c-89_Q7FEK3/utils/tmpdir: No such file or directory 1942s ok 6 /utils/tmpdir 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/basic_bits/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/basic_bits/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/basic_bits/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/basic_bits/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/basic_bits/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/basic_bits/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/basic_bits/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/basic_bits/.dirs/runtime 1942s ok 7 /utils/basic_bits 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/bits/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/bits/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/bits/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/bits/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/bits/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/bits/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/bits/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/bits/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/bits/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/bits/.dirs/runtime 1942s ok 8 /utils/bits 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/swap/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/swap/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/swap/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/swap/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/swap/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/swap/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/swap/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/swap/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/swap/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/swap/.dirs/runtime 1942s ok 9 /utils/swap 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/find-program/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/find-program/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/find-program/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/find-program/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/find-program/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/find-program/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/find-program/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/find-program/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/find-program/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/find-program/.dirs/runtime 1942s ok 10 /utils/find-program 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/find-program-for-path/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/find-program-for-path/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/find-program-for-path/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/find-program-for-path/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/find-program-for-path/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/find-program-for-path/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/find-program-for-path/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/find-program-for-path/.dirs/runtime 1942s ok 11 /utils/find-program-for-path 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/debug/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/debug/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/debug/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/debug/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/debug/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/debug/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/debug/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/debug/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/debug/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/debug/.dirs/runtime 1942s Unable to clean up temporary directory /tmp/test_utils-c-89_Q7FEK3/utils/debug: No such file or directory 1942s ok 12 /utils/debug 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/codeset/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/codeset/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/codeset/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/codeset/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/codeset/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/codeset/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/codeset/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/codeset/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/codeset/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/codeset/.dirs/runtime 1942s ok 13 /utils/codeset 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/codeset2/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/codeset2/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/codeset2/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/codeset2/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/codeset2/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/codeset2/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/codeset2/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/codeset2/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/codeset2/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/codeset2/.dirs/runtime 1942s Unable to clean up temporary directory /tmp/test_utils-c-89_Q7FEK3/utils/codeset2: No such file or directory 1942s ok 14 /utils/codeset2 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/console-charset/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/console-charset/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/console-charset/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/console-charset/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/console-charset/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/console-charset/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/console-charset/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/console-charset/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/console-charset/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/console-charset/.dirs/runtime 1942s ok 15 /utils/console-charset 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/gettext/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/gettext/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/gettext/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/gettext/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/gettext/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/gettext/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/gettext/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/gettext/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/gettext/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/gettext/.dirs/runtime 1942s ok 16 /utils/gettext 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/username/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/username/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/username/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/username/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/username/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/username/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/username/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/username/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/username/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/username/.dirs/runtime 1942s ok 17 /utils/username 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/realname/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/realname/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/realname/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/realname/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/realname/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/realname/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/realname/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/realname/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/realname/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/realname/.dirs/runtime 1942s ok 18 /utils/realname 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/hostname/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/hostname/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/hostname/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/hostname/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/hostname/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/hostname/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/hostname/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/hostname/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/hostname/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/hostname/.dirs/runtime 1942s ok 19 /utils/hostname 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/os-info/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/os-info/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/os-info/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/os-info/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/os-info/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/os-info/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/os-info/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/os-info/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/os-info/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/os-info/.dirs/runtime 1942s # NAME: Ubuntu 1942s ok 20 /utils/os-info 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/.dirs/runtime 1942s ok 21 /utils/clear-pointer 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer-cast/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer-cast/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer-cast/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer-cast/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer-cast/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer-cast/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer-cast/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer-cast/.dirs/runtime 1942s ok 22 /utils/clear-pointer-cast 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/take-pointer/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/take-pointer/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/take-pointer/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/take-pointer/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/take-pointer/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/take-pointer/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/take-pointer/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/take-pointer/.dirs/runtime 1942s ok 23 /utils/take-pointer 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-source/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-source/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/clear-source/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/clear-source/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-source/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/clear-source/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/clear-source/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-source/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-source/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/clear-source/.dirs/runtime 1942s ok 24 /utils/clear-source 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/misc-mem/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/misc-mem/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/misc-mem/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/misc-mem/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/misc-mem/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/misc-mem/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/misc-mem/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/misc-mem/.dirs/runtime 1942s ok 25 /utils/misc-mem 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/.dirs/runtime 1942s # /utils/aligned-mem summary: Aligned memory allocator 1942s # Alignment must not be zero 1942s # Alignment must be a power of two 1942s # Alignment must be a multiple of sizeof(void*) 1942s ok 26 /utils/aligned-mem 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/free-sized/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/free-sized/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/free-sized/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/free-sized/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/free-sized/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/free-sized/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/free-sized/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/free-sized/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/free-sized/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/free-sized/.dirs/runtime 1942s # /utils/free-sized summary: Check that g_free_sized() works 1942s ok 27 /utils/free-sized 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/nullify/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/nullify/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/nullify/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/nullify/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/nullify/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/nullify/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/nullify/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/nullify/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/nullify/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/nullify/.dirs/runtime 1942s ok 28 /utils/nullify 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/atexit/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/atexit/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/atexit/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/atexit/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/atexit/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/atexit/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/atexit/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/atexit/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/atexit/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/atexit/.dirs/runtime 1942s Unable to clean up temporary directory /tmp/test_utils-c-89_Q7FEK3/utils/atexit: No such file or directory 1942s ok 29 /utils/atexit 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/check-setuid/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/check-setuid/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/check-setuid/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/check-setuid/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/check-setuid/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/check-setuid/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/check-setuid/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/check-setuid/.dirs/runtime 1942s ok 30 /utils/check-setuid 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/int-limits/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/int-limits/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/int-limits/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/int-limits/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/int-limits/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/int-limits/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/int-limits/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/int-limits/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/int-limits/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/int-limits/.dirs/runtime 1942s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1942s ok 31 /utils/int-limits 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-list/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-list/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/clear-list/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/clear-list/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-list/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/clear-list/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/clear-list/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-list/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-list/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/clear-list/.dirs/runtime 1942s ok 32 /utils/clear-list 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-slist/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-slist/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/clear-slist/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-slist/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/clear-slist/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-slist/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-slist/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/clear-slist/.dirs/runtime 1942s ok 33 /utils/clear-slist 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/steal-handle-id/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/steal-handle-id/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/steal-handle-id/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/steal-handle-id/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/steal-handle-id/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/steal-handle-id/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/steal-handle-id/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/steal-handle-id/.dirs/runtime 1942s ok 34 /utils/steal-handle-id 1942s # Start of user-special-dirs tests 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/desktop/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/desktop/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/desktop/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/desktop/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/desktop/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/desktop/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/desktop/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/desktop/.dirs/runtime 1942s ok 35 /utils/user-special-dirs/desktop 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/load-unlocked/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/load-unlocked/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/load-unlocked/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/load-unlocked/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/load-unlocked/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/load-unlocked/.dirs/runtime 1942s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 1942s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 1942s Unable to clean up temporary directory /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/load-unlocked: No such file or directory 1942s ok 36 /utils/user-special-dirs/load-unlocked 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/reload-leaks/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/reload-leaks/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/reload-leaks/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/reload-leaks/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/reload-leaks/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/reload-leaks/.dirs/runtime 1942s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 1942s # Executing: glib/utils-c-89.test 1942s Unable to clean up temporary directory /tmp/test_utils-c-89_Q7FEK3/utils/user-special-dirs/reload-leaks: No such file or directory 1942s ok 37 /utils/user-special-dirs/reload-leaks 1942s # End of user-special-dirs tests 1942s # Start of clear-pointer tests 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/side-effects/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/side-effects/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/side-effects/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/side-effects/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/side-effects/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/side-effects/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/side-effects/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/clear-pointer/side-effects/.dirs/runtime 1942s ok 38 /utils/clear-pointer/side-effects 1942s # End of clear-pointer tests 1942s # Start of aligned-mem tests 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/alignment/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/alignment/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/alignment/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/alignment/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/alignment/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/alignment/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/alignment/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/alignment/.dirs/runtime 1942s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1942s ok 39 /utils/aligned-mem/alignment 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/zeroed/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/zeroed/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/zeroed/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/zeroed/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/zeroed/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/zeroed/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/zeroed/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/zeroed/.dirs/runtime 1942s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1942s ok 40 /utils/aligned-mem/zeroed 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/free-sized/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/free-sized/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/free-sized/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/free-sized/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/free-sized/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/free-sized/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/free-sized/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_Q7FEK3/utils/aligned-mem/free-sized/.dirs/runtime 1942s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1942s ok 41 /utils/aligned-mem/free-sized 1942s # Start of subprocess tests 1942s # End of subprocess tests 1942s # End of aligned-mem tests 1942s # End of utils tests 1942s ok - glib/utils-c-89.test 1942s # Running test: glib/gdbus-introspection.test 1942s TAP version 14 1942s # random seed: R02S10d539a1ff4a1a9b6b4660b9fa38313c 1942s 1..4 1942s # Start of gdbus tests 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-parser/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-parser/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-parser/.dirs/system-config1:/tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-parser/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-parser/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-parser/.dirs/system-data1:/tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-parser/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-parser/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-parser/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-parser/.dirs/runtime 1942s ok 1 /gdbus/introspection-parser 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-generate/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-generate/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-generate/.dirs/system-config1:/tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-generate/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-generate/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-generate/.dirs/system-data1:/tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-generate/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-generate/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-generate/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-generate/.dirs/runtime 1942s ok 2 /gdbus/introspection-generate 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-default-direction/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-default-direction/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-default-direction/.dirs/system-config1:/tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-default-direction/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-default-direction/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-default-direction/.dirs/system-data1:/tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-default-direction/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-default-direction/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-default-direction/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-default-direction/.dirs/runtime 1942s ok 3 /gdbus/introspection-default-direction 1942s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-extra-data/.dirs/home 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-extra-data/.dirs/cache 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-extra-data/.dirs/system-config1:/tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-extra-data/.dirs/system-config2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-extra-data/.dirs/config 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-extra-data/.dirs/system-data1:/tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-extra-data/.dirs/system-data2 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-extra-data/.dirs/data 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-extra-data/.dirs/state 1942s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_WQ94J3/gdbus/introspection-extra-data/.dirs/runtime 1942s ok 4 /gdbus/introspection-extra-data 1942s # End of gdbus tests 1942s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1942s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1942s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1942s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1942s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1942s ok - glib/gdbus-introspection.test 1942s # Running test: glib/contenttype.test 1942s TAP version 14 1942s # random seed: R02S1d357e9c441c700bc85129da356bd670 1942s 1..14 1942s # Start of contenttype tests 1942s ok 1 /contenttype/guess 1942s ok 2 /contenttype/guess_svg_from_data 1942s ok 3 /contenttype/mime_to_content # SKIP mime from content type test not implemented on UNIX 1942s ok 4 /contenttype/mime_from_content # SKIP mime from content type test not implemented on UNIX 1942s ok 5 /contenttype/unknown 1942s ok 6 /contenttype/subtype 1942s ok 7 /contenttype/list 1942s ok 8 /contenttype/executable 1943s ok 9 /contenttype/description 1943s ok 10 /contenttype/icon 1943s ok 11 /contenttype/symbolic-icon 1943s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1943s ok 12 /contenttype/tree 1943s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3168 1943s ok 13 /contenttype/tree_invalid_encoding 1943s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=782311 1943s ok 14 /contenttype/test_type_is_a_special_case 1943s # End of contenttype tests 1943s ok - glib/contenttype.test 1943s # Running test: glib/autoptr-girepository.test 1943s TAP version 14 1943s ok - glib/autoptr-girepository.test 1943s # Running test: glib/markup.test 1943s # random seed: R02Sdcd06e3939651f9710d747b1d480d031 1943s 1..24 1943s # Start of autoptr tests 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/repository/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/repository/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/repository/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/repository/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/repository/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/repository/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/repository/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/repository/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/repository/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/repository/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 1 /autoptr/repository 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/typelib/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/typelib/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/typelib/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/typelib/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/typelib/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/typelib/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/typelib/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/typelib/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/typelib/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/typelib/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 2 /autoptr/typelib 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/base-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/base-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/base-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/base-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/base-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/base-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/base-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/base-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/base-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/base-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 3 /autoptr/base-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/arg-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/arg-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/arg-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/arg-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/arg-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/arg-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/arg-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/arg-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 4 /autoptr/arg-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/callable-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/callable-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/callable-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/callable-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/callable-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/callable-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/callable-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/callable-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/callable-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/callable-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 5 /autoptr/callable-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/callback-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/callback-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/callback-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/callback-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/callback-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/callback-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/callback-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/callback-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/callback-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/callback-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 6 /autoptr/callback-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/constant-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/constant-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/constant-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/constant-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/constant-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/constant-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/constant-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/constant-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/constant-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/constant-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 7 /autoptr/constant-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/enum-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/enum-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/enum-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/enum-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/enum-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/enum-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/enum-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/enum-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/enum-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/enum-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 8 /autoptr/enum-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/field-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/field-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/field-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/field-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/field-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/field-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/field-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/field-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/field-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/field-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 9 /autoptr/field-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/flags-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/flags-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/flags-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/flags-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/flags-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/flags-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/flags-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/flags-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/flags-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/flags-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 10 /autoptr/flags-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/function-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/function-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/function-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/function-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/function-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/function-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/function-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/function-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/function-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/function-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 11 /autoptr/function-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/interface-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/interface-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/interface-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/interface-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/interface-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/interface-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/interface-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/interface-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/interface-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/interface-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 12 /autoptr/interface-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/object-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/object-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/object-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/object-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/object-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/object-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/object-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/object-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/object-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/object-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 13 /autoptr/object-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/property-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/property-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/property-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/property-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/property-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/property-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/property-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/property-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/property-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/property-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 14 /autoptr/property-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/registered-type-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/registered-type-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/registered-type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/registered-type-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/registered-type-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/registered-type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/registered-type-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/registered-type-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/registered-type-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/registered-type-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 15 /autoptr/registered-type-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/signal-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/signal-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/signal-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/signal-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/signal-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/signal-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/signal-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/signal-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/signal-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/signal-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 16 /autoptr/signal-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/struct-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/struct-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/struct-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/struct-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/struct-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/struct-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/struct-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/struct-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/struct-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/struct-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 17 /autoptr/struct-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/type-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/type-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/type-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/type-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/type-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/type-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/type-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/type-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 18 /autoptr/type-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/union-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/union-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/union-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/union-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/union-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/union-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/union-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/union-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/union-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/union-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 19 /autoptr/union-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/teok - glib/markup.test 1943s # Running test: glib/gobject-private.test 1943s st_autoptr-girepository_OW1HK3/autoptr/value-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/value-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/value-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/value-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/value-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/value-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/value-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/value-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/value-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/value-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 20 /autoptr/value-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/vfunc-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/vfunc-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/vfunc-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/vfunc-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/vfunc-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/autoptr/vfunc-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/autoptr/vfunc-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/vfunc-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/autoptr/vfunc-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/autoptr/vfunc-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 21 /autoptr/vfunc-info 1943s # End of autoptr tests 1943s # Start of auto tests 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/auto/arg-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/auto/arg-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/auto/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/auto/arg-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/auto/arg-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/auto/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/auto/arg-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/auto/arg-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/auto/arg-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/auto/arg-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 22 /auto/arg-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/auto/type-info/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/auto/type-info/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/auto/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/auto/type-info/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/auto/type-info/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/auto/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/auto/type-info/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/auto/type-info/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/auto/type-info/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/auto/type-info/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 23 /auto/type-info 1943s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_OW1HK3/auto/function-invoker/.dirs/home 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_OW1HK3/auto/function-invoker/.dirs/cache 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_OW1HK3/auto/function-invoker/.dirs/system-config1:/tmp/test_autoptr-girepository_OW1HK3/auto/function-invoker/.dirs/system-config2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_OW1HK3/auto/function-invoker/.dirs/config 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_OW1HK3/auto/function-invoker/.dirs/system-data1:/tmp/test_autoptr-girepository_OW1HK3/auto/function-invoker/.dirs/system-data2 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_OW1HK3/auto/function-invoker/.dirs/data 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_OW1HK3/auto/function-invoker/.dirs/state 1943s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_OW1HK3/auto/function-invoker/.dirs/runtime 1943s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1943s ok 24 /auto/function-invoker 1943s # End of auto tests 1943s TAP version 14 1943s # random seed: R02S990dcbef16a9ed240734e040372d3576 1943s 1..1 1943s # Start of markup tests 1943s ok 1 /markup/stack 1943s # End of markup tests 1943s TAP version 14 1943s # random seed: R02S6bef9c16ec830da41e324263f986e65e 1943s 1..3 1943s # Start of private tests 1943s ok 1 /private/instance 1943s ok 2 /private/derived-instance 1943s ok 3 /private/mixed-derived-instance 1943s # End of private tests 1943s ok - glib/gobject-private.test 1943s # Running test: glib/data-output-stream.test 1943s TAP version 14 1943s # random seed: R02S7ac51cddc36f0ce2b3a8be73c09338f4 1943s 1..7 1943s # Start of data-output-stream tests 1943s ok 1 /data-output-stream/basic 1943s ok 2 /data-output-stream/write-lines-LF 1943s ok 3 /data-output-stream/write-lines-CR 1943s ok 4 /data-output-stream/write-lines-CR-LF 1943s ok 5 /data-output-stream/write-int 1943s ok - glib/data-output-stream.test 1943s # Running test: glib/mem-overflow.test 1943s ok 6 /data-output-stream/seek 1943s ok 7 /data-output-stream/truncate 1943s # End of data-output-stream tests 1943s TAP version 14 1943s # random seed: R02Se43b8b65582d20e6531e009fe0af48b5 1943s 1..2 1943s # Start of mem tests 1944s ok 1 /mem/overflow 1944s # slow test /mem/overflow executed in 0.66 secs 1944s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=615379 1944s ok 2 /mem/empty-alloc 1944s # Start of overflow tests 1944s # Start of subprocess tests 1944s # End of subprocess tests 1944s # End of overflow tests 1944s # Start of empty-alloc tests 1944s # End of empty-alloc tests 1944s # End of mem tests 1944s ok - glib/mem-overflow.test 1944s # Running test: glib/assert-msg-test.py.test 1944s TAP version 13 1944s ok 1 __main__.TestAssertMessage.test_gassert 1944s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 1944s # tmpdir: /tmp/tmp2p1lz40p 1944s # Running: ['/usr/libexec/installed-tests/glib/assert-msg-test'] 1944s # Return code: -6 1944s # Output: 1944s # Bail out! GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 1944s # Error: 1944s # ** 1944s # GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 1944s ok 2 __main__.TestAssertMessage.test_gdb_gassert # SKIP GDB is not installed, skipping this test! 1944s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 1944s # tmpdir: /tmp/tmp_we0w2jq 1944s 1..2 1944s ok - glib/assert-msg-test.py.test 1944s # Running test: glib/list.test 1944s ok - glib/list.test 1944s # Running test: glib/memory-monitor-dbus.test 1944s TAP version 14 1944s # random seed: R02Sbf95389b011509f2ee8c1b10ac2a68c2 1944s 1..20 1944s # Start of list tests 1944s ok 1 /list/sort 1944s ok 2 /list/sort-with-data 1944s ok 3 /list/insert-before-link 1944s ok 4 /list/insert-sorted 1944s ok 5 /list/insert-sorted-with-data 1944s ok 6 /list/reverse 1944s ok 7 /list/nth 1944s ok 8 /list/concat 1944s ok 9 /list/remove 1944s ok 10 /list/remove-all 1944s ok 11 /list/first-last 1944s ok 12 /list/insert 1944s ok 13 /list/free-full 1944s ok 14 /list/copy 1944s ok 15 /list/copy-deep 1944s ok 16 /list/delete-link 1944s ok 17 /list/prepend 1944s ok 18 /list/position 1944s ok 19 /list/double-free 1944s # Start of sort tests 1944s ok 20 /list/sort/stable 1944s # End of sort tests 1944s # End of list tests 1945s TAP version 13 1945s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal # SKIP https://bugs.debian.org/995178 1945s ok - glib/memory-monitor-dbus.test 1945s # Running test: glib/bytes.test 1945s ok - glib/bytes.test 1945s # Running test: glib/repository.test 1945s 1..1 1945s TAP version 14 1945s # random seed: R02Sf86ef4efb8ca29af328ab85b93e2d7bc 1945s 1..21 1945s # Start of bytes tests 1945s ok 1 /bytes/new 1945s ok 2 /bytes/new-take 1945s ok 3 /bytes/new-static 1945s ok 4 /bytes/new-with-free-func 1945s ok 5 /bytes/new-from-bytes 1945s ok 6 /bytes/new-from-bytes-slice 1945s ok 7 /bytes/new-from-bytes-shared-ref 1945s ok 8 /bytes/hash 1945s ok 9 /bytes/equal 1945s ok 10 /bytes/compare 1945s ok 11 /bytes/null 1945s ok 12 /bytes/get-region 1945s # /bytes/unref-null summary: Test that calling g_bytes_unref() on NULL is a no-op 1945s ok 13 /bytes/unref-null 1945s # Start of to-data tests 1945s ok 14 /bytes/to-data/transferred 1945s ok 15 /bytes/to-data/two-refs 1945s ok 16 /bytes/to-data/non-malloc 1945s ok 17 /bytes/to-data/different-free-func 1945s # End of to-data tests 1945s # Start of to-array tests 1945s ok 18 /bytes/to-array/transferred 1945s ok 19 /bytes/to-array/two-refs 1945s ok 20 /bytes/to-array/non-malloc 1945s # Start of transferred tests 1945s # g_bytes_unref_to_array() can only take GBytes up to G_MAXUINT in length; test that longer ones are rejected 1945s ok 21 /bytes/to-array/transferred/oversize 1945s # End of transferred tests 1945s # End of to-array tests 1945s # End of bytes tests 1945s TAP version 14 1945s # random seed: R02Seff817641fb7f2bc5dcb69d9dbf9f7de 1945s 1..24 1945s # Start of repository tests 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/basic/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/basic/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/basic/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/basic/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/basic/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/basic/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/basic/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/basic/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/basic/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/basic/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/basic summary: Test basic opening of a repository and requiring a typelib 1945s ok 1 /repository/basic 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/info/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/info/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/info/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/info/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/info/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/info/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/info/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/info/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/info/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/info/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/info summary: Test retrieving some basic info blobs from a typelib 1945s ok 2 /repository/info 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/dependencies/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/dependencies/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/dependencies/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/dependencies/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/dependencies/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/dependencies/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/dependencies/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/dependencies/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/dependencies/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/dependencies/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/dependencies summary: Test ensures namespace dependencies are correctly exposed 1945s ok 3 /repository/dependencies 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/arg-info/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/arg-info/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/arg-info/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/arg-info/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/arg-info/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/arg-info/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/arg-info/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/arg-info/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/arg-info/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/arg-info/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/arg-info summary: Test retrieving GIArgInfos from a typelib 1945s ok 4 /repository/arg-info 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/callable-info/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/callable-info/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/callable-info/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/callable-info/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/callable-info/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/callable-info/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/callable-info/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/callable-info/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/callable-info/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/callable-info/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/callable-info summary: Test retrieving GICallableInfos from a typelib 1945s ok 5 /repository/callable-info 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/callback-info/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/callback-info/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/callback-info/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/callback-info/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/callback-info/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/callback-info/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/callback-info/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/callback-info/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/callback-info/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/callback-info/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/callback-info summary: Test retrieving GICallbackInfos from a typelib 1945s ok 6 /repository/callback-info 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/char-types/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/char-types/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/char-types/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/char-types/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/char-types/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/char-types/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/char-types/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/char-types/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/char-types/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/char-types/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/char-types summary: Test that signed and unsigned char GITypeInfo have GITypeTag of INT8 and UINT8 respectively 1945s ok 7 /repository/char-types 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/constructor-return-type/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/constructor-return-type/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/constructor-return-type/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/constructor-return-type/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/constructor-return-type/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/constructor-return-type/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/constructor-return-type/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/constructor-return-type/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/constructor-return-type/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/constructor-return-type/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/constructor-return-type summary: Test the return type of a constructor, g_object_newv() 1945s ok 8 /repository/constructor-return-type 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/enum-info-c-identifier/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/enum-info-c-identifier/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/enum-info-c-identifier/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/enum-info-c-identifier/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/enum-info-c-identifier/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/enum-info-c-identifier/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/enum-info-c-identifier/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/enum-info-c-identifier/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/enum-info-c-identifier/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/enum-info-c-identifier/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/enum-info-c-identifier summary: Test that every enum member has a C identifier 1945s ok 9 /repository/enum-info-c-identifier 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/enum-info-static-methods/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/enum-info-static-methods/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/enum-info-static-methods/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/enum-info-static-methods/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/enum-info-static-methods/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/enum-info-static-methods/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/enum-info-static-methods/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/enum-info-static-methods/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/enum-info-static-methods/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/enum-info-static-methods/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/enum-info-static-methods summary: Test an enum with methods 1945s ok 10 /repository/enum-info-static-methods 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/error-quark/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/error-quark/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/error-quark/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/error-quark/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/error-quark/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/error-quark/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/error-quark/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/error-quark/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/error-quark/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/error-quark/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/error-quark summary: Test finding an error quark by error domain 1945s ok 11 /repository/error-quark 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/flags-info-c-identifier/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/flags-info-c-identifier/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/flags-info-c-identifier/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/flags-info-c-identifier/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/flags-info-c-identifier/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/flags-info-c-identifier/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/flags-info-c-identifier/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/flags-info-c-identifier/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/flags-info-c-identifier/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/flags-info-c-identifier/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/flags-info-c-identifier summary: Test that every flags member has a C identifier 1945s ok 12 /repository/flags-info-c-identifier 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/fundamental-ref-func/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/fundamental-ref-func/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/fundamental-ref-func/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/fundamental-ref-func/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/fundamental-ref-func/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/fundamental-ref-func/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/fundamental-ref-func/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/fundamental-ref-func/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/fundamental-ref-func/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/fundamental-ref-func/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/fundamental-ref-func summary: Test getting the ref func of a fundamental type 1945s ok 13 /repository/fundamental-ref-func 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/instance-method-ownership-transfer/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/instance-method-ownership-transfer/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/instance-method-ownership-transfer/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/instance-method-ownership-transfer/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/instance-method-ownership-transfer/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/instance-method-ownership-transfer/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/instance-method-ownership-transfer/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/instance-method-ownership-transfer/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/instance-method-ownership-transfer/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/instance-method-ownership-transfer/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/instance-method-ownership-transfer summary: Test two methods of the same object having opposite ownership transfer of the instance parameter 1945s ok 14 /repository/instance-method-ownership-transfer 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/object-gtype-interfaces/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/object-gtype-interfaces/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/object-gtype-interfaces/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/object-gtype-interfaces/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/object-gtype-interfaces/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/object-gtype-interfaces/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/object-gtype-interfaces/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/object-gtype-interfaces/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/object-gtype-interfaces/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/object-gtype-interfaces/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/object-gtype-interfaces summary: Test gi_repository_get_object_gtype_interfaces() 1945s ok 15 /repository/object-gtype-interfaces 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/signal-info-with-array-length-arg/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/signal-info-with-array-length-arg/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/signal-info-with-array-length-arg/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/signal-info-with-array-length-arg/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/signal-info-with-array-length-arg/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/signal-info-with-array-length-arg/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/signal-info-with-array-length-arg/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/signal-info-with-array-length-arg/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/signal-info-with-array-length-arg/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/signal-info-with-array-length-arg/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/signal-info-with-array-length-arg summary: Test finding the associated array length argument of an array parameter of a signal 1945s ok 16 /repository/signal-info-with-array-length-arg 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/type-info-name/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/type-info-name/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/type-info-name/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/type-info-name/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/type-info-name/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/type-info-name/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/type-info-name/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/type-info-name/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/type-info-name/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/type-info-name/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/type-info-name summary: Test that gi_base_info_get_name() returns null for GITypeInfo 1945s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/96 1945s ok 17 /repository/type-info-name 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-no-invoker/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-no-invoker/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-no-invoker/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/vfunc-info-with-no-invoker/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-no-invoker/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-no-invoker/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/vfunc-info-with-no-invoker/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-no-invoker/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-no-invoker/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-no-invoker/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/vfunc-info-with-no-invoker summary: Test vfunc with no known invoker on object, such as GObject.dispose 1945s ok 18 /repository/vfunc-info-with-no-invoker 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-interface/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-interface/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-interface/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-interface/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-interface/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-interface/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/vfunc-info-with-invoker-on-interface summary: Test vfunc with invoker on interface, such as GFile.read_async 1945s ok 19 /repository/vfunc-info-with-invoker-on-interface 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-object/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-object/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-object/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-object/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-object/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/vfunc-info-with-invoker-on-object/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/vfunc-info-with-invoker-on-object summary: Test vfunc with invoker on object, such as GAppLaunchContext.get_display 1945s ok 20 /repository/vfunc-info-with-invoker-on-object 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/find-by-gtype/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/find-by-gtype/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/find-by-gtype/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/find-by-gtype/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/find-by-gtype/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/find-by-gtype/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/find-by-gtype/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/find-by-gtype/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/find-by-gtype/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/find-by-gtype/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/find-by-gtype summary: Test finding a GType 1945s ok 21 /repository/find-by-gtype 1945s ok - glib/repository.test 1945s # Running test: glib/basic-signals.test 1945s ok - glib/basic-signals.test 1945s # Running test: glib/macros-c-89.test 1945s ok - glib/macros-c-89.test 1945s # Running test: glib/application-command-line.test 1945s ok - glib/application-command-line.test 1945s # Running test: glib/signals-refcount2.test 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/loaded-namespaces/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/loaded-namespaces/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/loaded-namespaces/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/loaded-namespaces/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/loaded-namespaces/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/loaded-namespaces/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/loaded-namespaces/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/loaded-namespaces/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/loaded-namespaces/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/loaded-namespaces/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/loaded-namespaces summary: Test listing loaded namespaces 1945s ok 22 /repository/loaded-namespaces 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/dup_default/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/dup_default/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/dup_default/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/dup_default/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/dup_default/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/dup_default/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/dup_default/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/dup_default/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/dup_default/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/dup_default/.dirs/runtime 1945s ok 23 /repository/dup_default 1945s # Start of base-info tests 1945s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_PUVMK3/repository/base-info/clear/.dirs/home 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_PUVMK3/repository/base-info/clear/.dirs/cache 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_PUVMK3/repository/base-info/clear/.dirs/system-config1:/tmp/test_repository_PUVMK3/repository/base-info/clear/.dirs/system-config2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_PUVMK3/repository/base-info/clear/.dirs/config 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_PUVMK3/repository/base-info/clear/.dirs/system-data1:/tmp/test_repository_PUVMK3/repository/base-info/clear/.dirs/system-data2 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_PUVMK3/repository/base-info/clear/.dirs/data 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_PUVMK3/repository/base-info/clear/.dirs/state 1945s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_PUVMK3/repository/base-info/clear/.dirs/runtime 1945s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1945s # /repository/base-info/clear summary: Test calling gi_base_info_clear() on a zero-filled struct 1945s ok 24 /repository/base-info/clear 1945s # End of base-info tests 1945s # End of repository tests 1945s TAP version 14 1945s # random seed: R02S51a08381414abb7d333e3e56e55fcb35 1945s 1..1 1945s # Start of gobject tests 1945s ok 1 /gobject/basic-signals 1945s # End of gobject tests 1945s TAP version 14 1945s # random seed: R02Sbc12a6487e68f88ecbf8cd8dd7ef0a3c 1945s 1..4 1945s # Start of C tests 1945s ok 1 /C/standard-89 1945s # End of C tests 1945s # Start of alignof tests 1945s ok 2 /alignof/fallback 1945s # End of alignof tests 1945s # Start of assert tests 1945s ok 3 /assert/static 1945s # End of assert tests 1945s # Start of struct tests 1945s ok 4 /struct/sizeof_member 1945s # End of struct tests 1945s TAP version 14 1945s # random seed: R02S137f59ed14a02fd252f2fa7a87820f02 1945s 1..1 1945s # Start of application-command-line tests 1945s ok 1 /application-command-line/basic-properties 1945s # End of application-command-line tests 1945s TAP version 14 1945s # random seed: R02S23fb04bd780b50c24c275c7f17f7638b 1945s 1..1 1945s # Start of gobject tests 1945s # Start of refcount tests 1945s # init 0x2aa09ef74a0 1945s # 1945s # init 0x2aa09eef580 1945s # 1947s # Executing: glib/signals-refcount2.test 1950s # dispose 0x2aa09ef74a0! 1950s # 1950s # dispose 0x2aa09eef580! 1950s # 1950s ok 1 /gobject/refcount/signals 1950s # slow test /gobject/refcount/signals executed in 5.15 secs 1950s # End of refcount tests 1950s # End of gobject tests 1950s ok - glib/signals-refcount2.test 1950s # Running test: glib/gobject-query.py.test 1950s TAP version 13 1950s ok 1 __main__.TestGobjectQuery.test_froots 1950s # gobject-query: /usr/bin/gobject-query 1950s # tmpdir: /tmp/tmp7md3z1xn 1950s # Running: ['/usr/bin/gobject-query', 'froots'] 1950s # Return code: 0 1950s # Output: 1950s # ├void 1950s # ├GInterface 1950s # │ └GTypePlugin 1950s # ├gchar 1950s # ├guchar 1950s # ├gboolean 1950s # ├gint 1950s # ├guint 1950s # ├glong 1950s # ├gulong 1950s # ├gint64 1950s # ├guint64 1950s # ├GEnum 1950s # ├GFlags 1950s # ├gfloat 1950s # ├gdouble 1950s # ├gchararray 1950s # ├gpointer 1950s # │ └GType 1950s # ├GBoxed 1950s # │ └GValueArray 1950s # ├GParam 1950s # │ ├GParamChar 1950s # │ ├GParamUChar 1950s # │ ├GParamBoolean 1950s # │ ├GParamInt 1950s # │ ├GParamUInt 1950s # │ ├GParamLong 1950s # │ ├GParamULong 1950s # │ ├GParamInt64 1950s # │ ├GParamUInt64 1950s # │ ├GParamUnichar 1950s # │ ├GParamEnum 1950s # │ ├GParamFlags 1950s # │ ├GParamFloat 1950s # │ ├GParamDouble 1950s # │ ├GParamString 1950s # │ ├GParamParam 1950s # │ ├GParamBoxed 1950s # │ ├GParamPointer 1950s # │ ├GParamValueArray 1950s # │ ├GParamObject 1950s # │ ├GParamOverride 1950s # │ ├GParamGType 1950s # │ └GParamVariant 1950s # ├GObject 1950s # └GVariant 1950s # Error: 1951s ok 2 __main__.TestGobjectQuery.test_help 1951s # gobject-query: /usr/bin/gobject-query 1951s # tmpdir: /tmp/tmpqgbacu3y 1951s # Running: ['/usr/bin/gobject-query', '--help'] 1951s # Return code: 0 1951s # Output: 1951s # usage: gobject-query [-r ] [-{i|b} ""] [-s #] [-{h|x|y}] 1951s # -r specify root type 1951s # -n don't descend type tree 1951s # -h show help 1951s # -b specify indent string 1951s # -i specify incremental indent string 1951s # -s specify line spacing 1951s # qualifiers: 1951s # froots iterate over fundamental roots 1951s # tree print type tree 1951s # Error: 1951s ok 3 __main__.TestGobjectQuery.test_tree 1951s # gobject-query: /usr/bin/gobject-query 1951s # tmpdir: /tmp/tmp_6_5pwh_ 1951s # Running: ['/usr/bin/gobject-query', 'tree'] 1951s # Return code: 0 1951s # Output: 1951s # GObject 1951s # Error: 1951s ok 4 __main__.TestGobjectQuery.test_version 1951s # gobject-query: /usr/bin/gobject-query 1951s # tmpdir: /tmp/tmp7obj1ow0 1951s # Running: ['/usr/bin/gobject-query', '--version'] 1951s # Return code: 0 1951s # Output: 1951s # 2.86.3 1951s # Error: 1951s 1..4 1951s ok - glib/gobject-query.py.test 1951s # Running test: glib/refcount.test 1951s TAP version 14 1951s # random seed: R02Sfc9a7468e57240e1ebe059292ec21ffc 1951s 1..4 1951s # Start of refcount tests 1951s ok 1 /refcount/grefcount 1951s ok 2 /refcount/gatomicrefcount 1951s # Start of grefcount tests 1951s ok 3 /refcount/grefcount/saturation 1951s # End of grefcount tests 1951s # Start of gatomicrefcount tests 1951s ok - glib/refcount.test 1951s ok 4 /refcount/gatomicrefcount/saturation 1951s # End of gatomicrefcount tests 1951s # End of refcount tests 1951s # Running test: glib/gdbus-close-pending.test 1951s TAP version 14 1951s # random seed: R02S46b21b516a6f0947b8df4dd5597ff7e9 1951s 1..2 1951s # Start of gdbus tests 1951s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_JI8HK3/gdbus/close-pending/.dirs/home 1951s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_JI8HK3/gdbus/close-pending/.dirs/cache 1951s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_JI8HK3/gdbus/close-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_JI8HK3/gdbus/close-pending/.dirs/system-config2 1951s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_JI8HK3/gdbus/close-pending/.dirs/config 1951s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_JI8HK3/gdbus/close-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_JI8HK3/gdbus/close-pending/.dirs/system-data2 1951s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_JI8HK3/gdbus/close-pending/.dirs/data 1951s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_JI8HK3/gdbus/close-pending/.dirs/state 1951s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_JI8HK3/gdbus/close-pending/.dirs/runtime 1952s # Executing: glib/gdbus-close-pending.test 1953s ok 1 /gdbus/close-pending 1953s # slow test /gdbus/close-pending executed in 2.22 secs 1953s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_JI8HK3/gdbus/unref-pending/.dirs/home 1953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_JI8HK3/gdbus/unref-pending/.dirs/cache 1953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_JI8HK3/gdbus/unref-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_JI8HK3/gdbus/unref-pending/.dirs/system-config2 1953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_JI8HK3/gdbus/unref-pending/.dirs/config 1953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_JI8HK3/gdbus/unref-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_JI8HK3/gdbus/unref-pending/.dirs/system-data2 1953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_JI8HK3/gdbus/unref-pending/.dirs/data 1953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_JI8HK3/gdbus/unref-pending/.dirs/state 1953s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_JI8HK3/gdbus/unref-pending/.dirs/runtime 1954s ok 2 /gdbus/unref-pending 1954s # slow test /gdbus/unref-pending executed in 1.05 secs 1954s # End of gdbus tests 1954s ok - glib/gdbus-close-pending.test 1954s # Running test: glib/giomodule.test 1954s TAP version 14 1954s # random seed: R02S528fa6a3bdf1aaf8ff5e00acd35242ac 1954s 1..3 1954s # Start of giomodule tests 1954s ok 1 /giomodule/extension-point 1954s ok 2 /giomodule/module-scan-all 1954s ok 3 /giomodule/module-scan-all-with-scope 1954s ok - glib/giomodule.test 1954s # Running test: glib/gdbus-peer-object-manager.test 1954s ok - glib/gdbus-peer-object-manager.test 1954s # Running test: glib/gdbus-sasl.test 1954s # End of giomodule tests 1954s TAP version 14 1954s # random seed: R02S4cbe868800ed66df6edecfc9c70f3db5 1954s 1..2 1954s # Start of gdbus tests 1954s # Start of peer-object-manager tests 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/normal/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/normal/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/normal/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/normal/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/normal/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/normal/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/normal/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/normal/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/normal/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/normal/.dirs/runtime 1954s ok 1 /gdbus/peer-object-manager/normal 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/root/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/root/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/root/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/root/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/root/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/root/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/root/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/root/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/root/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_1S66J3/gdbus/peer-object-manager/root/.dirs/runtime 1954s ok 2 /gdbus/peer-object-manager/root 1954s # End of peer-object-manager tests 1954s # End of gdbus tests 1954s ok - glib/gdbus-sasl.test 1954s # Running test: glib/utils-c-11.test 1954s TAP version 14 1954s # random seed: R02S19bdb5db247d68e1b45ab7ba3805d7a9 1954s 1..1 1954s # Start of gdbus tests 1954s # Start of sasl tests 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-sasl_GY96J3/gdbus/sasl/server/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-sasl_GY96J3/gdbus/sasl/server/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-sasl_GY96J3/gdbus/sasl/server/.dirs/system-config1:/tmp/test_gdbus-sasl_GY96J3/gdbus/sasl/server/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-sasl_GY96J3/gdbus/sasl/server/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-sasl_GY96J3/gdbus/sasl/server/.dirs/system-data1:/tmp/test_gdbus-sasl_GY96J3/gdbus/sasl/server/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-sasl_GY96J3/gdbus/sasl/server/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-sasl_GY96J3/gdbus/sasl/server/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-sasl_GY96J3/gdbus/sasl/server/.dirs/runtime 1954s # New handshake: EXTERNAL with incorrect initial response 1954s # C:“AUTH EXTERNAL 30” 1954s # Expect: /^REJECTED.*$/ 1954s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 1954s # New handshake: EXTERNAL without initial response, failing to authenticate 1954s # C:“AUTH EXTERNAL” 1954s # Expect: /^DATA$/ 1954s # S:“DATA” 1954s # C:“DATA 30” 1954s # Expect: /^REJECTED.*$/ 1954s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 1954s # New handshake: EXTERNAL with initial response 1954s # C:“AUTH EXTERNAL 31303030” 1954s # Expect: /^OK [0-9a-f]+$/ 1954s # S:“OK fa2fffae80b8882a3d5a2a0369870cd8” 1954s # New handshake: EXTERNAL without initial response 1954s # C:“AUTH EXTERNAL” 1954s # Expect: /^DATA$/ 1954s # S:“DATA” 1954s # C:“DATA 31303030” 1954s # Expect: /^OK [0-9a-f]+$/ 1954s # S:“OK fa2fffae80b8882a3d5a2a0369870cd8” 1954s # New handshake: EXTERNAL with empty authorization identity 1954s # C:“AUTH EXTERNAL” 1954s # Expect: /^DATA$/ 1954s # S:“DATA” 1954s # C:“DATA” 1954s # Expect: /^OK [0-9a-f]+$/ 1954s # S:“OK fa2fffae80b8882a3d5a2a0369870cd8” 1954s # New handshake: EXTERNAL with empty authorization identity and whitespace 1954s # C:“AUTH EXTERNAL” 1954s # Expect: /^DATA$/ 1954s # S:“DATA” 1954s # C:“DATA ” 1954s # Expect: /^OK [0-9a-f]+$/ 1954s # S:“OK fa2fffae80b8882a3d5a2a0369870cd8” 1954s ok 1 /gdbus/sasl/server 1954s # End of sasl tests 1954s # End of gdbus tests 1954s TAP version 14 1954s # random seed: R02S2e9250edb73985308bca9e3af2227358 1954s 1..41 1954s # Start of utils tests 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/language-names/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/language-names/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/language-names/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/language-names/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/language-names/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/language-names/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/language-names/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/language-names/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/language-names/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/language-names/.dirs/runtime 1954s ok 1 /utils/language-names 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/locale-variants/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/locale-variants/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/locale-variants/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/locale-variants/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/locale-variants/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/locale-variants/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/locale-variants/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/locale-variants/.dirs/runtime 1954s # Testing locale ‘en’ 1954s # Testing locale ‘sr@latin’ 1954s # Testing locale ‘fr_BE’ 1954s # Testing locale ‘sr_SR@latin’ 1954s # Testing locale ‘sr_SR@latin.UTF-8’ 1954s # Testing locale ‘sr@latin_invalid’ 1954s # Testing locale ‘sr.UTF-8@latin’ 1954s # Testing locale ‘sr.UTF-8_latin’ 1954s # Testing locale ‘sr.UTF-8@latin_invalid’ 1954s ok 2 /utils/locale-variants 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/version/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/version/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/version/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/version/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/version/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/version/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/version/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/version/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/version/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/version/.dirs/runtime 1954s ok 3 /utils/version 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/appname/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/appname/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/appname/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/appname/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/appname/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/appname/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/appname/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/appname/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/appname/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/appname/.dirs/runtime 1954s ok 4 /utils/appname 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/prgname-thread-safety/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/prgname-thread-safety/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/prgname-thread-safety/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/prgname-thread-safety/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/prgname-thread-safety/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/prgname-thread-safety/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/prgname-thread-safety/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/prgname-thread-safety/.dirs/runtime 1954s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1954s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1954s ok 5 /utils/prgname-thread-safety 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/tmpdir/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/tmpdir/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/tmpdir/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/tmpdir/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/tmpdir/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/tmpdir/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/tmpdir/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/tmpdir/.dirs/runtime 1954s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1954s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1954s Unable to clean up temporary directory /tmp/test_utils-c-11_SGI5J3/utils/tmpdir: No such file or directory 1954s ok 6 /utils/tmpdir 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/basic_bits/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/basic_bits/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/basic_bits/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/basic_bits/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/basic_bits/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/basic_bits/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/basic_bits/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/basic_bits/.dirs/runtime 1954s ok 7 /utils/basic_bits 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/bits/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/bits/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/bits/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/bits/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/bits/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/bits/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/bits/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/bits/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/bits/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/bits/.dirs/runtime 1954s ok 8 /utils/bits 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/swap/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/swap/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/swap/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/swap/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/swap/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/swap/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/swap/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/swap/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/swap/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/swap/.dirs/runtime 1954s ok 9 /utils/swap 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/find-program/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/find-program/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/find-program/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/find-program/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/find-program/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/find-program/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/find-program/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/find-program/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/find-program/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/find-program/.dirs/runtime 1954s ok 10 /utils/find-program 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/find-program-for-path/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/find-program-for-path/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/find-program-for-path/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/find-program-for-path/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/find-program-for-path/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/find-program-for-path/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/find-program-for-path/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/find-program-for-path/.dirs/runtime 1954s ok 11 /utils/find-program-for-path 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/debug/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/debug/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/debug/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/debug/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/debug/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/debug/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/debug/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/debug/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/debug/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/debug/.dirs/runtime 1954s Unable to clean up temporary directory /tmp/test_utils-c-11_SGI5J3/utils/debug: No such file or directory 1954s ok 12 /utils/debug 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/codeset/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/codeset/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/codeset/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/codeset/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/codeset/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/codeset/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/codeset/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/codeset/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/codeset/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/codeset/.dirs/runtime 1954s ok 13 /utils/codeset 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/codeset2/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/codeset2/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/codeset2/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/codeset2/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/codeset2/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/codeset2/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/codeset2/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/codeset2/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/codeset2/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/codeset2/.dirs/runtime 1954s Unable to clean up temporary directory /tmp/test_utils-c-11_SGI5J3/utils/codeset2: No such file or directory 1954s ok 14 /utils/codeset2 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/console-charset/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/console-charset/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/console-charset/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/console-charset/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/console-charset/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/console-charset/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/console-charset/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/console-charset/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/console-charset/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/console-charset/.dirs/runtime 1954s ok 15 /utils/console-charset 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/gettext/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/gettext/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/gettext/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/gettext/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/gettext/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/gettext/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/gettext/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/gettext/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/gettext/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/gettext/.dirs/runtime 1954s ok 16 /utils/gettext 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/username/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/username/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/username/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/username/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/username/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/username/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/username/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/username/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/username/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/username/.dirs/runtime 1954s ok 17 /utils/username 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/realname/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/realname/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/realname/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/realname/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/realname/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/realname/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/realname/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/realname/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/realname/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/realname/.dirs/runtime 1954s ok 18 /utils/realname 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/hostname/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/hostname/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/hostname/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/hostname/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/hostname/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/hostname/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/hostname/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/hostname/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/hostname/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/hostname/.dirs/runtime 1954s ok 19 /utils/hostname 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/os-info/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/os-info/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/os-info/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/os-info/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/os-info/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/os-info/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/os-info/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/os-info/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/os-info/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/os-info/.dirs/runtime 1954s # NAME: Ubuntu 1954s ok 20 /utils/os-info 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/.dirs/runtime 1954s ok 21 /utils/clear-pointer 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer-cast/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer-cast/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/clear-pointer-cast/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer-cast/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/clear-pointer-cast/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer-cast/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer-cast/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer-cast/.dirs/runtime 1954s ok 22 /utils/clear-pointer-cast 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/take-pointer/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/take-pointer/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/take-pointer/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/take-pointer/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/take-pointer/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/take-pointer/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/take-pointer/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/take-pointer/.dirs/runtime 1954s ok 23 /utils/take-pointer 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-source/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-source/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/clear-source/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/clear-source/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-source/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/clear-source/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/clear-source/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-source/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-source/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/clear-source/.dirs/runtime 1954s ok 24 /utils/clear-source 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/misc-mem/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/misc-mem/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/misc-mem/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/misc-mem/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/misc-mem/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/misc-mem/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/misc-mem/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/misc-mem/.dirs/runtime 1954s ok 25 /utils/misc-mem 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/.dirs/runtime 1954s # /utils/aligned-mem summary: Aligned memory allocator 1954s # Alignment must not be zero 1954s # Alignment must be a power of two 1954s # Alignment must be a multiple of sizeof(void*) 1954s ok 26 /utils/aligned-mem 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/free-sized/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/free-sized/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/free-sized/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/free-sized/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/free-sized/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/free-sized/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/free-sized/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/free-sized/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/free-sized/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/free-sized/.dirs/runtime 1954s # /utils/free-sized summary: Check that g_free_sized() works 1954s ok 27 /utils/free-sized 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/nullify/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/nullify/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/nullify/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/nullify/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/nullify/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/nullify/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/nullify/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/nullify/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/nullify/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/nullify/.dirs/runtime 1954s ok 28 /utils/nullify 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/atexit/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/atexit/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/atexit/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/atexit/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/atexit/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/atexit/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/atexit/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/atexit/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/atexit/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/atexit/.dirs/runtime 1954s Unable to clean up temporary directory /tmp/test_utils-c-11_SGI5J3/utils/atexit: No such file or directory 1954s ok 29 /utils/atexit 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/check-setuid/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/check-setuid/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/check-setuid/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/check-setuid/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/check-setuid/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/check-setuid/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/check-setuid/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/check-setuid/.dirs/runtime 1954s ok 30 /utils/check-setuid 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/int-limits/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/int-limits/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/int-limits/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/int-limits/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/int-limits/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/int-limits/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/int-limits/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/int-limits/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/int-limits/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/int-limits/.dirs/runtime 1954s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1954s ok 31 /utils/int-limits 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-list/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-list/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/clear-list/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/clear-list/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-list/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/clear-list/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/clear-list/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-list/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-list/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/clear-list/.dirs/runtime 1954s ok 32 /utils/clear-list 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-slist/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-slist/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/clear-slist/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-slist/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/clear-slist/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-slist/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-slist/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/clear-slist/.dirs/runtime 1954s ok 33 /utils/clear-slist 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/steal-handle-id/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/steal-handle-id/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/steal-handle-id/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/steal-handle-id/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/steal-handle-id/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/steal-handle-id/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/steal-handle-id/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/steal-handle-id/.dirs/runtime 1954s ok 34 /utils/steal-handle-id 1954s # Start of user-special-dirs tests 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/desktop/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/desktop/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/desktop/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/desktop/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/desktop/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/desktop/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/desktop/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/desktop/.dirs/runtime 1954s ok 35 /utils/user-special-dirs/desktop 1954s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/load-unlocked/.dirs/home 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/load-unlocked/.dirs/cache 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/load-unlocked/.dirs/config 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/load-unlocked/.dirs/data 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/load-unlocked/.dirs/state 1954s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/load-unlocked/.dirs/runtime 1954s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 1954s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 1955s Unable to clean up temporary directory /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/load-unlocked: No such file or directory 1955s ok 36 /utils/user-special-dirs/load-unlocked 1955s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/reload-leaks/.dirs/home 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/reload-leaks/.dirs/cache 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/reload-leaks/.dirs/config 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/reload-leaks/.dirs/data 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/reload-leaks/.dirs/state 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/reload-leaks/.dirs/runtime 1955s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 1955s Unable to clean up temporary directory /tmp/test_utils-c-11_SGI5J3/utils/user-special-dirs/reload-leaks: No such file or directory 1955s ok 37 /utils/user-special-dirs/reload-leaks 1955s # End of user-special-dirs tests 1955s # Start of clear-pointer tests 1955s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/side-effects/.dirs/home 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/side-effects/.dirs/cache 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/side-effects/.dirs/system-config2 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/side-effects/.dirs/config 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/side-effects/.dirs/system-data2 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/side-effects/.dirs/data 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/side-effects/.dirs/state 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/clear-pointer/side-effects/.dirs/runtime 1955s ok 38 /utils/clear-pointer/side-effects 1955s # End of clear-pointer tests 1955s # Start of aligned-mem tests 1955s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/alignment/.dirs/home 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/alignment/.dirs/cache 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/alignment/.dirs/system-config2 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/alignment/.dirs/config 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/alignment/.dirs/system-data2 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/alignment/.dirs/data 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/alignment/.dirs/state 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/alignment/.dirs/runtime 1955s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1955s ok 39 /utils/aligned-mem/alignment 1955s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/zeroed/.dirs/home 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/zeroed/.dirs/cache 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/zeroed/.dirs/system-config2 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/zeroed/.dirs/config 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/zeroed/.dirs/system-data2 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/zeroed/.dirs/data 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/zeroed/.dirs/state 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/zeroed/.dirs/runtime 1955s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1955s ok 40 /utils/aligned-mem/zeroed 1955s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/free-sized/.dirs/home 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/free-sized/.dirs/cache 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/free-sized/.dirs/system-config2 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/free-sized/.dirs/config 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/free-sized/.dirs/system-data2 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/free-sized/.dirs/data 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/free-sized/.dirs/state 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_SGI5J3/utils/aligned-mem/free-sized/.dirs/runtime 1955s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1955s ok 41 /utils/aligned-mem/free-sized 1955s # Start of subprocess tests 1955s # End of subprocess tests 1955s # End of aligned-mem tests 1955s # End of utils tests 1955s ok - glib/utils-c-11.test 1955s # Running test: glib/io-channel.test 1955s TAP version 14 1955s # random seed: R02S23fd16e11a27fd091acb34f5768d6a0f 1955s 1..2 1955s # Start of io-channel tests 1955s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_32N7J3/io-channel/read-write/.dirs/home 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_32N7J3/io-channel/read-write/.dirs/cache 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_32N7J3/io-channel/read-write/.dirs/system-config1:/tmp/test_io-channel_32N7J3/io-channel/read-write/.dirs/system-config2 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_32N7J3/io-channel/read-write/.dirs/config 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_32N7J3/io-channel/read-write/.dirs/system-data1:/tmp/test_io-channel_32N7J3/io-channel/read-write/.dirs/system-data2 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_32N7J3/io-channel/read-write/.dirs/data 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_32N7J3/io-channel/read-write/.dirs/state 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_32N7J3/io-channel/read-write/.dirs/runtime 1955s # Line one 1955s # 1955s # Line two 1955s # 1955s # Line three 1955s # 1955s # /* Hello */ 1955s # 1955s # \x1234\x567890\x6666 1955s # 1955s # read 62 bytes, wrote 62 bytes 1955s ok 1 /io-channel/read-write 1955s # Start of read-line tests 1955s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_32N7J3/io-channel/read-line/embedded-nuls/.dirs/home 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_32N7J3/io-channel/read-line/embedded-nuls/.dirs/cache 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_32N7J3/io-channel/read-line/embedded-nuls/.dirs/system-config1:/tmp/test_io-channel_32N7J3/io-channel/read-line/embedded-nuls/.dirs/system-config2 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_32N7J3/io-channel/read-line/embedded-nuls/.dirs/config 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_32N7J3/io-channel/read-line/embedded-nuls/.dirs/system-data1:/tmp/test_io-channel_32N7J3/io-channel/read-line/embedded-nuls/.dirs/system-data2 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_32N7J3/io-channel/read-line/embedded-nuls/.dirs/data 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_32N7J3/io-channel/read-line/embedded-nuls/.dirs/state 1955s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_32N7J3/io-channel/read-line/embedded-nuls/.dirs/runtime 1955s # /io-channel/read-line/embedded-nuls summary: Test that reading a line containing embedded nuls works when using non-standard line terminators. 1955s ok 2 /io-channel/read-line/embedded-nuls 1955s # End of read-line tests 1955s # End of io-channel tests 1955s ok - glib/io-channel.test 1955s # Running test: glib/proxy-test.test 1955s TAP version 14 1955s # random seed: R02Sc393342af40adb25a2e47d4fe94c797b 1955s 1..11 1955s # Start of proxy tests 1955s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestProxyResolver) for ‘gio-proxy-resolver’ 1955s ok 1 /proxy/direct_sync 1955s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1955s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa3faf1f30 and GSocketClientAsyncConnectData 0x2aa3faf1450 1955s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1955s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa3faf2a50 for GSocketClientAsyncConnectData 0x2aa3faf1450 1955s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1955s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1955s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1955s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1955s ok 2 /proxy/direct_async 1955s ok 3 /proxy/single_sync 1955s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1955s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa3faf2510 and GSocketClientAsyncConnectData 0x2aa3faf1450 1955s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1955s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa3faf3bb0 for GSocketClientAsyncConnectData 0x2aa3faf1450 1955s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1955s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1955s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1955s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1955s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1955s ok 4 /proxy/single_async 1955s ok 5 /proxy/multiple_sync 1955s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1955s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa3faf2800 and GSocketClientAsyncConnectData 0x2aa3faf2790 1955s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1955s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa3faf40f0 for GSocketClientAsyncConnectData 0x2aa3faf2790 1955s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1955s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1955s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1955s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1955s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1955s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa3faf4090 for GSocketClientAsyncConnectData 0x2aa3faf2790 1955s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1955s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1955s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1955s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1955s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1955s ok 6 /proxy/multiple_async 1955s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1955s ok 7 /proxy/invalid-uris-sync 1955s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1955s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1955s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa3faf23f0 and GSocketClientAsyncConnectData 0x2aa3faf4280 1955s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1955s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1955s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1955s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa3faf2510 and GSocketClientAsyncConnectData 0x2aa3faf2790 1955s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1955s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1955s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1955s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa3faf23f0 and GSocketClientAsyncConnectData 0x2aa3faf4280 1955s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1955s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa3faf2ab0 for GSocketClientAsyncConnectData 0x2aa3faf4280 1955s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1955s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1955s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1955s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1955s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1955s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa3faf2510 and GSocketClientAsyncConnectData 0x2aa3faf4280 1955s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1955s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa3faf42f0 for GSocketClientAsyncConnectData 0x2aa3faf4280 1955s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1955s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1955s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1955s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1955s ok 8 /proxy/invalid-uris-async 1955s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1955s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa3faf1f30 and GSocketClientAsyncConnectData 0x2aa3faf4280 1955s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1955s # GLib-GIO-DEBUG: IPv6 DNS error: Not found 1955s # GLib-GIO-DEBUG: IPv4 DNS error: Not found 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Not found 1955s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Not found 1955s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1955s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa3faf4410 and GSocketClientAsyncConnectData 0x2aa3faf29a0 1955s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1955s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa3faf3a10 for GSocketClientAsyncConnectData 0x2aa3faf29a0 1955s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1955s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1955s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1955s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1955s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1955s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1955s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1955s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa3faf23f0 and GSocketClientAsyncConnectData 0x2aa3faf2790 1955s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1955s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa3faf2ab0 for GSocketClientAsyncConnectData 0x2aa3faf2790 1955s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1955s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1955s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1955s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1955s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1955s ok 9 /proxy/dns 1955s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1955s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa3faf1f30 and GSocketClientAsyncConnectData 0x2aa3faf2790 1955s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1955s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa3faf2ab0 for GSocketClientAsyncConnectData 0x2aa3faf2790 1955s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1955s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1955s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1955s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1955s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1955s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1955s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1955s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa3faf23f0 and GSocketClientAsyncConnectData 0x2aa3faf25d0 1955s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1955s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa3faf3a10 for GSocketClientAsyncConnectData 0x2aa3faf25d0 1955s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1955s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1955s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1955s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1955s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1955s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1955s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa3faf1f30 and GSocketClientAsyncConnectData 0x2aa3faf4280 1955s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1955s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa3faf40f0 for GSocketClientAsyncConnectData 0x2aa3faf4280 1955s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1955s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1955s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1955s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1955s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1955s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1955s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1955s ok 10 /proxy/override 1955s ok 11 /proxy/enumerator-ports 1955s # End of proxy tests 1955s ok - glib/proxy-test.test 1955s # Running test: glib/tls-interaction.test 1955s TAP version 14 1955s # random seed: R02S27796701f141740db91e121ae0603a1a 1955s 1..42 1955s # Start of tls-interaction tests 1955s # Start of ask-password tests 1955s # Start of invoke-with-loop tests 1955s ok 1 /tls-interaction/ask-password/invoke-with-loop/unhandled-implementation 1955s ok 2 /tls-interaction/ask-password/invoke-with-loop/async-implementation-success 1955s ok 3 /tls-interaction/ask-password/invoke-with-loop/async-implementation-failure 1955s ok 4 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-success 1955s ok 5 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-failure 1955s # End of invoke-with-loop tests 1955s # Start of invoke-without-loop tests 1955s ok 6 /tls-interaction/ask-password/invoke-without-loop/unhandled-implementation 1955s ok 7 /tls-interaction/ask-password/invoke-without-loop/async-implementation-success 1955s ok 8 /tls-interaction/ask-password/invoke-without-loop/async-implementation-failure 1955s ok 9 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-success 1955s ok 10 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-failure 1955s # End of invoke-without-loop tests 1955s # Start of invoke-in-loop tests 1955s ok 11 /tls-interaction/ask-password/invoke-in-loop/unhandled-implementation 1955s ok 12 /tls-interaction/ask-password/invoke-in-loop/async-implementation-success 1955s ok 13 /tls-interaction/ask-password/invoke-in-loop/async-implementation-failure 1955s ok 14 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-success 1955s ok 15 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-failure 1955s # End of invoke-in-loop tests 1955s # Start of sync tests 1955s ok 16 /tls-interaction/ask-password/sync/unhandled-implementation 1955s ok 17 /tls-interaction/ask-password/sync/sync-implementation-success 1955s ok 18 /tls-interaction/ask-password/sync/sync-implementation-failure 1955s # End of sync tests 1955s # Start of async tests 1955s ok 19 /tls-interaction/ask-password/async/unhandled-implementation 1955s ok 20 /tls-interaction/ask-password/async/async-implementation-success 1955s ok 21 /tls-interaction/ask-password/async/async-implementation-failure 1955s # End of async tests 1955s # End of ask-password tests 1955s # Start of request-certificate tests 1955s # Start of invoke-with-loop tests 1955s ok 22 /tls-interaction/request-certificate/invoke-with-loop/unhandled-implementation 1955s ok 23 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-success 1955s ok 24 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-failure 1955s ok 25 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-success 1955s ok 26 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-failure 1955s # End of invoke-with-loop tests 1955s # Start of invoke-without-loop tests 1955s ok 27 /tls-interaction/request-certificate/invoke-without-loop/unhandled-implementation 1955s ok 28 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-success 1955s ok 29 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-failure 1955s ok 30 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-success 1955s ok 31 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-failure 1955s # End of invoke-without-loop tests 1955s # Start of invoke-in-loop tests 1955s ok 32 /tls-interaction/request-certificate/invoke-in-loop/unhandled-implementation 1955s ok 33 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-success 1955s ok 34 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-failure 1955s ok 35 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-success 1955s ok 36 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-failure 1955s # End of invoke-in-loop tests 1955s # Start of sync tests 1955s ok 37 /tls-interaction/request-certificate/sync/unhandled-implementation 1955s ok 38 /tls-interaction/request-certificate/sync/sync-implementation-success 1955s ok 39 /tls-interaction/request-certificate/sync/sync-implementation-failure 1955s # End of sync tests 1955s # Start of async tests 1955s ok 40 /tls-interaction/request-certificate/async/unhandled-implementation 1955s ok 41 /tls-interaction/request-certificate/async/async-implementation-success 1955s ok 42 /tls-interaction/request-certificate/async/async-implementation-failure 1955s # End of async tests 1955s # End of request-certificate tests 1955s # End of tls-interaction tests 1956s ok - glib/tls-interaction.test 1956s # Running test: glib/utils-c-17.test 1956s TAP version 14 1956s # random seed: R02S91b6af0881c4b51cd4d107f8ca6c4b20 1956s 1..41 1956s # Start of utils tests 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/language-names/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/language-names/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/language-names/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/language-names/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/language-names/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/language-names/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/language-names/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/language-names/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/language-names/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/language-names/.dirs/runtime 1956s ok 1 /utils/language-names 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/locale-variants/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/locale-variants/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/locale-variants/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/locale-variants/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/locale-variants/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/locale-variants/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/locale-variants/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/locale-variants/.dirs/runtime 1956s # Testing locale ‘en’ 1956s # Testing locale ‘sr@latin’ 1956s # Testing locale ‘fr_BE’ 1956s # Testing locale ‘sr_SR@latin’ 1956s # Testing locale ‘sr_SR@latin.UTF-8’ 1956s # Testing locale ‘sr@latin_invalid’ 1956s # Testing locale ‘sr.UTF-8@latin’ 1956s # Testing locale ‘sr.UTF-8_latin’ 1956s # Testing locale ‘sr.UTF-8@latin_invalid’ 1956s ok 2 /utils/locale-variants 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/version/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/version/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/version/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/version/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/version/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/version/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/version/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/version/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/version/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/version/.dirs/runtime 1956s ok 3 /utils/version 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/appname/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/appname/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/appname/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/appname/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/appname/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/appname/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/appname/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/appname/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/appname/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/appname/.dirs/runtime 1956s ok 4 /utils/appname 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/prgname-thread-safety/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/prgname-thread-safety/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/prgname-thread-safety/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/prgname-thread-safety/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/prgname-thread-safety/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/prgname-thread-safety/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/prgname-thread-safety/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/prgname-thread-safety/.dirs/runtime 1956s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1956s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1956s ok 5 /utils/prgname-thread-safety 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/tmpdir/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/tmpdir/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/tmpdir/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/tmpdir/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/tmpdir/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/tmpdir/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/tmpdir/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/tmpdir/.dirs/runtime 1956s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1956s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1956s Unable to clean up temporary directory /tmp/test_utils-c-17_VA9NK3/utils/tmpdir: No such file or directory 1956s ok 6 /utils/tmpdir 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/basic_bits/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/basic_bits/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/basic_bits/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/basic_bits/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/basic_bits/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/basic_bits/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/basic_bits/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/basic_bits/.dirs/runtime 1956s ok 7 /utils/basic_bits 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/bits/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/bits/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/bits/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/bits/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/bits/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/bits/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/bits/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/bits/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/bits/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/bits/.dirs/runtime 1956s ok 8 /utils/bits 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/swap/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/swap/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/swap/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/swap/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/swap/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/swap/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/swap/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/swap/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/swap/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/swap/.dirs/runtime 1956s ok 9 /utils/swap 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/find-program/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/find-program/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/find-program/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/find-program/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/find-program/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/find-program/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/find-program/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/find-program/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/find-program/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/find-program/.dirs/runtime 1956s ok 10 /utils/find-program 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/find-program-for-path/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/find-program-for-path/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/find-program-for-path/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/find-program-for-path/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/find-program-for-path/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/find-program-for-path/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/find-program-for-path/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/find-program-for-path/.dirs/runtime 1956s ok 11 /utils/find-program-for-path 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/debug/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/debug/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/debug/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/debug/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/debug/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/debug/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/debug/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/debug/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/debug/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/debug/.dirs/runtime 1956s Unable to clean up temporary directory /tmp/test_utils-c-17_VA9NK3/utils/debug: No such file or directory 1956s ok 12 /utils/debug 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/codeset/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/codeset/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/codeset/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/codeset/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/codeset/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/codeset/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/codeset/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/codeset/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/codeset/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/codeset/.dirs/runtime 1956s ok 13 /utils/codeset 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/codeset2/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/codeset2/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/codeset2/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/codeset2/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/codeset2/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/codeset2/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/codeset2/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/codeset2/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/codeset2/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/codeset2/.dirs/runtime 1956s Unable to clean up temporary directory /tmp/test_utils-c-17_VA9NK3/utils/codeset2: No such file or directory 1956s ok 14 /utils/codeset2 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/console-charset/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/console-charset/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/console-charset/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/console-charset/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/console-charset/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/console-charset/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/console-charset/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/console-charset/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/console-charset/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/console-charset/.dirs/runtime 1956s ok 15 /utils/console-charset 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/gettext/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/gettext/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/gettext/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/gettext/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/gettext/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/gettext/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/gettext/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/gettext/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/gettext/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/gettext/.dirs/runtime 1956s ok 16 /utils/gettext 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/username/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/username/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/username/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/username/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/username/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/username/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/username/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/username/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/username/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/username/.dirs/runtime 1956s ok 17 /utils/username 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/realname/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/realname/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/realname/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/realname/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/realname/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/realname/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/realname/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/realname/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/realname/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/realname/.dirs/runtime 1956s ok 18 /utils/realname 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/hostname/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/hostname/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/hostname/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/hostname/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/hostname/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/hostname/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/hostname/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/hostname/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/hostname/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/hostname/.dirs/runtime 1956s ok 19 /utils/hostname 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/os-info/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/os-info/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/os-info/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/os-info/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/os-info/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/os-info/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/os-info/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/os-info/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/os-info/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/os-info/.dirs/runtime 1956s # NAME: Ubuntu 1956s ok 20 /utils/os-info 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/.dirs/runtime 1956s ok 21 /utils/clear-pointer 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer-cast/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer-cast/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/clear-pointer-cast/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer-cast/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/clear-pointer-cast/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer-cast/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer-cast/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer-cast/.dirs/runtime 1956s ok 22 /utils/clear-pointer-cast 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/take-pointer/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/take-pointer/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/take-pointer/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/take-pointer/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/take-pointer/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/take-pointer/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/take-pointer/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/take-pointer/.dirs/runtime 1956s ok 23 /utils/take-pointer 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-source/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-source/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/clear-source/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/clear-source/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-source/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/clear-source/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/clear-source/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-source/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-source/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/clear-source/.dirs/runtime 1956s ok 24 /utils/clear-source 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/misc-mem/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/misc-mem/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/misc-mem/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/misc-mem/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/misc-mem/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/misc-mem/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/misc-mem/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/misc-mem/.dirs/runtime 1956s ok 25 /utils/misc-mem 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/.dirs/runtime 1956s # /utils/aligned-mem summary: Aligned memory allocator 1956s # Alignment must not be zero 1956s # Alignment must be a power of two 1956s # Alignment must be a multiple of sizeof(void*) 1956s ok 26 /utils/aligned-mem 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/free-sized/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/free-sized/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/free-sized/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/free-sized/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/free-sized/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/free-sized/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/free-sized/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/free-sized/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/free-sized/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/free-sized/.dirs/runtime 1956s # /utils/free-sized summary: Check that g_free_sized() works 1956s ok 27 /utils/free-sized 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/nullify/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/nullify/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/nullify/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/nullify/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/nullify/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/nullify/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/nullify/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/nullify/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/nullify/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/nullify/.dirs/runtime 1956s ok 28 /utils/nullify 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/atexit/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/atexit/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/atexit/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/atexit/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/atexit/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/atexit/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/atexit/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/atexit/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/atexit/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/atexit/.dirs/runtime 1956s Unable to clean up temporary directory /tmp/test_utils-c-17_VA9NK3/utils/atexit: No such file or directory 1956s ok 29 /utils/atexit 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/check-setuid/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/check-setuid/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/check-setuid/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/check-setuid/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/check-setuid/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/check-setuid/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/check-setuid/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/check-setuid/.dirs/runtime 1956s ok 30 /utils/check-setuid 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/int-limits/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/int-limits/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/int-limits/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/int-limits/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/int-limits/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/int-limits/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/int-limits/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/int-limits/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/int-limits/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/int-limits/.dirs/runtime 1956s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1956s ok 31 /utils/int-limits 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-list/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-list/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/clear-list/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/clear-list/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-list/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/clear-list/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/clear-list/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-list/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-list/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/clear-list/.dirs/runtime 1956s ok 32 /utils/clear-list 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-slist/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-slist/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/clear-slist/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-slist/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/clear-slist/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-slist/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-slist/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/clear-slist/.dirs/runtime 1956s ok 33 /utils/clear-slist 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/steal-handle-id/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/steal-handle-id/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/steal-handle-id/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/steal-handle-id/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/steal-handle-id/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/steal-handle-id/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/steal-handle-id/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/steal-handle-id/.dirs/runtime 1956s ok 34 /utils/steal-handle-id 1956s # Start of user-special-dirs tests 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/desktop/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/desktop/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/desktop/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/desktop/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/desktop/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/desktop/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/desktop/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/desktop/.dirs/runtime 1956s ok 35 /utils/user-special-dirs/desktop 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/load-unlocked/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/load-unlocked/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/load-unlocked/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/load-unlocked/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/load-unlocked/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/load-unlocked/.dirs/runtime 1956s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 1956s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 1956s Unable to clean up temporary directory /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/load-unlocked: No such file or directory 1956s ok 36 /utils/user-special-dirs/load-unlocked 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/reload-leaks/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/reload-leaks/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/reload-leaks/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/reload-leaks/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/reload-leaks/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/reload-leaks/.dirs/runtime 1956s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 1956s Unable to clean up temporary directory /tmp/test_utils-c-17_VA9NK3/utils/user-special-dirs/reload-leaks: No such file or directory 1956s ok 37 /utils/user-special-dirs/reload-leaks 1956s # End of user-special-dirs tests 1956s # Start of clear-pointer tests 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/side-effects/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/side-effects/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/side-effects/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/side-effects/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/side-effects/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/side-effects/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/side-effects/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/clear-pointer/side-effects/.dirs/runtime 1956s ok 38 /utils/clear-pointer/side-effects 1956s # End of clear-pointer tests 1956s # Start of aligned-mem tests 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/alignment/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/alignment/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/alignment/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/alignment/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/alignment/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/alignment/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/alignment/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/alignment/.dirs/runtime 1956s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1956s ok 39 /utils/aligned-mem/alignment 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/zeroed/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/zeroed/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/zeroed/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/zeroed/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/zeroed/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/zeroed/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/zeroed/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/zeroed/.dirs/runtime 1956s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1956s ok - glib/utils-c-17.test 1956s # Running test: glib/struct-info.test 1956s ok 40 /utils/aligned-mem/zeroed 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/free-sized/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/free-sized/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/free-sized/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/free-sized/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/free-sized/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/free-sized/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/free-sized/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_VA9NK3/utils/aligned-mem/free-sized/.dirs/runtime 1956s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1956s ok 41 /utils/aligned-mem/free-sized 1956s # Start of subprocess tests 1956s # End of subprocess tests 1956s # End of aligned-mem tests 1956s # End of utils tests 1956s TAP version 14 1956s ok - glib/struct-info.test 1956s # random seed: R02Sa83a6a7d8411ac4d780de6d50bce5251 1956s 1..4 1956s # Start of struct-info tests 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_CA7CK3/struct-info/field-iterators/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_CA7CK3/struct-info/field-iterators/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_CA7CK3/struct-info/field-iterators/.dirs/system-config1:/tmp/test_struct-info_CA7CK3/struct-info/field-iterators/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_CA7CK3/struct-info/field-iterators/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_CA7CK3/struct-info/field-iterators/.dirs/system-data1:/tmp/test_struct-info_CA7CK3/struct-info/field-iterators/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_CA7CK3/struct-info/field-iterators/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_CA7CK3/struct-info/field-iterators/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_CA7CK3/struct-info/field-iterators/.dirs/runtime 1956s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1956s # /struct-info/field-iterators summary: Test iterating through a struct's fields with gi_struct_info_get_field() 1956s ok 1 /struct-info/field-iterators 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_CA7CK3/struct-info/sizeof-gvalue/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_CA7CK3/struct-info/sizeof-gvalue/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_CA7CK3/struct-info/sizeof-gvalue/.dirs/system-config1:/tmp/test_struct-info_CA7CK3/struct-info/sizeof-gvalue/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_CA7CK3/struct-info/sizeof-gvalue/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_CA7CK3/struct-info/sizeof-gvalue/.dirs/system-data1:/tmp/test_struct-info_CA7CK3/struct-info/sizeof-gvalue/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_CA7CK3/struct-info/sizeof-gvalue/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_CA7CK3/struct-info/sizeof-gvalue/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_CA7CK3/struct-info/sizeof-gvalue/.dirs/runtime 1956s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1956s # /struct-info/sizeof-gvalue summary: Test that gi_struct_info_get_size() reports the correct sizeof GValue 1956s ok 2 /struct-info/sizeof-gvalue 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_CA7CK3/struct-info/is-pointer-for-struct-method-arg/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_CA7CK3/struct-info/is-pointer-for-struct-method-arg/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_CA7CK3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config1:/tmp/test_struct-info_CA7CK3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_CA7CK3/struct-info/is-pointer-for-struct-method-arg/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_CA7CK3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data1:/tmp/test_struct-info_CA7CK3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_CA7CK3/struct-info/is-pointer-for-struct-method-arg/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_CA7CK3/struct-info/is-pointer-for-struct-method-arg/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_CA7CK3/struct-info/is-pointer-for-struct-method-arg/.dirs/runtime 1956s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1956s # /struct-info/is-pointer-for-struct-method-arg summary: Test that a struct method reports the correct type with gi_type_info_is_pointer() 1956s ok 3 /struct-info/is-pointer-for-struct-method-arg 1956s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_CA7CK3/struct-info/boxed/.dirs/home 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_CA7CK3/struct-info/boxed/.dirs/cache 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_CA7CK3/struct-info/boxed/.dirs/system-config1:/tmp/test_struct-info_CA7CK3/struct-info/boxed/.dirs/system-config2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_CA7CK3/struct-info/boxed/.dirs/config 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_CA7CK3/struct-info/boxed/.dirs/system-data1:/tmp/test_struct-info_CA7CK3/struct-info/boxed/.dirs/system-data2 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_CA7CK3/struct-info/boxed/.dirs/data 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_CA7CK3/struct-info/boxed/.dirs/state 1956s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_CA7CK3/struct-info/boxed/.dirs/runtime 1956s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1956s # /struct-info/boxed summary: Test that a boxed struct is recognised as such 1956s ok 4 /struct-info/boxed 1956s # End of struct-info tests 1956s # Running test: glib/thread-pool-slow.test 1956s TAP version 14 1956s # random seed: R02Sc1abb704ad79759aa50e45b5c8d0571c 1956s 1..7 1956s # Start of threadpool tests 1956s ok 1 /threadpool/functions 1957s ok 2 /threadpool/stop-unused 1957s # slow test /threadpool/stop-unused executed in 0.53 secs 1957s # Executing: glib/thread-pool-slow.test 1957s ok 3 /threadpool/pools 1957s # slow test /threadpool/pools executed in 0.88 secs 1957s # [unsorted] ===> pushed new thread with id:78, number of threads:1, unprocessed:1 1957s # [unsorted] ===> pushed new thread with id:97, number of threads:2, unprocessed:2 1957s # [unsorted] ===> pushed new thread with id:3, number of threads:3, unprocessed:3 1957s # [unsorted] ===> pushed new thread with id:64, number of threads:4, unprocessed:4 1957s # [unsorted] ===> pushed new thread with id:34, number of threads:5, unprocessed:5 1957s # [unsorted] ===> pushed new thread with id:80, number of threads:6, unprocessed:6 1957s # [unsorted] ===> pushed new thread with id:41, number of threads:7, unprocessed:7 1957s # [unsorted] ===> pushed new thread with id:43, number of threads:8, unprocessed:8 1957s # [unsorted] ===> pushed new thread with id:47, number of threads:9, unprocessed:9 1957s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:0 1957s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:1 1957s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:2 1957s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:3 1957s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:4 1957s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:5 1957s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:6 1957s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:7 1957s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:8 1957s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:9 1957s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:10 1957s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:11 1957s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:12 1957s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:13 1957s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:14 1957s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:15 1957s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:16 1957s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:17 1957s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:18 1957s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:19 1957s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:20 1957s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:21 1957s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:22 1957s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:23 1957s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:24 1957s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:25 1957s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:26 1957s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:27 1957s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:28 1957s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:29 1957s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:30 1957s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:31 1957s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:32 1957s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:33 1957s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:34 1957s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:35 1957s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:36 1957s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:37 1957s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:38 1957s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:39 1957s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:40 1957s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:41 1957s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:42 1957s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:43 1957s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:44 1957s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:45 1957s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:46 1957s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:47 1957s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:48 1957s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:49 1957s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:50 1957s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:51 1957s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:52 1957s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:53 1957s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:54 1957s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:55 1957s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:56 1957s # [unsorted] ===> pushed new thread with id:73, number of threads:10, unprocessed:57 1957s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:58 1957s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:59 1957s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:60 1957s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:61 1957s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:62 1957s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:63 1957s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:64 1957s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:65 1957s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:66 1957s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:67 1957s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:68 1957s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:69 1957s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:70 1957s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:71 1957s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:72 1957s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:73 1957s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:74 1957s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:75 1957s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:76 1957s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:77 1957s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:78 1957s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:79 1957s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:80 1957s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:81 1957s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:82 1957s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:83 1957s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:84 1957s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:85 1957s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:86 1957s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:87 1957s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:88 1957s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:89 1957s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:90 1957s ok 4 /threadpool/no-sort 1957s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:1 1957s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:2 1957s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:3 1957s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:4 1957s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:5 1957s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:6 1957s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:7 1957s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:8 1957s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:9 1957s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:10 1957s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:11 1957s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:12 1957s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:13 1957s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:14 1957s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:15 1957s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:16 1957s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:17 1957s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:18 1957s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:19 1957s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:20 1957s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:21 1957s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:22 1957s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:23 1957s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:24 1957s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:25 1957s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:26 1957s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:27 1957s # [ sorted] ===> pushed new thread with id:46, number of threads:0, unprocessed:28 1957s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:29 1957s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:30 1957s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:31 1957s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:32 1957s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:33 1957s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:34 1957s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:35 1957s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:36 1957s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:37 1957s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:38 1957s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:39 1957s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:40 1957s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:41 1957s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:42 1957s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:43 1957s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:44 1957s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:45 1957s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:46 1957s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:47 1957s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:48 1957s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:49 1957s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:50 1957s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:51 1957s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:52 1957s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:53 1957s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:54 1957s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:55 1957s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:56 1957s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:57 1957s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:58 1957s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:59 1957s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:60 1957s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:61 1957s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:62 1957s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:63 1957s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:64 1957s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:65 1957s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:66 1957s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:67 1957s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:68 1957s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:69 1957s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:70 1957s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:71 1957s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:72 1957s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:73 1957s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:74 1957s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:75 1957s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:76 1957s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:77 1957s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:78 1957s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:79 1957s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:80 1957s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:81 1957s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:82 1957s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:83 1957s # [ sorted] ===> pushed new thread with id:23, number of threads:0, unprocessed:84 1957s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:85 1957s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:86 1957s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:87 1957s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:88 1957s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:89 1957s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:90 1957s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:91 1957s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:92 1957s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:93 1957s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:94 1957s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:95 1957s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:96 1957s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:97 1957s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:98 1957s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:99 1957s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:100 1957s # Starting thread pool processing 1957s ok 5 /threadpool/sort 1958s ok 6 /threadpool/stop-unused-multiple 1958s # slow test /threadpool/stop-unused-multiple executed in 0.67 secs 1958s # Pool idle thread count: 0, unprocessed jobs: 50 1959s # Pool idle thread count: 0, unprocessed jobs: 0 1959s # Pool idle thread count: 0, unprocessed jobs: 0 1959s # Pool idle thread count: 10, unprocessed jobs: 0 1959s # Pool idle thread count: 10, unprocessed jobs: 0 1960s # Pool idle thread count: 10, unprocessed jobs: 0 1960s # Pool idle thread count: 10, unprocessed jobs: 0 1960s # Pool idle thread count: 10, unprocessed jobs: 0 1960s # Pool idle thread count: 10, unprocessed jobs: 0 1961s # Pool idle thread count: 10, unprocessed jobs: 0 1961s # Pool idle thread count: 10, unprocessed jobs: 0 1961s # Pool idle thread count: 10, unprocessed jobs: 0 1961s # Pool idle thread count: 10, unprocessed jobs: 0 1962s # Pool idle thread count: 10, unprocessed jobs: 0 1962s # Pool idle thread count: 10, unprocessed jobs: 0 1962s # Executing: glib/thread-pool-slow.test 1962s # Pool idle thread count: 10, unprocessed jobs: 0 1962s # Pool idle thread count: 10, unprocessed jobs: 0 1963s # Pool idle thread count: 10, unprocessed jobs: 0 1963s # Pool idle thread count: 10, unprocessed jobs: 0 1963s # Pool idle thread count: 10, unprocessed jobs: 0 1963s # Pool idle thread count: 10, unprocessed jobs: 0 1964s # Pool idle thread count: 10, unprocessed jobs: 0 1964s # Pool idle thread count: 10, unprocessed jobs: 0 1964s # Pool idle thread count: 10, unprocessed jobs: 0 1964s # Pool idle thread count: 10, unprocessed jobs: 0 1965s # Pool idle thread count: 10, unprocessed jobs: 0 1965s # Pool idle thread count: 10, unprocessed jobs: 0 1966s # Pool idle thread count: 10, unprocessed jobs: 0 1966s # Pool idle thread count: 10, unprocessed jobs: 0 1966s # Pool idle thread count: 10, unprocessed jobs: 0 1966s # Pool idle thread count: 10, unprocessed jobs: 0 1967s # Pool idle thread count: 10, unprocessed jobs: 0 1967s # Pool idle thread count: 10, unprocessed jobs: 0 1967s # Pool idle thread count: 10, unprocessed jobs: 0 1967s # Executing: glib/thread-pool-slow.test 1967s # Pool idle thread count: 10, unprocessed jobs: 2 1967s # Pool idle thread count: 8, unprocessed jobs: 0 1968s # Pool idle thread count: 8, unprocessed jobs: 0 1968s # Pool idle thread count: 8, unprocessed jobs: 0 1968s # Pool idle thread count: 10, unprocessed jobs: 0 1968s # Pool idle thread count: 10, unprocessed jobs: 0 1969s # Pool idle thread count: 10, unprocessed jobs: 0 1969s # Pool idle thread count: 10, unprocessed jobs: 0 1969s # Pool idle thread count: 2, unprocessed jobs: 0 1969s # Pool idle thread count: 2, unprocessed jobs: 0 1970s # Pool idle thread count: 2, unprocessed jobs: 0 1970s # Pool idle thread count: 2, unprocessed jobs: 0 1970s # Pool idle thread count: 2, unprocessed jobs: 0 1970s # Pool idle thread count: 2, unprocessed jobs: 0 1971s # Pool idle thread count: 2, unprocessed jobs: 0 1971s # Pool idle thread count: 2, unprocessed jobs: 0 1972s # Pool idle thread count: 2, unprocessed jobs: 0 1972s # Pool idle thread count: 2, unprocessed jobs: 0 1972s # Pool idle thread count: 2, unprocessed jobs: 0 1972s # Pool idle thread count: 2, unprocessed jobs: 0 1972s # Executing: glib/thread-pool-slow.test 1973s # Pool idle thread count: 2, unprocessed jobs: 0 1973s # Pool idle thread count: 2, unprocessed jobs: 0 1973s # Pool idle thread count: 2, unprocessed jobs: 0 1973s # Pool idle thread count: 2, unprocessed jobs: 0 1974s # Pool idle thread count: 2, unprocessed jobs: 0 1974s # Pool idle thread count: 2, unprocessed jobs: 0 1974s # Pool idle thread count: 2, unprocessed jobs: 0 1974s # Pool idle thread count: 2, unprocessed jobs: 0 1975s # Pool idle thread count: 2, unprocessed jobs: 0 1975s # Pool idle thread count: 2, unprocessed jobs: 0 1975s # Pool idle thread count: 2, unprocessed jobs: 0 1975s # Pool idle thread count: 2, unprocessed jobs: 0 1976s # Pool idle thread count: 2, unprocessed jobs: 0 1976s # Pool idle thread count: 2, unprocessed jobs: 0 1976s # Pool idle thread count: 2, unprocessed jobs: 0 1976s # Pool idle thread count: 2, unprocessed jobs: 0 1977s # Pool idle thread count: 2, unprocessed jobs: 0 1977s # Pool idle thread count: 2, unprocessed jobs: 0 1977s # Executing: glib/thread-pool-slow.test 1977s # Pool idle thread count: 2, unprocessed jobs: 0 1977s # Pool idle thread count: 2, unprocessed jobs: 0 1978s ok - glib/thread-pool-slow.test 1978s # Running test: glib/memory-monitor-portal.test 1978s ok 7 /threadpool/idle-time 1978s # slow test /threadpool/idle-time executed in 20.04 secs 1978s # End of threadpool tests 1979s TAP version 13 1979s ok 1 __main__.TestLowMemoryMonitorPortal.test_low_memory_warning_portal_signal # SKIP xdg-desktop-portal not available 1980s 1..1 1980s ok - glib/memory-monitor-portal.test 1980s # Running test: glib/enums.test 1980s TAP version 14 1980s # random seed: R02S8f1a12bc0ddd6d7b18282fc952674e54 1980s 1..4 1980s # Start of enum tests 1980s ok 1 /enum/basic 1980s ok 2 /enum/define-type 1980s # End of enum tests 1980s # Start of flags tests 1980s ok 3 /flags/basic 1980s ok 4 /flags/define-type 1980s # End of flags tests 1980s ok - glib/enums.test 1980s # Running test: glib/sleepy-stream.test 1980s TAP version 14 1980s # random seed: R02S924f5578885015acc2090bd588baa57f 1980s 1..2 1980s # Start of filter-stream tests 1980s ok 1 /filter-stream/input 1980s ok 2 /filter-stream/async 1980s # End of filter-stream tests 1980s TAP version 14 1980s # random seed: R02S82dd32403e8f3d3914aa58aae6a8eac6 1980s 1..25 1980s # Start of gapplication tests 1980s ok 1 /gapplication/no-dbus 1980s ok 2 /gapplication/no-appid 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s ok 3 /gapplication/properties 1980s ok 4 /gapplication/app-id 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s ok - glib/sleepy-stream.test 1980s # Running test: glib/gapplication.test 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s ok 5 /gapplication/quit 1980s ok 6 /gapplication/registered 1980s ok 7 /gapplication/local-actions 1980s ok 8 /gapplication/local-command-line 1980s ok 9 /gapplication/resource-path 1980s ok 10 /gapplication/test-help 1980s ok 11 /gapplication/command-line-done 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s ok 12 /gapplication/test-busy 1980s ok 13 /gapplication/test-handle-local-options1 1980s ok 14 /gapplication/test-handle-local-options2 1980s ok 15 /gapplication/test-handle-local-options3 1980s ok 16 /gapplication/api 1980s ok 17 /gapplication/version 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1980s # launching subprocess 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s ok 18 /gapplication/replace 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1980s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1980s # launching subprocess 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s ok 19 /gapplication/no-replace 1981s # slow test /gapplication/no-replace executed in 0.50 secs 1981s # Start of command-line tests 1981s # /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 1981s ok 20 /gapplication/command-line/arguments 1981s # End of command-line tests 1981s # Start of dbus tests 1981s # /gapplication/dbus/activate summary: Test that calling the Activate D-Bus method works 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1981s # Message 0 1981s # Message 1 1981s # Message 2 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s ok 21 /gapplication/dbus/activate 1981s # slow test /gapplication/dbus/activate executed in 0.64 secs 1981s # /gapplication/dbus/open summary: Test that calling the Open D-Bus method works 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1981s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1981s # Message 0 1981s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1981s # Message 1 1981s # Message 2 1982s # Message 3 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s ok 22 /gapplication/dbus/open 1982s # /gapplication/dbus/command-line summary: Test that calling the CommandLine D-Bus method works 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1982s # Message 0 1982s # Message 1 1982s # Message 2 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s ok 23 /gapplication/dbus/command-line 1982s # /gapplication/dbus/command-line-done summary: Test that GDBusCommandLine.done() works 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s ok 24 /gapplication/dbus/command-line-done 1982s # /gapplication/dbus/activate-action summary: Test that calling the ActivateAction D-Bus method works 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1982s # Message 0 1982s # Message 1 1982s # Message 2 1982s # Message 3 1982s # Message 4 1982s # Message 5 1982s # Message 6 1982s # Message 7 1982s # Message 8 1982s # Message 9 1982s # Message 10 1982s # Executing: glib/gapplication.test 1982s # Message 11 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s ok - glib/gapplication.test 1982s # Running test: glib/accumulator.test 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1982s ok 25 /gapplication/dbus/activate-action 1982s # slow test /gapplication/dbus/activate-action executed in 0.69 secs 1982s # End of dbus tests 1982s # End of gapplication tests 1982s ok - glib/accumulator.test 1982s # Running test: glib/dynamictests.test 1982s TAP version 14 1982s # random seed: R02S692f3411df8906ec88ce69408c142bb8 1982s 1..1 1982s # Start of gobject tests 1982s ok 1 /gobject/accumulator 1982s # End of gobject tests 1982s TAP version 14 1982s # random seed: R02Sc5893bfd13cb2e6af95ea55e1792d902 1982s 1..2 1982s # Start of GObject tests 1982s ok 1 /GObject/threaded-dynamic-ref-unref-init 1982s ok 2 /GObject/dynamic-interface-properties 1982s # End of GObject tests 1982s ok - glib/dynamictests.test 1982s # Running test: glib/utils-c-99.test 1982s TAP version 14 1982s # random seed: R02Sf4fd331961d752859b90b432d2ae0dc8 1982s 1..41 1982s # Start of utils tests 1982s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/language-names/.dirs/home 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/language-names/.dirs/cache 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/language-names/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/language-names/.dirs/system-config2 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/language-names/.dirs/config 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/language-names/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/language-names/.dirs/system-data2 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/language-names/.dirs/data 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/language-names/.dirs/state 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/language-names/.dirs/runtime 1982s ok 1 /utils/language-names 1982s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/locale-variants/.dirs/home 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/locale-variants/.dirs/cache 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/locale-variants/.dirs/system-config2 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/locale-variants/.dirs/config 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/locale-variants/.dirs/system-data2 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/locale-variants/.dirs/data 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/locale-variants/.dirs/state 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/locale-variants/.dirs/runtime 1982s # Testing locale ‘en’ 1982s # Testing locale ‘sr@latin’ 1982s # Testing locale ‘fr_BE’ 1982s # Testing locale ‘sr_SR@latin’ 1982s # Testing locale ‘sr_SR@latin.UTF-8’ 1982s # Testing locale ‘sr@latin_invalid’ 1982s # Testing locale ‘sr.UTF-8@latin’ 1982s # Testing locale ‘sr.UTF-8_latin’ 1982s # Testing locale ‘sr.UTF-8@latin_invalid’ 1982s ok 2 /utils/locale-variants 1982s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/version/.dirs/home 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/version/.dirs/cache 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/version/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/version/.dirs/system-config2 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/version/.dirs/config 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/version/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/version/.dirs/system-data2 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/version/.dirs/data 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/version/.dirs/state 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/version/.dirs/runtime 1982s ok 3 /utils/version 1982s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/appname/.dirs/home 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/appname/.dirs/cache 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/appname/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/appname/.dirs/system-config2 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/appname/.dirs/config 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/appname/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/appname/.dirs/system-data2 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/appname/.dirs/data 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/appname/.dirs/state 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/appname/.dirs/runtime 1982s ok 4 /utils/appname 1982s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/prgname-thread-safety/.dirs/home 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/prgname-thread-safety/.dirs/cache 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/prgname-thread-safety/.dirs/system-config2 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/prgname-thread-safety/.dirs/config 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/prgname-thread-safety/.dirs/system-data2 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/prgname-thread-safety/.dirs/data 1982s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/prgname-thread-safety/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/prgname-thread-safety/.dirs/runtime 1983s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1983s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1983s ok 5 /utils/prgname-thread-safety 1983s # slow test /utils/prgname-thread-safety executed in 0.50 secs 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/tmpdir/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/tmpdir/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/tmpdir/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/tmpdir/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/tmpdir/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/tmpdir/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/tmpdir/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/tmpdir/.dirs/runtime 1983s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1983s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1983s Unable to clean up temporary directory /tmp/test_utils-c-99_WI1OK3/utils/tmpdir: No such file or directory 1983s ok 6 /utils/tmpdir 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/basic_bits/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/basic_bits/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/basic_bits/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/basic_bits/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/basic_bits/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/basic_bits/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/basic_bits/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/basic_bits/.dirs/runtime 1983s ok 7 /utils/basic_bits 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/bits/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/bits/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/bits/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/bits/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/bits/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/bits/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/bits/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/bits/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/bits/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/bits/.dirs/runtime 1983s ok 8 /utils/bits 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/swap/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/swap/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/swap/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/swap/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/swap/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/swap/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/swap/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/swap/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/swap/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/swap/.dirs/runtime 1983s ok 9 /utils/swap 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/find-program/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/find-program/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/find-program/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/find-program/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/find-program/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/find-program/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/find-program/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/find-program/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/find-program/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/find-program/.dirs/runtime 1983s ok 10 /utils/find-program 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/find-program-for-path/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/find-program-for-path/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/find-program-for-path/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/find-program-for-path/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/find-program-for-path/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/find-program-for-path/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/find-program-for-path/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/find-program-for-path/.dirs/runtime 1983s ok 11 /utils/find-program-for-path 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/debug/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/debug/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/debug/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/debug/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/debug/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/debug/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/debug/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/debug/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/debug/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/debug/.dirs/runtime 1983s Unable to clean up temporary directory /tmp/test_utils-c-99_WI1OK3/utils/debug: No such file or directory 1983s ok 12 /utils/debug 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/codeset/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/codeset/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/codeset/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/codeset/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/codeset/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/codeset/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/codeset/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/codeset/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/codeset/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/codeset/.dirs/runtime 1983s ok 13 /utils/codeset 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/codeset2/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/codeset2/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/codeset2/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/codeset2/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/codeset2/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/codeset2/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/codeset2/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/codeset2/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/codeset2/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/codeset2/.dirs/runtime 1983s Unable to clean up temporary directory /tmp/test_utils-c-99_WI1OK3/utils/codeset2: No such file or directory 1983s ok 14 /utils/codeset2 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/console-charset/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/console-charset/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/console-charset/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/console-charset/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/console-charset/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/console-charset/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/console-charset/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/console-charset/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/console-charset/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/console-charset/.dirs/runtime 1983s ok 15 /utils/console-charset 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/gettext/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/gettext/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/gettext/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/gettext/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/gettext/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/gettext/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/gettext/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/gettext/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/gettext/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/gettext/.dirs/runtime 1983s ok 16 /utils/gettext 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/username/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/username/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/username/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/username/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/username/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/username/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/username/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/username/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/username/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/username/.dirs/runtime 1983s ok 17 /utils/username 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/realname/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/realname/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/realname/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/realname/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/realname/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/realname/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/realname/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/realname/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/realname/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/realname/.dirs/runtime 1983s ok 18 /utils/realname 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/hostname/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/hostname/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/hostname/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/hostname/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/hostname/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/hostname/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/hostname/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/hostname/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/hostname/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/hostname/.dirs/runtime 1983s ok 19 /utils/hostname 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/os-info/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/os-info/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/os-info/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/os-info/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/os-info/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/os-info/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/os-info/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/os-info/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/os-info/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/os-info/.dirs/runtime 1983s # NAME: Ubuntu 1983s ok 20 /utils/os-info 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/.dirs/runtime 1983s ok 21 /utils/clear-pointer 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer-cast/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer-cast/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/clear-pointer-cast/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer-cast/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/clear-pointer-cast/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer-cast/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer-cast/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer-cast/.dirs/runtime 1983s ok 22 /utils/clear-pointer-cast 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/take-pointer/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/take-pointer/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/take-pointer/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/take-pointer/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/take-pointer/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/take-pointer/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/take-pointer/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/take-pointer/.dirs/runtime 1983s ok 23 /utils/take-pointer 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-source/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-source/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/clear-source/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/clear-source/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-source/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/clear-source/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/clear-source/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-source/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-source/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/clear-source/.dirs/runtime 1983s ok 24 /utils/clear-source 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/misc-mem/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/misc-mem/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/misc-mem/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/misc-mem/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/misc-mem/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/misc-mem/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/misc-mem/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/misc-mem/.dirs/runtime 1983s ok 25 /utils/misc-mem 1983s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/.dirs/home 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/.dirs/cache 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/.dirs/system-config2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/.dirs/config 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/.dirs/system-data2 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/.dirs/data 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/.dirs/state 1983s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/.dirs/runtime 1983s # /utils/aligned-mem summary: Aligned memory allocator 1983s # Alignment must not be zero 1983s # Alignment must be a power of two 1983s # Alignment must be a multiple of sizeof(void*) 1983s ok 26 /utils/aligned-mem 1984s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/free-sized/.dirs/home 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/free-sized/.dirs/cache 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/free-sized/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/free-sized/.dirs/system-config2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/free-sized/.dirs/config 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/free-sized/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/free-sized/.dirs/system-data2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/free-sized/.dirs/data 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/free-sized/.dirs/state 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/free-sized/.dirs/runtime 1984s # /utils/free-sized summary: Check that g_free_sized() works 1984s ok 27 /utils/free-sized 1984s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/nullify/.dirs/home 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/nullify/.dirs/cache 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/nullify/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/nullify/.dirs/system-config2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/nullify/.dirs/config 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/nullify/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/nullify/.dirs/system-data2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/nullify/.dirs/data 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/nullify/.dirs/state 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/nullify/.dirs/runtime 1984s ok 28 /utils/nullify 1984s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/atexit/.dirs/home 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/atexit/.dirs/cache 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/atexit/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/atexit/.dirs/system-config2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/atexit/.dirs/config 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/atexit/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/atexit/.dirs/system-data2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/atexit/.dirs/data 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/atexit/.dirs/state 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/atexit/.dirs/runtime 1984s Unable to clean up temporary directory /tmp/test_utils-c-99_WI1OK3/utils/atexit: No such file or directory 1984s ok 29 /utils/atexit 1984s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/check-setuid/.dirs/home 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/check-setuid/.dirs/cache 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/check-setuid/.dirs/system-config2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/check-setuid/.dirs/config 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/check-setuid/.dirs/system-data2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/check-setuid/.dirs/data 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/check-setuid/.dirs/state 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/check-setuid/.dirs/runtime 1984s ok 30 /utils/check-setuid 1984s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/int-limits/.dirs/home 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/int-limits/.dirs/cache 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/int-limits/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/int-limits/.dirs/system-config2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/int-limits/.dirs/config 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/int-limits/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/int-limits/.dirs/system-data2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/int-limits/.dirs/data 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/int-limits/.dirs/state 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/int-limits/.dirs/runtime 1984s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1984s ok 31 /utils/int-limits 1984s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-list/.dirs/home 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-list/.dirs/cache 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/clear-list/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/clear-list/.dirs/system-config2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-list/.dirs/config 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/clear-list/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/clear-list/.dirs/system-data2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-list/.dirs/data 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-list/.dirs/state 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/clear-list/.dirs/runtime 1984s ok 32 /utils/clear-list 1984s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-slist/.dirs/home 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-slist/.dirs/cache 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/clear-slist/.dirs/system-config2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-slist/.dirs/config 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/clear-slist/.dirs/system-data2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-slist/.dirs/data 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-slist/.dirs/state 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/clear-slist/.dirs/runtime 1984s ok 33 /utils/clear-slist 1984s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/steal-handle-id/.dirs/home 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/steal-handle-id/.dirs/cache 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/steal-handle-id/.dirs/system-config2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/steal-handle-id/.dirs/config 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/steal-handle-id/.dirs/system-data2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/steal-handle-id/.dirs/data 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/steal-handle-id/.dirs/state 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/steal-handle-id/.dirs/runtime 1984s ok 34 /utils/steal-handle-id 1984s # Start of user-special-dirs tests 1984s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/desktop/.dirs/home 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/desktop/.dirs/cache 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/desktop/.dirs/system-config2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/desktop/.dirs/config 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/desktop/.dirs/system-data2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/desktop/.dirs/data 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/desktop/.dirs/state 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/desktop/.dirs/runtime 1984s ok 35 /utils/user-special-dirs/desktop 1984s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/load-unlocked/.dirs/home 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/load-unlocked/.dirs/cache 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/load-unlocked/.dirs/config 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/load-unlocked/.dirs/data 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/load-unlocked/.dirs/state 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/load-unlocked/.dirs/runtime 1984s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 1984s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 1984s Unable to clean up temporary directory /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/load-unlocked: No such file or directory 1984s ok 36 /utils/user-special-dirs/load-unlocked 1984s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/reload-leaks/.dirs/home 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/reload-leaks/.dirs/cache 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/reload-leaks/.dirs/config 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/reload-leaks/.dirs/data 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/reload-leaks/.dirs/state 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/reload-leaks/.dirs/runtime 1984s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 1984s Unable to clean up temporary directory /tmp/test_utils-c-99_WI1OK3/utils/user-special-dirs/reload-leaks: No such file or directory 1984s ok 37 /utils/user-special-dirs/reload-leaks 1984s # End of user-special-dirs tests 1984s # Start of clear-pointer tests 1984s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/side-effects/.dirs/home 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/side-effects/.dirs/cache 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/side-effects/.dirs/system-config2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/side-effects/.dirs/config 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/side-effects/.dirs/system-data2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/side-effects/.dirs/data 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/side-effects/.dirs/state 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/clear-pointer/side-effects/.dirs/runtime 1984s ok 38 /utils/clear-pointer/side-effects 1984s # End of clear-pointer tests 1984s # Start of aligned-mem tests 1984s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/alignment/.dirs/home 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/alignment/.dirs/cache 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/alignment/.dirs/system-config2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/alignment/.dirs/config 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/alignment/.dirs/system-data2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/alignment/.dirs/data 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/alignment/.dirs/state 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/alignment/.dirs/runtime 1984s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1984s ok 39 /utils/aligned-mem/alignment 1984s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/zeroed/.dirs/home 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/zeroed/.dirs/cache 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/zeroed/.dirs/system-config2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/zeroed/.dirs/config 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/zeroed/.dirs/system-data2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/zeroed/.dirs/data 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/zeroed/.dirs/state 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/zeroed/.dirs/runtime 1984s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1984s ok 40 /utils/aligned-mem/zeroed 1984s ok - glib/utils-c-99.test 1984s # Running test: glib/g-file.test 1984s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/free-sized/.dirs/home 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/free-sized/.dirs/cache 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/free-sized/.dirs/system-config2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/free-sized/.dirs/config 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/free-sized/.dirs/system-data2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/free-sized/.dirs/data 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/free-sized/.dirs/state 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_WI1OK3/utils/aligned-mem/free-sized/.dirs/runtime 1984s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1984s ok 41 /utils/aligned-mem/free-sized 1984s # Start of subprocess tests 1984s # End of subprocess tests 1984s # End of aligned-mem tests 1984s # End of utils tests 1984s TAP version 14 1984s # random seed: R02Sbe6ef99bf404eeb4a22c3e23a7c1d961 1984s 1..8 1984s # Start of g-file tests 1984s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1984s ok 1 /g-file/test_g_file_new_null 1984s ok 2 /g-file/test_g_file_new_for_path 1984s ok 3 /g-file/test_g_file_new_for_uri 1984s ok 4 /g-file/test_g_file_dup 1984s ok 5 /g-file/test_g_file_get_parse_name_utf8 1984s file:///tmp/test-tmp-glib_g-file.test-RPR7J3 1984s file:///tmp 1984s file:///tmp 1984s file:////UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1984s file:///UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1984s ok 6 /g-file/test_g_file_new_for_commandline_arg 1984s /dir1 /dir1/dir2/dir3/ 1984s /dir1/ /dir1/dir2/dir3/ 1984s /dir1 /dir1/dir2/dir3 1984s /dir1/ /dir1/dir2/dir3 1984s /tmp/ /something/ 1984s /dir1/dir2 /dir1/ 1984s //dir1/new //dir1/new/dir2/dir3 1984s /dir/UTF-8 příliš žluťoučký kůň /dir/UTF-8 příliš žluťoučký kůň/dir2 1984s file:///dir1 file:///dir1/dir2/dir3/ 1984s file:///dir1/ file:///dir1/dir2/dir3/ 1984s file:///dir1 file:///dir1/dir2/dir3 1984s file:///dir1/ file:///dir1/dir2/dir3 1984s file:///tmp/ file:///something/ 1984s file:///dir1/dir2 file:///dir1/ 1984s file:////dir1/new file:////dir1/new/dir2/dir3 1984s 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 1984s ok 7 /g-file/test_g_file_has_prefix 1984s ok 8 /g-file/test_g_file_get_parent_child 1984s # End of g-file tests 1984s ok - glib/g-file.test 1984s # Running test: glib/atomic-c-89.test 1984s TAP version 14 1984s # random seed: R02S02612ca1b53a90fee9b31bda6d855e11 1984s 1..2 1984s # Start of atomic tests 1984s ok 1 /atomic/types 1985s ok 2 /atomic/threaded 1985s # End of atomic tests 1985s ok - glib/atomic-c-89.test 1985s # Running test: glib/data-input-stream.test 1985s TAP version 14 1985s # random seed: R02S0844739502d0a3a6157521fa5e38bb4a 1985s 1..10 1985s # Start of data-input-stream tests 1985s ok 1 /data-input-stream/basic 1985s ok 2 /data-input-stream/read-lines-LF 1985s ok 3 /data-input-stream/read-lines-LF-valid-utf8 1985s ok 4 /data-input-stream/read-lines-LF-invalid-utf8 1985s ok 5 /data-input-stream/read-lines-CR 1985s ok 6 /data-input-stream/read-lines-CR-LF 1986s ok 7 /data-input-stream/read-lines-any 1986s ok 8 /data-input-stream/read-until 1986s # Test vector 0: part1 # part2 $ part3 ? part4 ? and #$?^ 1986s # Test vector 1: {"key": "value"}? and ? 1986s ok 9 /data-input-stream/read-upto 1986s ok - glib/data-input-stream.test 1986s # Running test: glib/strfuncs.test 1986s ok 10 /data-input-stream/read-int 1986s # slow test /data-input-stream/read-int executed in 0.60 secs 1986s # End of data-input-stream tests 1986s ok - glib/strfuncs.test 1986s TAP version 14 1986s # random seed: R02Sa049fe0390984a07607b0421e8a227e1 1986s 1..51 1986s # Start of strfuncs tests 1986s ok 1 /strfuncs/ascii-strcasecmp 1986s ok 2 /strfuncs/ascii_strdown 1986s ok 3 /strfuncs/ascii_strdup 1986s ok 4 /strfuncs/ascii_strtod 1986s ok 5 /strfuncs/bounds-check 1986s ok 6 /strfuncs/has-prefix 1986s ok 7 /strfuncs/has-prefix-macro 1986s ok 8 /strfuncs/has-suffix 1986s ok 9 /strfuncs/has-suffix-macro 1986s ok 10 /strfuncs/memdup 1986s ok 11 /strfuncs/memdup2 1986s ok 12 /strfuncs/set_str 1986s ok 13 /strfuncs/stpcpy 1986s ok 14 /strfuncs/str_match_string 1986s ok 15 /strfuncs/str_tokenize_and_fold 1986s ok 16 /strfuncs/strcanon 1986s ok 17 /strfuncs/strchomp 1986s ok 18 /strfuncs/strchug 1986s ok 19 /strfuncs/strcompress-strescape 1986s ok 20 /strfuncs/strconcat 1986s ok 21 /strfuncs/strdelimit 1986s ok 22 /strfuncs/strdup 1986s ok 23 /strfuncs/strdup-printf 1986s ok 24 /strfuncs/strdupv 1986s ok 25 /strfuncs/strerror 1986s ok 26 /strfuncs/strip-context 1986s ok 27 /strfuncs/strjoin 1986s ok 28 /strfuncs/strjoinv 1986s ok 29 /strfuncs/strlcat 1986s ok 30 /strfuncs/strlcpy 1986s ok 31 /strfuncs/strncasecmp 1986s ok 32 /strfuncs/strndup 1986s ok 33 /strfuncs/strnfill 1986s ok 34 /strfuncs/strreverse 1986s ok 35 /strfuncs/strsignal 1986s ok 36 /strfuncs/strsplit 1986s ok 37 /strfuncs/strsplit-set 1986s ok 38 /strfuncs/strstr 1986s ok 39 /strfuncs/strtod 1986s ok 40 /strfuncs/strtoull-strtoll 1986s ok 41 /strfuncs/strup 1986s ok 42 /strfuncs/strv-contains 1986s ok 43 /strfuncs/strv-equal 1986s ok 44 /strfuncs/strv-length 1986s ok 45 /strfuncs/test-is-to-digit 1986s ok 46 /strfuncs/transliteration 1986s # /strfuncs/str-equal summary: Test macro and function forms of g_str_equal() 1986s ok 47 /strfuncs/str-equal 1986s ok 48 /strfuncs/str-is-ascii 1986s # Start of ascii-string-to-num tests 1986s ok 49 /strfuncs/ascii-string-to-num/pathological 1986s ok 50 /strfuncs/ascii-string-to-num/usual 1986s # End of ascii-string-to-num tests 1986s # Start of strdup tests 1986s ok 51 /strfuncs/strdup/inline 1986s # End of strdup tests 1986s # End of strfuncs tests 1986s # Running test: glib/thumbnail-verification.test 1986s TAP version 14 1986s # random seed: R02S07d5546254737b134ac894bab474e662 1986s 1..1 1986s # Start of png-thumbs tests 1986s ok 1 /png-thumbs/validity 1986s # End of png-thumbs tests 1986s ok - glib/thumbnail-verification.test 1986s # Running test: glib/cancellable.test 1986s TAP version 14 1986s # random seed: R02Se97942b7efc5eb286719b596d37ad59c 1986s 1..18 1986s # Start of cancellable tests 1986s ok 1 /cancellable/multiple-concurrent # SKIP Not running timing heavy test 1986s ok 2 /cancellable/null 1986s ok 3 /cancellable/connect-data-is-destroyed-on-disconnect-and-dispose 1986s # /cancellable/connect-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 1986s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 1986s ok 4 /cancellable/connect-to-disposing-callback 1986s ok 5 /cancellable/connect-cancelled-data-is-destroyed 1986s # Toggle reference callback for GCancellable (0x2aa1ea57c00), last: 1 1986s # Toggle reference callback for GCancellable (0x2aa1ea57c00), last: 0 1986s # Toggle reference callback for GCancellable (0x2aa1ea57c00), last: 1 1986s ok 6 /cancellable/connect-to-disposing-callback-with-toggle-reference 1986s # /cancellable/connect-cancelled-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 1986s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 1986s ok 7 /cancellable/connect-cancelled-to-disposing-callback 1986s ok 8 /cancellable/connect-cancelled-with-destroy-func-disposing-cancellable 1986s # Toggle reference callback for GCancellable (0x2aa1ea57c00), last: 1 1986s # Toggle reference callback for GCancellable (0x2aa1ea57c00), last: 0 1986s # Toggle reference callback for GCancellable (0x2aa1ea57c00), last: 1 1986s # Toggle reference callback for GCancellable (0x2aa1ea57c00), last: 0 1986s # Toggle reference callback for GCancellable (0x2aa1ea57c00), last: 1 1986s ok 9 /cancellable/connect-cancelled-to-disposing-callback-with-toggle-reference 1986s # /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 1987s ok 10 /cancellable/disconnect-on-cancelled-callback-hangs 1987s # /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 1987s ok 11 /cancellable/resets-on-cancel-callback-hangs 1987s ok 12 /cancellable/poll-fd 1987s # /cancellable/poll-fd-cancelled summary: Tests that cancellation wakes up a pollable FD on creation 1987s ok 13 /cancellable/poll-fd-cancelled 1987s # /cancellable/poll-fd-cancelled-threaded summary: Tests that a cancellation wakes up a pollable FD 1987s # Executing: glib/cancellable.test 1987s ok 14 /cancellable/poll-fd-cancelled-threaded 1987s # /cancellable/cancel-reset-races summary: Tests threads racing for cancelling and resetting a GCancellable 1987s ok 15 /cancellable/cancel-reset-races 1987s # /cancellable/cancel-reset-connect-races summary: Tests threads racing for cancelling, connecting and disconnecting and resetting a GCancellable 1987s not ok 16 /cancellable/cancel-reset-connect-races # TODO We didn't really checked if callbacks is called properly 1987s # End of cancellable tests 1987s # Start of cancellable-source tests 1987s # /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) 1987s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1841 1990s ok - glib/cancellable.test 1990s # Running test: glib/srvtarget.test 1990s ok 17 /cancellable-source/threaded-dispose 1990s # slow test /cancellable-source/threaded-dispose executed in 2.67 secs 1990s # /cancellable-source/can-be-fired-multiple-times summary: Test a cancellable source callback can be called multiple times 1990s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/774 1990s ok 18 /cancellable-source/can-be-fired-multiple-times 1990s # End of cancellable-source tests 1990s TAP version 14 1990s # random seed: R02S9bb33e24c14db5752dfe68097969ae56 1990s 1..1 1990s # Start of srvtarget tests 1992s # Executing: glib/srvtarget.test 1995s ok 1 /srvtarget/srv-target-ordering 1995s # slow test /srvtarget/srv-target-ordering executed in 5.26 secs 1995s ok - glib/srvtarget.test 1995s # End of srvtarget tests 1995s # Running test: glib/portal-support-env-var.test 1995s TAP version 14 1995s # random seed: R02Se018f7c8214d6c5f441cb4faaa1cce82 1995s 1..1 1995s # Start of portal-support tests 1995s ok 1 /portal-support/env-var 1995s # End of portal-support tests 1995s ok - glib/portal-support-env-var.test 1995s # Running test: glib/file.test 1995s TAP version 14 1995s # random seed: R02S616bc36108c7c37cfd4b93d99b239aab 1995s 1..55 1995s # Start of file tests 1995s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/basic/.dirs/home 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/basic/.dirs/cache 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/basic/.dirs/system-config1:/tmp/test_file_VTCNK3/file/basic/.dirs/system-config2 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/basic/.dirs/config 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/basic/.dirs/system-data1:/tmp/test_file_VTCNK3/file/basic/.dirs/system-data2 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/basic/.dirs/data 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/basic/.dirs/state 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/basic/.dirs/runtime 1996s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1996s ok 1 /file/basic 1996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/build-filename/.dirs/home 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/build-filename/.dirs/cache 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/build-filename/.dirs/system-config1:/tmp/test_file_VTCNK3/file/build-filename/.dirs/system-config2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/build-filename/.dirs/config 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/build-filename/.dirs/system-data1:/tmp/test_file_VTCNK3/file/build-filename/.dirs/system-data2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/build-filename/.dirs/data 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/build-filename/.dirs/state 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/build-filename/.dirs/runtime 1996s ok 2 /file/build-filename 1996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/build-filenamev/.dirs/home 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/build-filenamev/.dirs/cache 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/build-filenamev/.dirs/system-config1:/tmp/test_file_VTCNK3/file/build-filenamev/.dirs/system-config2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/build-filenamev/.dirs/config 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/build-filenamev/.dirs/system-data1:/tmp/test_file_VTCNK3/file/build-filenamev/.dirs/system-data2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/build-filenamev/.dirs/data 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/build-filenamev/.dirs/state 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/build-filenamev/.dirs/runtime 1996s ok 3 /file/build-filenamev 1996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/parent/.dirs/home 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/parent/.dirs/cache 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/parent/.dirs/system-config1:/tmp/test_file_VTCNK3/file/parent/.dirs/system-config2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/parent/.dirs/config 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/parent/.dirs/system-data1:/tmp/test_file_VTCNK3/file/parent/.dirs/system-data2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/parent/.dirs/data 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/parent/.dirs/state 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/parent/.dirs/runtime 1996s ok 4 /file/parent 1996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/child/.dirs/home 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/child/.dirs/cache 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/child/.dirs/system-config1:/tmp/test_file_VTCNK3/file/child/.dirs/system-config2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/child/.dirs/config 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/child/.dirs/system-data1:/tmp/test_file_VTCNK3/file/child/.dirs/system-data2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/child/.dirs/data 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/child/.dirs/state 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/child/.dirs/runtime 1996s ok 5 /file/child 1996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/empty-path/.dirs/home 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/empty-path/.dirs/cache 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/empty-path/.dirs/system-config1:/tmp/test_file_VTCNK3/file/empty-path/.dirs/system-config2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/empty-path/.dirs/config 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/empty-path/.dirs/system-data1:/tmp/test_file_VTCNK3/file/empty-path/.dirs/system-data2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/empty-path/.dirs/data 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/empty-path/.dirs/state 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/empty-path/.dirs/runtime 1996s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2328 1996s # /file/empty-path summary: Check that creating a file with an empty path results in errors 1996s ok 6 /file/empty-path 1996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/type/.dirs/home 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/type/.dirs/cache 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/type/.dirs/system-config1:/tmp/test_file_VTCNK3/file/type/.dirs/system-config2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/type/.dirs/config 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/type/.dirs/system-data1:/tmp/test_file_VTCNK3/file/type/.dirs/system-data2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/type/.dirs/data 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/type/.dirs/state 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/type/.dirs/runtime 1996s ok 7 /file/type 1996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/parse-name/.dirs/home 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/parse-name/.dirs/cache 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/parse-name/.dirs/system-config1:/tmp/test_file_VTCNK3/file/parse-name/.dirs/system-config2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/parse-name/.dirs/config 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/parse-name/.dirs/system-data1:/tmp/test_file_VTCNK3/file/parse-name/.dirs/system-data2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/parse-name/.dirs/data 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/parse-name/.dirs/state 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/parse-name/.dirs/runtime 1996s ok 8 /file/parse-name 1996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/replace-load/.dirs/home 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/replace-load/.dirs/cache 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/replace-load/.dirs/system-config1:/tmp/test_file_VTCNK3/file/replace-load/.dirs/system-config2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/replace-load/.dirs/config 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/replace-load/.dirs/system-data1:/tmp/test_file_VTCNK3/file/replace-load/.dirs/system-data2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/replace-load/.dirs/data 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/replace-load/.dirs/state 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/replace-load/.dirs/runtime 1996s ok 9 /file/replace-load 1996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/replace-cancel/.dirs/home 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/replace-cancel/.dirs/cache 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/replace-cancel/.dirs/system-config1:/tmp/test_file_VTCNK3/file/replace-cancel/.dirs/system-config2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/replace-cancel/.dirs/config 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/replace-cancel/.dirs/system-data1:/tmp/test_file_VTCNK3/file/replace-cancel/.dirs/system-data2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/replace-cancel/.dirs/data 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/replace-cancel/.dirs/state 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/replace-cancel/.dirs/runtime 1996s # Bug Reference: https://bugzilla.gnome.org/629301 1996s ok 10 /file/replace-cancel 1996s # slow test /file/replace-cancel executed in 0.83 secs 1996s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/replace-symlink/.dirs/home 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/replace-symlink/.dirs/cache 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/replace-symlink/.dirs/system-config1:/tmp/test_file_VTCNK3/file/replace-symlink/.dirs/system-config2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/replace-symlink/.dirs/config 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/replace-symlink/.dirs/system-data1:/tmp/test_file_VTCNK3/file/replace-symlink/.dirs/system-data2 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/replace-symlink/.dirs/data 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/replace-symlink/.dirs/state 1996s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/replace-symlink/.dirs/runtime 1996s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2325 1996s # /file/replace-symlink summary: Test that G_FILE_CREATE_REPLACE_DESTINATION doesn’t follow symlinks 1996s # Using temporary directory /tmp/test_file_VTCNK3/g_file_replace_symlink_CUPNK3 1997s ok 11 /file/replace-symlink 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/async-new-tmp/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/async-new-tmp/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/async-new-tmp/.dirs/system-config1:/tmp/test_file_VTCNK3/file/async-new-tmp/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/async-new-tmp/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/async-new-tmp/.dirs/system-data1:/tmp/test_file_VTCNK3/file/async-new-tmp/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/async-new-tmp/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/async-new-tmp/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/async-new-tmp/.dirs/runtime 1997s ok 12 /file/async-new-tmp 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/async-new-tmp-dir/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/async-new-tmp-dir/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/async-new-tmp-dir/.dirs/system-config1:/tmp/test_file_VTCNK3/file/async-new-tmp-dir/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/async-new-tmp-dir/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/async-new-tmp-dir/.dirs/system-data1:/tmp/test_file_VTCNK3/file/async-new-tmp-dir/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/async-new-tmp-dir/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/async-new-tmp-dir/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/async-new-tmp-dir/.dirs/runtime 1997s ok 13 /file/async-new-tmp-dir 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/async-delete/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/async-delete/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/async-delete/.dirs/system-config1:/tmp/test_file_VTCNK3/file/async-delete/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/async-delete/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/async-delete/.dirs/system-data1:/tmp/test_file_VTCNK3/file/async-delete/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/async-delete/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/async-delete/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/async-delete/.dirs/runtime 1997s ok 14 /file/async-delete 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/async-make-symlink/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/async-make-symlink/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/async-make-symlink/.dirs/system-config1:/tmp/test_file_VTCNK3/file/async-make-symlink/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/async-make-symlink/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/async-make-symlink/.dirs/system-data1:/tmp/test_file_VTCNK3/file/async-make-symlink/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/async-make-symlink/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/async-make-symlink/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/async-make-symlink/.dirs/runtime 1997s ok 15 /file/async-make-symlink 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/copy-preserve-mode/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/copy-preserve-mode/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/copy-preserve-mode/.dirs/system-config1:/tmp/test_file_VTCNK3/file/copy-preserve-mode/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/copy-preserve-mode/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/copy-preserve-mode/.dirs/system-data1:/tmp/test_file_VTCNK3/file/copy-preserve-mode/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/copy-preserve-mode/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/copy-preserve-mode/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/copy-preserve-mode/.dirs/runtime 1997s # Current umask: 2 1997s # Vector 0 1997s # Vector 1 1997s # Vector 2 1997s # Vector 3 1997s # Vector 4 1997s # Vector 5 1997s # Vector 6 1997s # Vector 7 1997s # Vector 8 1997s # Vector 9 1997s # Vector 10 1997s ok 16 /file/copy-preserve-mode 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/copy-async-with-closures/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/copy-async-with-closures/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/copy-async-with-closures/.dirs/system-config1:/tmp/test_file_VTCNK3/file/copy-async-with-closures/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/copy-async-with-closures/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/copy-async-with-closures/.dirs/system-data1:/tmp/test_file_VTCNK3/file/copy-async-with-closures/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/copy-async-with-closures/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/copy-async-with-closures/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/copy-async-with-closures/.dirs/runtime 1997s ok 17 /file/copy-async-with-closures 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/measure/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/measure/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/measure/.dirs/system-config1:/tmp/test_file_VTCNK3/file/measure/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/measure/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/measure/.dirs/system-data1:/tmp/test_file_VTCNK3/file/measure/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/measure/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/measure/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/measure/.dirs/runtime 1997s ok 18 /file/measure 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/measure-async/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/measure-async/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/measure-async/.dirs/system-config1:/tmp/test_file_VTCNK3/file/measure-async/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/measure-async/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/measure-async/.dirs/system-data1:/tmp/test_file_VTCNK3/file/measure-async/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/measure-async/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/measure-async/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/measure-async/.dirs/runtime 1997s ok 19 /file/measure-async 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/load-bytes/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/load-bytes/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/load-bytes/.dirs/system-config1:/tmp/test_file_VTCNK3/file/load-bytes/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/load-bytes/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/load-bytes/.dirs/system-data1:/tmp/test_file_VTCNK3/file/load-bytes/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/load-bytes/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/load-bytes/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/load-bytes/.dirs/runtime 1997s ok 20 /file/load-bytes 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/load-bytes-async/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/load-bytes-async/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/load-bytes-async/.dirs/system-config1:/tmp/test_file_VTCNK3/file/load-bytes-async/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/load-bytes-async/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/load-bytes-async/.dirs/system-data1:/tmp/test_file_VTCNK3/file/load-bytes-async/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/load-bytes-async/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/load-bytes-async/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/load-bytes-async/.dirs/runtime 1997s ok 21 /file/load-bytes-async 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/load-bytes-4gb/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/load-bytes-4gb/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/load-bytes-4gb/.dirs/system-config1:/tmp/test_file_VTCNK3/file/load-bytes-4gb/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/load-bytes-4gb/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/load-bytes-4gb/.dirs/system-data1:/tmp/test_file_VTCNK3/file/load-bytes-4gb/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/load-bytes-4gb/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/load-bytes-4gb/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/load-bytes-4gb/.dirs/runtime 1997s ok 22 /file/load-bytes-4gb # SKIP Skipping slow >4GB file test 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/load-contents-4gb/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/load-contents-4gb/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/load-contents-4gb/.dirs/system-config1:/tmp/test_file_VTCNK3/file/load-contents-4gb/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/load-contents-4gb/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/load-contents-4gb/.dirs/system-data1:/tmp/test_file_VTCNK3/file/load-contents-4gb/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/load-contents-4gb/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/load-contents-4gb/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/load-contents-4gb/.dirs/runtime 1997s ok 23 /file/load-contents-4gb # SKIP Skipping slow >4GB file test 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/load-contents-4gb-async/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/load-contents-4gb-async/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/load-contents-4gb-async/.dirs/system-config1:/tmp/test_file_VTCNK3/file/load-contents-4gb-async/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/load-contents-4gb-async/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/load-contents-4gb-async/.dirs/system-data1:/tmp/test_file_VTCNK3/file/load-contents-4gb-async/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/load-contents-4gb-async/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/load-contents-4gb-async/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/load-contents-4gb-async/.dirs/runtime 1997s ok 24 /file/load-contents-4gb-async # SKIP Skipping slow >4GB file test 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/writev/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/writev/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/writev/.dirs/system-config1:/tmp/test_file_VTCNK3/file/writev/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/writev/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/writev/.dirs/system-data1:/tmp/test_file_VTCNK3/file/writev/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/writev/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/writev/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/writev/.dirs/runtime 1997s ok 25 /file/writev 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/build-attribute-list-for-copy/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/build-attribute-list-for-copy/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/build-attribute-list-for-copy/.dirs/system-config1:/tmp/test_file_VTCNK3/file/build-attribute-list-for-copy/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/build-attribute-list-for-copy/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/build-attribute-list-for-copy/.dirs/system-data1:/tmp/test_file_VTCNK3/file/build-attribute-list-for-copy/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/build-attribute-list-for-copy/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/build-attribute-list-for-copy/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/build-attribute-list-for-copy/.dirs/runtime 1997s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,unix::mode,xattr::* 1997s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,xattr::* 1997s # 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::* 1997s # 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::* 1997s # Attributes for copy: standard::size,time::access,time::access-nsec,time::access-usec,unix::gid,unix::mode,unix::uid,xattr::*,xattr-sys::* 1997s # Attributes for copy: standard::size,xattr::* 1997s # Attributes for copy: standard::size,unix::mode,xattr::* 1997s ok 26 /file/build-attribute-list-for-copy 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/move_async/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/move_async/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/move_async/.dirs/system-config1:/tmp/test_file_VTCNK3/file/move_async/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/move_async/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/move_async/.dirs/system-data1:/tmp/test_file_VTCNK3/file/move_async/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/move_async/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/move_async/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/move_async/.dirs/runtime 1997s ok 27 /file/move_async 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/move-async-with-closures/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/move-async-with-closures/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/move-async-with-closures/.dirs/system-config1:/tmp/test_file_VTCNK3/file/move-async-with-closures/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/move-async-with-closures/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/move-async-with-closures/.dirs/system-data1:/tmp/test_file_VTCNK3/file/move-async-with-closures/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/move-async-with-closures/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/move-async-with-closures/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/move-async-with-closures/.dirs/runtime 1997s ok 28 /file/move-async-with-closures 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/query-zero-length-content-type/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/query-zero-length-content-type/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/query-zero-length-content-type/.dirs/system-config1:/tmp/test_file_VTCNK3/file/query-zero-length-content-type/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/query-zero-length-content-type/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/query-zero-length-content-type/.dirs/system-data1:/tmp/test_file_VTCNK3/file/query-zero-length-content-type/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/query-zero-length-content-type/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/query-zero-length-content-type/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/query-zero-length-content-type/.dirs/runtime 1997s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755795 1997s # /file/query-zero-length-content-type summary: empty files should always be considered application/x-zerosize 1997s ok 29 /file/query-zero-length-content-type 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/query-default-handler-file/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/query-default-handler-file/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/query-default-handler-file/.dirs/system-config1:/tmp/test_file_VTCNK3/file/query-default-handler-file/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/query-default-handler-file/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/query-default-handler-file/.dirs/system-data1:/tmp/test_file_VTCNK3/file/query-default-handler-file/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/query-default-handler-file/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/query-default-handler-file/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/query-default-handler-file/.dirs/runtime 1997s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_VTCNK3/file/query-default-handler-file/.dirs/data/applications 1997s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_VTCNK3/file/query-default-handler-file/.dirs/config 1997s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_VTCNK3/file/query-default-handler-file/.dirs/config 1997s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_VTCNK3/file/query-default-handler-file/.dirs/config 1997s ok 30 /file/query-default-handler-file 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/query-default-handler-file-async/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/query-default-handler-file-async/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/query-default-handler-file-async/.dirs/system-config1:/tmp/test_file_VTCNK3/file/query-default-handler-file-async/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/query-default-handler-file-async/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/query-default-handler-file-async/.dirs/system-data1:/tmp/test_file_VTCNK3/file/query-default-handler-file-async/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/query-default-handler-file-async/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/query-default-handler-file-async/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/query-default-handler-file-async/.dirs/runtime 1997s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_VTCNK3/file/query-default-handler-file-async/.dirs/data/applications 1997s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_VTCNK3/file/query-default-handler-file-async/.dirs/config 1997s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_VTCNK3/file/query-default-handler-file/.dirs/config to /tmp/test_file_VTCNK3/file/query-default-handler-file-async/.dirs/config 1997s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_VTCNK3/file/query-default-handler-file-async/.dirs/config 1997s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_VTCNK3/file/query-default-handler-file-async/.dirs/config 1997s ok 31 /file/query-default-handler-file-async 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/query-default-handler-uri/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/query-default-handler-uri/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/query-default-handler-uri/.dirs/system-config1:/tmp/test_file_VTCNK3/file/query-default-handler-uri/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/query-default-handler-uri/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/query-default-handler-uri/.dirs/system-data1:/tmp/test_file_VTCNK3/file/query-default-handler-uri/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/query-default-handler-uri/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/query-default-handler-uri/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/query-default-handler-uri/.dirs/runtime 1997s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_VTCNK3/file/query-default-handler-uri/.dirs/data/applications 1997s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_VTCNK3/file/query-default-handler-uri/.dirs/config 1997s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_VTCNK3/file/query-default-handler-file-async/.dirs/config to /tmp/test_file_VTCNK3/file/query-default-handler-uri/.dirs/config 1997s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_VTCNK3/file/query-default-handler-uri/.dirs/config 1997s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_VTCNK3/file/query-default-handler-uri/.dirs/config 1997s ok 32 /file/query-default-handler-uri 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/query-default-handler-uri-async/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/query-default-handler-uri-async/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/query-default-handler-uri-async/.dirs/system-config1:/tmp/test_file_VTCNK3/file/query-default-handler-uri-async/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/query-default-handler-uri-async/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/query-default-handler-uri-async/.dirs/system-data1:/tmp/test_file_VTCNK3/file/query-default-handler-uri-async/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/query-default-handler-uri-async/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/query-default-handler-uri-async/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/query-default-handler-uri-async/.dirs/runtime 1997s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_VTCNK3/file/query-default-handler-uri-async/.dirs/data/applications 1997s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_VTCNK3/file/query-default-handler-uri-async/.dirs/config 1997s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_VTCNK3/file/query-default-handler-uri/.dirs/config to /tmp/test_file_VTCNK3/file/query-default-handler-uri-async/.dirs/config 1997s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_VTCNK3/file/query-default-handler-uri-async/.dirs/config 1997s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_VTCNK3/file/query-default-handler-uri-async/.dirs/config 1997s ok 33 /file/query-default-handler-uri-async 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/enumerator-cancellation/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/enumerator-cancellation/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/enumerator-cancellation/.dirs/system-config1:/tmp/test_file_VTCNK3/file/enumerator-cancellation/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/enumerator-cancellation/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/enumerator-cancellation/.dirs/system-data1:/tmp/test_file_VTCNK3/file/enumerator-cancellation/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/enumerator-cancellation/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/enumerator-cancellation/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/enumerator-cancellation/.dirs/runtime 1997s ok 34 /file/enumerator-cancellation 1997s # Start of async-create-delete tests 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/async-create-delete/0/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/0/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/async-create-delete/0/.dirs/system-config1:/tmp/test_file_VTCNK3/file/async-create-delete/0/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/0/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/async-create-delete/0/.dirs/system-data1:/tmp/test_file_VTCNK3/file/async-create-delete/0/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/0/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/0/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/async-create-delete/0/.dirs/runtime 1997s # Executing: glib/file.test 1997s ok 35 /file/async-create-delete/0 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/async-create-delete/1/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/1/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/async-create-delete/1/.dirs/system-config1:/tmp/test_file_VTCNK3/file/async-create-delete/1/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/1/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/async-create-delete/1/.dirs/system-data1:/tmp/test_file_VTCNK3/file/async-create-delete/1/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/1/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/1/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/async-create-delete/1/.dirs/runtime 1997s ok 36 /file/async-create-delete/1 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/async-create-delete/10/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/10/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/async-create-delete/10/.dirs/system-config1:/tmp/test_file_VTCNK3/file/async-create-delete/10/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/10/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/async-create-delete/10/.dirs/system-data1:/tmp/test_file_VTCNK3/file/async-create-delete/10/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/10/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/10/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/async-create-delete/10/.dirs/runtime 1998s ok 37 /file/async-create-delete/10 1998s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/async-create-delete/25/.dirs/home 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/25/.dirs/cache 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/async-create-delete/25/.dirs/system-config1:/tmp/test_file_VTCNK3/file/async-create-delete/25/.dirs/system-config2 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/25/.dirs/config 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/async-create-delete/25/.dirs/system-data1:/tmp/test_file_VTCNK3/file/async-create-delete/25/.dirs/system-data2 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/25/.dirs/data 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/25/.dirs/state 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/async-create-delete/25/.dirs/runtime 1998s ok 38 /file/async-create-delete/25 1998s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/async-create-delete/4096/.dirs/home 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/4096/.dirs/cache 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/async-create-delete/4096/.dirs/system-config1:/tmp/test_file_VTCNK3/file/async-create-delete/4096/.dirs/system-config2 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/4096/.dirs/config 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/async-create-delete/4096/.dirs/system-data1:/tmp/test_file_VTCNK3/file/async-create-delete/4096/.dirs/system-data2 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/4096/.dirs/data 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/async-create-delete/4096/.dirs/state 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/async-create-delete/4096/.dirs/runtime 1998s ok 39 /file/async-create-delete/4096 1998s # End of async-create-delete tests 1998s # Start of replace-symlink tests 1998s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/replace-symlink/using-etag/.dirs/home 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/replace-symlink/using-etag/.dirs/cache 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/replace-symlink/using-etag/.dirs/system-config1:/tmp/test_file_VTCNK3/file/replace-symlink/using-etag/.dirs/system-config2 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/replace-symlink/using-etag/.dirs/config 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/replace-symlink/using-etag/.dirs/system-data1:/tmp/test_file_VTCNK3/file/replace-symlink/using-etag/.dirs/system-data2 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/replace-symlink/using-etag/.dirs/data 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/replace-symlink/using-etag/.dirs/state 1998s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/replace-symlink/using-etag/.dirs/runtime 1998s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2417 1998s # /file/replace-symlink/using-etag summary: Test that ETag checks work when replacing a file through a symlink 1998s # Using temporary directory /tmp/test_file_VTCNK3/g_file_replace_symlink_using_etag_0DDJK3 2000s ok 40 /file/replace-symlink/using-etag 2000s # slow test /file/replace-symlink/using-etag executed in 2.71 secs 2000s # End of replace-symlink tests 2000s # Start of replace tests 2000s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/replace/write-only/.dirs/home 2000s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/replace/write-only/.dirs/cache 2000s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/replace/write-only/.dirs/system-config1:/tmp/test_file_VTCNK3/file/replace/write-only/.dirs/system-config2 2000s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/replace/write-only/.dirs/config 2000s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/replace/write-only/.dirs/system-data1:/tmp/test_file_VTCNK3/file/replace/write-only/.dirs/system-data2 2000s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/replace/write-only/.dirs/data 2000s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/replace/write-only/.dirs/state 2000s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/replace/write-only/.dirs/runtime 2000s # /file/replace/write-only summary: Test various situations for g_file_replace() 2000s # Current umask: 2 2000s # Test 0, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_QYL4J3 2000s # Test 1, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_N2L4J3 2002s # Test 2, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_NF7KK3 2002s # Test 3, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_6ZILK3 2002s # Test 4, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_UXHLK3 2002s # Test 5, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_G1HLK3 2002s # Test 6, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_DJWGK3 2002s # Test 7, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_QSYBK3 2002s # Test 8, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_9KYBK3 2002s # Test 9, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_OJXBK3 2002s # Test 10, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_YMLCK3 2002s # Executing: glib/file.test 2002s # Test 11, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_KK7MK3 2002s # Test 12, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_PD7MK3 2002s # Test 13, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_LH7MK3 2003s # Test 14, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_3LKNK3 2003s # Test 15, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_V25IK3 2003s # Test 16, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_T3MHK3 2003s # Test 17, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_LHMHK3 2003s # Test 18, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_HTLHK3 2003s # Test 19, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_21QHK3 2003s # Test 20, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_6EPHK3 2003s # Test 21, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_OVOHK3 2003s # Test 22, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_A2THK3 2003s # Test 23, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_N5THK3 2003s # Test 24, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_CATHK3 2003s # Test 25, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_88RHK3 2003s # Test 26, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_UESHK3 2003s # Test 27, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_VWSHK3 2004s # Test 28, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_R5HHK3 2004s # Test 29, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_LSSHK3 2004s # Test 30, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_DWRHK3 2004s # Test 31, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_QYRHK3 2004s # Test 32, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_N4MAK3 2004s # Test 33, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_34OBK3 2004s # Test 34, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_V4NBK3 2004s # Test 35, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_6UNBK3 2004s # Test 36, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_4WTPK3 2005s # Test 37, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_PAGHK3 2005s # Test 38, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_J1H7J3 2006s # Test 39, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_ZW7KK3 2006s # Test 40, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_WTGJK3 2006s # Test 41, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_FM58J3 2006s # Test 42, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_XAKPK3 2007s # Test 43, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_7FLHK3 2007s # Executing: glib/file.test 2007s # Test 44, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_O283J3 2007s # Test 45, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_MU83J3 2007s # Test 46, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_0PH4J3 2007s # Test 47, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_WTH4J3 2007s # Test 48, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_38G4J3 2007s # We do not have CAP_DAC_OVERRIDE or equivalent 2007s ok 41 /file/replace/write-only 2007s # slow test /file/replace/write-only executed in 6.99 secs 2007s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/replace/read-write/.dirs/home 2007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/replace/read-write/.dirs/cache 2007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/replace/read-write/.dirs/system-config1:/tmp/test_file_VTCNK3/file/replace/read-write/.dirs/system-config2 2007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/replace/read-write/.dirs/config 2007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/replace/read-write/.dirs/system-data1:/tmp/test_file_VTCNK3/file/replace/read-write/.dirs/system-data2 2007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/replace/read-write/.dirs/data 2007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/replace/read-write/.dirs/state 2007s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/replace/read-write/.dirs/runtime 2007s # /file/replace/read-write summary: Test various situations for g_file_replace() 2007s # Current umask: 2 2007s # Test 0, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_9RK4J3 2007s # Test 1, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_29K4J3 2008s # Test 2, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_2OIIK3 2008s # Test 3, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_Z7OCK3 2008s # Test 4, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_02OCK3 2008s # Test 5, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_PK68J3 2008s # Test 6, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_8K98J3 2008s # Test 7, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_M0Y7J3 2008s # Test 8, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_UWY7J3 2008s # Test 9, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_2RX7J3 2008s # Test 10, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_JWK4J3 2008s # Test 11, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_LQJ4J3 2008s # Test 12, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_BHJ4J3 2008s # Test 13, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_UKJ4J3 2008s # Test 14, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_FZI4J3 2008s # Test 15, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_DTPPK3 2009s # Test 16, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_LRZ7J3 2009s # Test 17, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_QZ9OK3 2009s # Test 18, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_Q67OK3 2009s # Test 19, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_92CPK3 2009s # Test 20, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_VKBPK3 2009s # Test 21, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_94GPK3 2009s # Test 22, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_WMGPK3 2009s # Test 23, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_ZBFPK3 2009s # Test 24, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_WCKPK3 2009s # Test 25, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_0PJPK3 2009s # Test 26, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_DVIPK3 2009s # Test 27, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_NZIPK3 2010s # Test 28, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_89FOK3 2010s # Test 29, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_WUUJK3 2010s # Test 30, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_CTUJK3 2010s # Test 31, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_HBVJK3 2010s # Test 32, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_6DYJK3 2010s # Test 33, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_YJADK3 2010s # Test 34, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_95FDK3 2010s # Test 35, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_GZFDK3 2010s # Test 36, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_ULF9J3 2010s # Test 37, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_YCL9J3 2010s # Test 38, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_0TK9J3 2010s # Test 39, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_3PI9J3 2010s # Test 40, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_MNO9J3 2010s # Test 41, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_9OM9J3 2010s # Test 42, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_29L9J3 2010s # Test 43, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_A3Q9J3 2010s # Test 44, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_R6O9J3 2010s # Test 45, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_WWO9J3 2010s # Test 46, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_A0U9J3 2010s # Test 47, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_C5U9J3 2010s # Test 48, using temporary directory /tmp/test_file_VTCNK3/g_file_replace_IVS9J3 2010s # We do not have CAP_DAC_OVERRIDE or equivalent 2010s ok 42 /file/replace/read-write 2010s # slow test /file/replace/read-write executed in 2.72 secs 2010s # End of replace tests 2010s # Start of copy tests 2010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/copy/progress/.dirs/home 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/copy/progress/.dirs/cache 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/copy/progress/.dirs/system-config1:/tmp/test_file_VTCNK3/file/copy/progress/.dirs/system-config2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/copy/progress/.dirs/config 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/copy/progress/.dirs/system-data1:/tmp/test_file_VTCNK3/file/copy/progress/.dirs/system-data2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/copy/progress/.dirs/data 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/copy/progress/.dirs/state 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/copy/progress/.dirs/runtime 2010s ok 43 /file/copy/progress 2010s # End of copy tests 2010s # Start of writev tests 2010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/writev/no-bytes-written/.dirs/home 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/writev/no-bytes-written/.dirs/cache 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/writev/no-bytes-written/.dirs/system-config1:/tmp/test_file_VTCNK3/file/writev/no-bytes-written/.dirs/system-config2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/writev/no-bytes-written/.dirs/config 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/writev/no-bytes-written/.dirs/system-data1:/tmp/test_file_VTCNK3/file/writev/no-bytes-written/.dirs/system-data2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/writev/no-bytes-written/.dirs/data 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/writev/no-bytes-written/.dirs/state 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/writev/no-bytes-written/.dirs/runtime 2010s ok 44 /file/writev/no-bytes-written 2010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/writev/no-vectors/.dirs/home 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/writev/no-vectors/.dirs/cache 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/writev/no-vectors/.dirs/system-config1:/tmp/test_file_VTCNK3/file/writev/no-vectors/.dirs/system-config2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/writev/no-vectors/.dirs/config 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/writev/no-vectors/.dirs/system-data1:/tmp/test_file_VTCNK3/file/writev/no-vectors/.dirs/system-data2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/writev/no-vectors/.dirs/data 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/writev/no-vectors/.dirs/state 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/writev/no-vectors/.dirs/runtime 2010s ok 45 /file/writev/no-vectors 2010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/writev/empty-vectors/.dirs/home 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/writev/empty-vectors/.dirs/cache 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/writev/empty-vectors/.dirs/system-config1:/tmp/test_file_VTCNK3/file/writev/empty-vectors/.dirs/system-config2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/writev/empty-vectors/.dirs/config 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/writev/empty-vectors/.dirs/system-data1:/tmp/test_file_VTCNK3/file/writev/empty-vectors/.dirs/system-data2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/writev/empty-vectors/.dirs/data 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/writev/empty-vectors/.dirs/state 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/writev/empty-vectors/.dirs/runtime 2010s ok 46 /file/writev/empty-vectors 2010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/writev/too-big-vectors/.dirs/home 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/writev/too-big-vectors/.dirs/cache 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/writev/too-big-vectors/.dirs/system-config1:/tmp/test_file_VTCNK3/file/writev/too-big-vectors/.dirs/system-config2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/writev/too-big-vectors/.dirs/config 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/writev/too-big-vectors/.dirs/system-data1:/tmp/test_file_VTCNK3/file/writev/too-big-vectors/.dirs/system-data2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/writev/too-big-vectors/.dirs/data 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/writev/too-big-vectors/.dirs/state 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/writev/too-big-vectors/.dirs/runtime 2010s ok 47 /file/writev/too-big-vectors 2010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/writev/async/.dirs/home 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/writev/async/.dirs/cache 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/writev/async/.dirs/system-config1:/tmp/test_file_VTCNK3/file/writev/async/.dirs/system-config2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/writev/async/.dirs/config 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/writev/async/.dirs/system-data1:/tmp/test_file_VTCNK3/file/writev/async/.dirs/system-data2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/writev/async/.dirs/data 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/writev/async/.dirs/state 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/writev/async/.dirs/runtime 2010s ok 48 /file/writev/async 2010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/writev/async_all/.dirs/home 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/writev/async_all/.dirs/cache 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/writev/async_all/.dirs/system-config1:/tmp/test_file_VTCNK3/file/writev/async_all/.dirs/system-config2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/writev/async_all/.dirs/config 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/writev/async_all/.dirs/system-data1:/tmp/test_file_VTCNK3/file/writev/async_all/.dirs/system-data2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/writev/async_all/.dirs/data 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/writev/async_all/.dirs/state 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/writev/async_all/.dirs/runtime 2010s ok 49 /file/writev/async_all 2010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/writev/async_all-empty-vectors/.dirs/home 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/writev/async_all-empty-vectors/.dirs/cache 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/writev/async_all-empty-vectors/.dirs/system-config1:/tmp/test_file_VTCNK3/file/writev/async_all-empty-vectors/.dirs/system-config2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/writev/async_all-empty-vectors/.dirs/config 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/writev/async_all-empty-vectors/.dirs/system-data1:/tmp/test_file_VTCNK3/file/writev/async_all-empty-vectors/.dirs/system-data2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/writev/async_all-empty-vectors/.dirs/data 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/writev/async_all-empty-vectors/.dirs/state 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/writev/async_all-empty-vectors/.dirs/runtime 2010s ok 50 /file/writev/async_all-empty-vectors 2010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/writev/async_all-no-vectors/.dirs/home 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/writev/async_all-no-vectors/.dirs/cache 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/writev/async_all-no-vectors/.dirs/system-config1:/tmp/test_file_VTCNK3/file/writev/async_all-no-vectors/.dirs/system-config2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/writev/async_all-no-vectors/.dirs/config 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/writev/async_all-no-vectors/.dirs/system-data1:/tmp/test_file_VTCNK3/file/writev/async_all-no-vectors/.dirs/system-data2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/writev/async_all-no-vectors/.dirs/data 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/writev/async_all-no-vectors/.dirs/state 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/writev/async_all-no-vectors/.dirs/runtime 2010s ok 51 /file/writev/async_all-no-vectors 2010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/writev/async_all-to-big-vectors/.dirs/home 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/writev/async_all-to-big-vectors/.dirs/cache 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/writev/async_all-to-big-vectors/.dirs/system-config1:/tmp/test_file_VTCNK3/file/writev/async_all-to-big-vectors/.dirs/system-config2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/writev/async_all-to-big-vectors/.dirs/config 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/writev/async_all-to-big-vectors/.dirs/system-data1:/tmp/test_file_VTCNK3/file/writev/async_all-to-big-vectors/.dirs/system-data2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/writev/async_all-to-big-vectors/.dirs/data 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/writev/async_all-to-big-vectors/.dirs/state 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/writev/async_all-to-big-vectors/.dirs/runtime 2010s ok 52 /file/writev/async_all-to-big-vectors 2010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/writev/async_all-cancellation/.dirs/home 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/writev/async_all-cancellation/.dirs/cache 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/writev/async_all-cancellation/.dirs/system-config1:/tmp/test_file_VTCNK3/file/writev/async_all-cancellation/.dirs/system-config2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/writev/async_all-cancellation/.dirs/config 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/writev/async_all-cancellation/.dirs/system-data1:/tmp/test_file_VTCNK3/file/writev/async_all-cancellation/.dirs/system-data2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/writev/async_all-cancellation/.dirs/data 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/writev/async_all-cancellation/.dirs/state 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/writev/async_all-cancellation/.dirs/runtime 2010s ok 53 /file/writev/async_all-cancellation 2010s # End of writev tests 2010s # Start of from-uri tests 2010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/from-uri/ignores-query-string/.dirs/home 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/from-uri/ignores-query-string/.dirs/cache 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/from-uri/ignores-query-string/.dirs/system-config1:/tmp/test_file_VTCNK3/file/from-uri/ignores-query-string/.dirs/system-config2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/from-uri/ignores-query-string/.dirs/config 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/from-uri/ignores-query-string/.dirs/system-data1:/tmp/test_file_VTCNK3/file/from-uri/ignores-query-string/.dirs/system-data2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/from-uri/ignores-query-string/.dirs/data 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/from-uri/ignores-query-string/.dirs/state 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/from-uri/ignores-query-string/.dirs/runtime 2010s ok 54 /file/from-uri/ignores-query-string 2010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_VTCNK3/file/from-uri/ignores-fragment/.dirs/home 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_VTCNK3/file/from-uri/ignores-fragment/.dirs/cache 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_VTCNK3/file/from-uri/ignores-fragment/.dirs/system-config1:/tmp/test_file_VTCNK3/file/from-uri/ignores-fragment/.dirs/system-config2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_VTCNK3/file/from-uri/ignores-fragment/.dirs/config 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_VTCNK3/file/from-uri/ignores-fragment/.dirs/system-data1:/tmp/test_file_VTCNK3/file/from-uri/ignores-fragment/.dirs/system-data2 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_VTCNK3/file/from-uri/ignores-fragment/.dirs/data 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_VTCNK3/file/from-uri/ignores-fragment/.dirs/state 2010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_VTCNK3/file/from-uri/ignores-fragment/.dirs/runtime 2010s ok 55 /file/from-uri/ignores-fragment 2010s # End of from-uri tests 2010s # End of file tests 2010s TAP version 13 2010s ok 1 __main__.TestGIInspectTypelibCommandLine.test_help 2010s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 2010s # tmpdir: /tmp/tmprank7plm 2010s # Running: ['/usr/bin/gi-inspect-typelib', '--help'] 2010s # Return code: 0 2010s # Output: 2010s # Usage: 2010s # gi-inspect-typelib [OPTION…] NAMESPACE - Inspect GI typelib 2010s # 2010s # Help Options: 2010s # -h, --help Show help options 2010s # 2010s # Application Options: 2010s # --typelib-version=VERSION Typelib version to inspect 2010s # --print-shlibs List the shared libraries the typelib requires 2010s # --print-typelibs List other typelibs the inspected typelib requires 2010s # Error: 2010s ok - glib/file.test 2010s # Running test: glib/gi-inspect-typelib.py.test 2010s ok 2 __main__.TestGIInspectTypelibCommandLine.test_invalid_typelib 2010s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 2010s # tmpdir: /tmp/tmp9dfhjz77 2010s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'AnInvalidNameSpace'] 2010s # Return code: 1 2010s # Output: 2010s # 2010s # Error: 2010s # Failed to load typelib: Typelib file for namespace 'AnInvalidNameSpace' (any version) not found 2010s ok 3 __main__.TestGIInspectTypelibCommandLine.test_no_args 2010s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 2010s # tmpdir: /tmp/tmp63jgbu0k 2010s # Running: ['/usr/bin/gi-inspect-typelib'] 2010s # Return code: 1 2010s # Output: 2010s # 2010s # Error: 2010s # Please specify exactly one namespace 2010s ok 4 __main__.TestGIInspectTypelibForGLibTypelib.test_print_shlibs 2010s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 2010s # tmpdir: /tmp/tmp6nhv7xlm 2010s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 2010s # Return code: 0 2010s # Output: 2010s # shlib: libgobject-2.0.so.0 2010s # shlib: libglib-2.0.so.0 2010s # Error: 2010s ok 5 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs 2010s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 2010s # tmpdir: /tmp/tmp8of6wnny 2010s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GLib', '--typelib-version=2.0'] 2010s # Return code: 0 2010s # Output: 2010s # 2010s # Error: 2011s ok 6 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs_and_shlibs 2011s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 2011s # tmpdir: /tmp/tmpekur5irq 2011s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 2011s # Return code: 0 2011s # Output: 2011s # shlib: libgobject-2.0.so.0 2011s # shlib: libglib-2.0.so.0 2011s # Error: 2011s ok 7 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_shlibs 2011s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 2011s # tmpdir: /tmp/tmpmnh29ez4 2011s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 2011s # Return code: 0 2011s # Output: 2011s # shlib: libgobject-2.0.so.0 2011s # Error: 2011s ok 8 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs 2011s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 2011s # tmpdir: /tmp/tmp6x87jyj_ 2011s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GObject', '--typelib-version=2.0'] 2011s # Return code: 0 2011s # Output: 2011s # typelib: GLib-2.0 2011s # Error: 2011s ok 9 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs_and_shlibs 2011s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 2011s # tmpdir: /tmp/tmp8lkibg8h 2011s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 2011s # Return code: 0 2011s # Output: 2011s # shlib: libgobject-2.0.so.0 2011s # typelib: GLib-2.0 2011s # Error: 2011s ok 10 __main__.TestGIInspectTypelibForGioTypelib.test_print_shlibs 2011s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 2011s # tmpdir: /tmp/tmpt4xnbnto 2011s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 2011s # Return code: 0 2011s # Output: 2011s # shlib: libgio-2.0.so.0 2011s # Error: 2011s ok 11 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs 2011s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 2011s # tmpdir: /tmp/tmphvyjpaeh 2011s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'Gio', '--typelib-version=2.0'] 2011s # Return code: 0 2011s # Output: 2011s # typelib: GObject-2.0 2011s # typelib: GLib-2.0 2011s # typelib: GModule-2.0 2011s # Error: 2011s ok 12 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs_and_shlibs 2011s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 2011s # tmpdir: /tmp/tmp2h1fv3ur 2011s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 2011s # Return code: 0 2011s # Output: 2011s # shlib: libgio-2.0.so.0 2011s # typelib: GObject-2.0 2011s # typelib: GLib-2.0 2011s # typelib: GModule-2.0 2011s # Error: 2011s 1..12 2011s ok - glib/gi-inspect-typelib.py.test 2011s # Running test: glib/utils.test 2011s TAP version 14 2011s # random seed: R02Sdf719af3c49a8713780340fd72baff5c 2011s 1..41 2011s # Start of utils tests 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/language-names/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/language-names/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/language-names/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/language-names/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/language-names/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/language-names/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/language-names/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/language-names/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/language-names/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/language-names/.dirs/runtime 2011s ok 1 /utils/language-names 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/locale-variants/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/locale-variants/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/locale-variants/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/locale-variants/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/locale-variants/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/locale-variants/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/locale-variants/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/locale-variants/.dirs/runtime 2011s # Testing locale ‘en’ 2011s # Testing locale ‘sr@latin’ 2011s # Testing locale ‘fr_BE’ 2011s # Testing locale ‘sr_SR@latin’ 2011s # Testing locale ‘sr_SR@latin.UTF-8’ 2011s # Testing locale ‘sr@latin_invalid’ 2011s # Testing locale ‘sr.UTF-8@latin’ 2011s # Testing locale ‘sr.UTF-8_latin’ 2011s # Testing locale ‘sr.UTF-8@latin_invalid’ 2011s ok 2 /utils/locale-variants 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/version/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/version/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/version/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/version/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/version/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/version/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/version/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/version/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/version/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/version/.dirs/runtime 2011s ok 3 /utils/version 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/appname/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/appname/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/appname/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/appname/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/appname/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/appname/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/appname/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/appname/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/appname/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/appname/.dirs/runtime 2011s ok 4 /utils/appname 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/prgname-thread-safety/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/prgname-thread-safety/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/prgname-thread-safety/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/prgname-thread-safety/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/prgname-thread-safety/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/prgname-thread-safety/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/prgname-thread-safety/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/prgname-thread-safety/.dirs/runtime 2011s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 2011s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 2011s ok 5 /utils/prgname-thread-safety 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/tmpdir/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/tmpdir/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/tmpdir/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/tmpdir/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/tmpdir/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/tmpdir/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/tmpdir/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/tmpdir/.dirs/runtime 2011s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 2011s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 2011s Unable to clean up temporary directory /tmp/test_utils_PYEGK3/utils/tmpdir: No such file or directory 2011s ok 6 /utils/tmpdir 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/basic_bits/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/basic_bits/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/basic_bits/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/basic_bits/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/basic_bits/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/basic_bits/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/basic_bits/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/basic_bits/.dirs/runtime 2011s ok 7 /utils/basic_bits 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/bits/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/bits/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/bits/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/bits/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/bits/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/bits/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/bits/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/bits/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/bits/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/bits/.dirs/runtime 2011s ok 8 /utils/bits 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/swap/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/swap/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/swap/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/swap/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/swap/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/swap/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/swap/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/swap/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/swap/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/swap/.dirs/runtime 2011s ok 9 /utils/swap 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/find-program/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/find-program/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/find-program/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/find-program/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/find-program/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/find-program/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/find-program/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/find-program/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/find-program/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/find-program/.dirs/runtime 2011s ok 10 /utils/find-program 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/find-program-for-path/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/find-program-for-path/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/find-program-for-path/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/find-program-for-path/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/find-program-for-path/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/find-program-for-path/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/find-program-for-path/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/find-program-for-path/.dirs/runtime 2011s ok 11 /utils/find-program-for-path 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/debug/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/debug/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/debug/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/debug/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/debug/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/debug/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/debug/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/debug/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/debug/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/debug/.dirs/runtime 2011s Unable to clean up temporary directory /tmp/test_utils_PYEGK3/utils/debug: No such file or directory 2011s ok 12 /utils/debug 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/codeset/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/codeset/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/codeset/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/codeset/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/codeset/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/codeset/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/codeset/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/codeset/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/codeset/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/codeset/.dirs/runtime 2011s ok 13 /utils/codeset 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/codeset2/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/codeset2/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/codeset2/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/codeset2/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/codeset2/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/codeset2/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/codeset2/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/codeset2/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/codeset2/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/codeset2/.dirs/runtime 2011s Unable to clean up temporary directory /tmp/test_utils_PYEGK3/utils/codeset2: No such file or directory 2011s ok 14 /utils/codeset2 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/console-charset/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/console-charset/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/console-charset/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/console-charset/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/console-charset/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/console-charset/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/console-charset/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/console-charset/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/console-charset/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/console-charset/.dirs/runtime 2011s ok 15 /utils/console-charset 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/gettext/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/gettext/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/gettext/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/gettext/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/gettext/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/gettext/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/gettext/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/gettext/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/gettext/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/gettext/.dirs/runtime 2011s ok 16 /utils/gettext 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/username/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/username/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/username/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/username/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/username/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/username/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/username/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/username/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/username/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/username/.dirs/runtime 2011s ok 17 /utils/username 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/realname/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/realname/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/realname/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/realname/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/realname/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/realname/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/realname/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/realname/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/realname/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/realname/.dirs/runtime 2011s ok 18 /utils/realname 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/hostname/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/hostname/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/hostname/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/hostname/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/hostname/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/hostname/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/hostname/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/hostname/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/hostname/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/hostname/.dirs/runtime 2011s ok 19 /utils/hostname 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/os-info/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/os-info/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/os-info/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/os-info/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/os-info/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/os-info/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/os-info/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/os-info/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/os-info/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/os-info/.dirs/runtime 2011s # NAME: Ubuntu 2011s ok 20 /utils/os-info 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/clear-pointer/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/clear-pointer/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/clear-pointer/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/clear-pointer/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/clear-pointer/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/clear-pointer/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/clear-pointer/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/clear-pointer/.dirs/runtime 2011s ok 21 /utils/clear-pointer 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/clear-pointer-cast/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/clear-pointer-cast/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/clear-pointer-cast/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/clear-pointer-cast/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/clear-pointer-cast/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/clear-pointer-cast/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/clear-pointer-cast/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/clear-pointer-cast/.dirs/runtime 2011s ok 22 /utils/clear-pointer-cast 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/take-pointer/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/take-pointer/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/take-pointer/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/take-pointer/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/take-pointer/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/take-pointer/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/take-pointer/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/take-pointer/.dirs/runtime 2011s ok 23 /utils/take-pointer 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/clear-source/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/clear-source/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/clear-source/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/clear-source/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/clear-source/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/clear-source/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/clear-source/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/clear-source/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/clear-source/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/clear-source/.dirs/runtime 2011s ok 24 /utils/clear-source 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/misc-mem/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/misc-mem/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/misc-mem/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/misc-mem/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/misc-mem/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/misc-mem/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/misc-mem/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/misc-mem/.dirs/runtime 2011s ok 25 /utils/misc-mem 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/aligned-mem/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/aligned-mem/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/aligned-mem/.dirs/runtime 2011s # /utils/aligned-mem summary: Aligned memory allocator 2011s # Alignment must not be zero 2011s # Alignment must be a power of two 2011s # Alignment must be a multiple of sizeof(void*) 2011s ok 26 /utils/aligned-mem 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/free-sized/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/free-sized/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/free-sized/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/free-sized/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/free-sized/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/free-sized/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/free-sized/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/free-sized/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/free-sized/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/free-sized/.dirs/runtime 2011s # /utils/free-sized summary: Check that g_free_sized() works 2011s ok 27 /utils/free-sized 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/nullify/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/nullify/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/nullify/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/nullify/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/nullify/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/nullify/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/nullify/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/nullify/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/nullify/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/nullify/.dirs/runtime 2011s ok 28 /utils/nullify 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/atexit/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/atexit/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/atexit/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/atexit/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/atexit/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/atexit/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/atexit/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/atexit/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/atexit/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/atexit/.dirs/runtime 2011s Unable to clean up temporary directory /tmp/test_utils_PYEGK3/utils/atexit: No such file or directory 2011s ok 29 /utils/atexit 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/check-setuid/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/check-setuid/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/check-setuid/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/check-setuid/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/check-setuid/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/check-setuid/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/check-setuid/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/check-setuid/.dirs/runtime 2011s ok 30 /utils/check-setuid 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/int-limits/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/int-limits/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/int-limits/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/int-limits/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/int-limits/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/int-limits/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/int-limits/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/int-limits/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/int-limits/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/int-limits/.dirs/runtime 2011s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 2011s ok 31 /utils/int-limits 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/clear-list/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/clear-list/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/clear-list/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/clear-list/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/clear-list/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/clear-list/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/clear-list/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/clear-list/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/clear-list/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/clear-list/.dirs/runtime 2011s ok 32 /utils/clear-list 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/clear-slist/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/clear-slist/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/clear-slist/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/clear-slist/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/clear-slist/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/clear-slist/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/clear-slist/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/clear-slist/.dirs/runtime 2011s ok 33 /utils/clear-slist 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/steal-handle-id/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/steal-handle-id/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/steal-handle-id/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/steal-handle-id/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/steal-handle-id/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/steal-handle-id/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/steal-handle-id/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/steal-handle-id/.dirs/runtime 2011s ok 34 /utils/steal-handle-id 2011s # Start of user-special-dirs tests 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/user-special-dirs/desktop/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/user-special-dirs/desktop/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/user-special-dirs/desktop/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/user-special-dirs/desktop/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/user-special-dirs/desktop/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/user-special-dirs/desktop/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/user-special-dirs/desktop/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/user-special-dirs/desktop/.dirs/runtime 2011s ok 35 /utils/user-special-dirs/desktop 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/user-special-dirs/load-unlocked/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/user-special-dirs/load-unlocked/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/user-special-dirs/load-unlocked/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/user-special-dirs/load-unlocked/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/user-special-dirs/load-unlocked/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/user-special-dirs/load-unlocked/.dirs/runtime 2011s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 2011s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 2011s Unable to clean up temporary directory /tmp/test_utils_PYEGK3/utils/user-special-dirs/load-unlocked: No such file or directory 2011s ok 36 /utils/user-special-dirs/load-unlocked 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/user-special-dirs/reload-leaks/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/user-special-dirs/reload-leaks/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/user-special-dirs/reload-leaks/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/user-special-dirs/reload-leaks/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/user-special-dirs/reload-leaks/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/user-special-dirs/reload-leaks/.dirs/runtime 2011s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 2011s Unable to clean up temporary directory /tmp/test_utils_PYEGK3/utils/user-special-dirs/reload-leaks: No such file or directory 2011s ok 37 /utils/user-special-dirs/reload-leaks 2011s # End of user-special-dirs tests 2011s # Start of clear-pointer tests 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/clear-pointer/side-effects/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/clear-pointer/side-effects/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/clear-pointer/side-effects/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/clear-pointer/side-effects/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/clear-pointer/side-effects/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/clear-pointer/side-effects/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/clear-pointer/side-effects/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/clear-pointer/side-effects/.dirs/runtime 2011s ok 38 /utils/clear-pointer/side-effects 2011s # End of clear-pointer tests 2011s # Start of aligned-mem tests 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/alignment/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/alignment/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/aligned-mem/alignment/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/alignment/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/aligned-mem/alignment/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/alignment/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/alignment/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/aligned-mem/alignment/.dirs/runtime 2011s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 2011s ok 39 /utils/aligned-mem/alignment 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/zeroed/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/zeroed/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/aligned-mem/zeroed/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/zeroed/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/aligned-mem/zeroed/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/zeroed/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/zeroed/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/aligned-mem/zeroed/.dirs/runtime 2011s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 2011s ok 40 /utils/aligned-mem/zeroed 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/free-sized/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/free-sized/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_PYEGK3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils_PYEGK3/utils/aligned-mem/free-sized/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/free-sized/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_PYEGK3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils_PYEGK3/utils/aligned-mem/free-sized/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/free-sized/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_PYEGK3/utils/aligned-mem/free-sized/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_PYEGK3/utils/aligned-mem/free-sized/.dirs/runtime 2011s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 2011s ok 41 /utils/aligned-mem/free-sized 2011s # Start of subprocess tests 2011s # End of subprocess tests 2011s # End of aligned-mem tests 2011s # End of utils tests 2011s ok - glib/utils.test 2011s # Running test: glib/mapping.test 2011s TAP version 14 2011s # random seed: R02S727c87dc944b111324c0ea86df2a1da2 2011s 1..3 2011s # Start of mapping tests 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_9YQPK3/mapping/flags/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_9YQPK3/mapping/flags/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_9YQPK3/mapping/flags/.dirs/system-config1:/tmp/test_mapping_9YQPK3/mapping/flags/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_9YQPK3/mapping/flags/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_9YQPK3/mapping/flags/.dirs/system-data1:/tmp/test_mapping_9YQPK3/mapping/flags/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_9YQPK3/mapping/flags/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_9YQPK3/mapping/flags/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_9YQPK3/mapping/flags/.dirs/runtime 2011s # test_mapping: ok 2011s ok 1 /mapping/flags 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_9YQPK3/mapping/private/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_9YQPK3/mapping/private/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_9YQPK3/mapping/private/.dirs/system-config1:/tmp/test_mapping_9YQPK3/mapping/private/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_9YQPK3/mapping/private/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_9YQPK3/mapping/private/.dirs/system-data1:/tmp/test_mapping_9YQPK3/mapping/private/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_9YQPK3/mapping/private/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_9YQPK3/mapping/private/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_9YQPK3/mapping/private/.dirs/runtime 2011s ok 2 /mapping/private 2011s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_9YQPK3/mapping/private-child/.dirs/home 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_9YQPK3/mapping/private-child/.dirs/cache 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_9YQPK3/mapping/private-child/.dirs/system-config1:/tmp/test_mapping_9YQPK3/mapping/private-child/.dirs/system-config2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_9YQPK3/mapping/private-child/.dirs/config 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_9YQPK3/mapping/private-child/.dirs/system-data1:/tmp/test_mapping_9YQPK3/mapping/private-child/.dirs/system-data2 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_9YQPK3/mapping/private-child/.dirs/data 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_9YQPK3/mapping/private-child/.dirs/state 2011s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_9YQPK3/mapping/private-child/.dirs/runtime 2011s # Subtest: /usr/libexec/installed-tests/glib/mapping 2011s # random seed: R02S6315d682994730ec8ee7db39957321da 2011s # test_child_private: child spawned 2011s # test_child_private: received first child signal 2011s # test_child_private: received parent signal 2011s # Child exited with status 0 2011s # test_child_private: received second child signal 2012s ok 3 /mapping/private-child 2012s # End of mapping tests 2012s ok - glib/mapping.test 2012s # Running test: glib/onceinit.test 2012s TAP version 14 2012s # random seed: R02S432c2f37363a57b48355234157f5e24d 2012s 1..1 2012s # Start of thread tests 2012s ok - glib/onceinit.test 2012s # Running test: glib/collate.test 2012s ok - glib/collate.test 2012s # Running test: glib/cxx-20.test 2012s ok 1 /thread/onceinit 2012s # End of thread tests 2012s TAP version 14 2012s # random seed: R02S2dc85cb401962a02fe8f461f69d46d7d 2012s 1..9 2012s # Start of unicode tests 2012s # Start of collate tests 2012s ok 1 /unicode/collate/0 2012s ok 2 /unicode/collate/1 2012s ok 3 /unicode/collate/2 2012s # End of collate tests 2012s # Start of collate-key tests 2012s ok 4 /unicode/collate-key/0 2012s ok 5 /unicode/collate-key/1 2012s ok 6 /unicode/collate-key/2 2012s # End of collate-key tests 2012s # Start of collate-filename tests 2012s ok 7 /unicode/collate-filename/0 2012s ok 8 /unicode/collate-filename/1 2012s ok 9 /unicode/collate-filename/2 2012s # End of collate-filename tests 2012s # End of unicode tests 2012s ok - glib/cxx-20.test 2012s # Running test: glib/slice.test 2012s TAP version 14 2012s # random seed: R02S2bac96364e5a34b726b88ced68b91b29 2012s 1..2 2012s # Start of gtask tests 2012s # 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. 2012s ok 1 /gtask/name 2012s # Start of name tests 2012s # 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. 2012s ok 2 /gtask/name/macro-wrapper 2012s # End of name tests 2012s # End of gtask tests 2012s TAP version 14 2012s # random seed: R02S473587995d005f32b64f3cfdeb224d25 2012s 1..3 2012s # Start of slice tests 2012s ok 1 /slice/copy 2012s ok 2 /slice/chain 2012s # Executing: glib/slice.test 2013s ok 3 /slice/allocate 2013s # slow test /slice/allocate executed in 1.01 secs 2013s # End of slice tests 2013s ok - glib/slice.test 2013s # Running test: glib/cxx-98.test 2013s TAP version 14 2013s # random seed: R02S4b35a848cd7fc79557982e3d6eeff82c 2013s 1..2 2013s # Start of gtask tests 2013s # 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. 2013s ok 1 /gtask/name 2013s # Start of name tests 2013s # 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. 2013s ok 2 /gtask/name/macro-wrapper 2013s # End of name tests 2013s # End of gtask tests 2013s ok - glib/cxx-98.test 2013s # Running test: glib/dbus-appinfo.test 2013s TAP version 14 2013s # random seed: R02S716f16afa60968270affd23ca8cb7faa 2013s 1..7 2013s # Start of appinfo tests 2013s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/dbusappinfo/.dirs/home 2013s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/dbusappinfo/.dirs/cache 2013s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_JQI8J3/appinfo/dbusappinfo/.dirs/system-config1:/tmp/test_dbus-appinfo_JQI8J3/appinfo/dbusappinfo/.dirs/system-config2 2013s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/dbusappinfo/.dirs/config 2013s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_JQI8J3/appinfo/dbusappinfo/.dirs/system-data1:/tmp/test_dbus-appinfo_JQI8J3/appinfo/dbusappinfo/.dirs/system-data2 2013s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/dbusappinfo/.dirs/data 2013s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/dbusappinfo/.dirs/state 2013s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_JQI8J3/appinfo/dbusappinfo/.dirs/runtime 2013s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 2013s ok 1 /appinfo/dbusappinfo 2013s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-doc-export/.dirs/home 2013s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-doc-export/.dirs/cache 2013s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-doc-export/.dirs/system-config2 2013s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-doc-export/.dirs/config 2013s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-doc-export/.dirs/system-data2 2013s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-doc-export/.dirs/data 2013s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-doc-export/.dirs/state 2013s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-doc-export/.dirs/runtime 2013s # /appinfo/flatpak-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 2013s # Acquired a message bus connection 2013s # Acquired the name org.freedesktop.portal.Documents 2013s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_JQI8J3/appinfo/dbusappinfo/.dirs/config to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-doc-export/.dirs/config 2014s # on_flatpak_open received file '/document-portal/document-id/org.gtk.test.dbusappinfo.flatpak.desktop' 2014s # fake-document-portal cancelled 2014s ok 2 /appinfo/flatpak-doc-export 2014s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-missing-doc-export/.dirs/home 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-missing-doc-export/.dirs/cache 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-missing-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-missing-doc-export/.dirs/system-config2 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-missing-doc-export/.dirs/config 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-missing-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-missing-doc-export/.dirs/system-data2 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-missing-doc-export/.dirs/data 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-missing-doc-export/.dirs/state 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-missing-doc-export/.dirs/runtime 2014s # /appinfo/flatpak-missing-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 2014s # Acquired a message bus connection 2014s # Acquired the name org.freedesktop.portal.Documents 2014s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-doc-export/.dirs/config to /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-missing-doc-export/.dirs/config 2014s # on_flatpak_open received file '/hopefully/an/invalid/path.desktop' 2014s # fake-document-portal cancelled 2014s ok 3 /appinfo/flatpak-missing-doc-export 2014s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file/.dirs/home 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file/.dirs/cache 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file/.dirs/system-config1:/tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file/.dirs/system-config2 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file/.dirs/config 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file/.dirs/system-data1:/tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file/.dirs/system-data2 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file/.dirs/data 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file/.dirs/state 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file/.dirs/runtime 2014s # Acquired a message bus connection 2014s # Acquired the name org.freedesktop.portal.Desktop 2014s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_JQI8J3/appinfo/flatpak-missing-doc-export/.dirs/config to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file/.dirs/config 2014s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 2014s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_5/t 2014s # Response emitted 2014s # fake-desktop-portal cancelled 2014s ok 4 /appinfo/portal-open-file 2014s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri/.dirs/home 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri/.dirs/cache 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri/.dirs/system-config1:/tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri/.dirs/system-config2 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri/.dirs/config 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri/.dirs/system-data1:/tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri/.dirs/system-data2 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri/.dirs/data 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri/.dirs/state 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri/.dirs/runtime 2014s # Acquired a message bus connection 2014s # Acquired the name org.freedesktop.portal.Desktop 2014s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file/.dirs/config to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri/.dirs/config 2014s # Got open file request for http://example.com 2014s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_7/t 2014s # Response emitted 2014s # fake-desktop-portal cancelled 2014s ok 5 /appinfo/portal-open-uri 2014s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file-async/.dirs/home 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file-async/.dirs/cache 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file-async/.dirs/system-config1:/tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file-async/.dirs/system-config2 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file-async/.dirs/config 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file-async/.dirs/system-data1:/tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file-async/.dirs/system-data2 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file-async/.dirs/data 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file-async/.dirs/state 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file-async/.dirs/runtime 2014s # Acquired a message bus connection 2014s # Acquired the name org.freedesktop.portal.Desktop 2014s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri/.dirs/config to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file-async/.dirs/config 2014s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 2014s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_9/gio486982831 2014s # Response emitted 2014s # fake-desktop-portal cancelled 2014s ok 6 /appinfo/portal-open-file-async 2014s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri-async/.dirs/home 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri-async/.dirs/cache 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri-async/.dirs/system-config1:/tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri-async/.dirs/system-config2 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri-async/.dirs/config 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri-async/.dirs/system-data1:/tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri-async/.dirs/system-data2 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri-async/.dirs/data 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri-async/.dirs/state 2014s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri-async/.dirs/runtime 2014s # Acquired a message bus connection 2014s # Acquired the name org.freedesktop.portal.Desktop 2014s ok - glib/dbus-appinfo.test 2014s # Running test: glib/g-file-info.test 2014s ok - glib/g-file-info.test 2014s # Running test: glib/relation.test 2014s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-file-async/.dirs/config to /tmp/test_dbus-appinfo_JQI8J3/appinfo/portal-open-uri-async/.dirs/config 2014s # Got open file request for http://example.com 2014s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_11/gio662060525 2014s # Response emitted 2014s # fake-desktop-portal cancelled 2014s ok 7 /appinfo/portal-open-uri-async 2014s # End of appinfo tests 2014s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2014s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2014s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2014s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2014s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2014s TAP version 14 2014s # random seed: R02S9ced843b22b2abe25929b9d4d588115a 2014s 1..6 2014s # Start of g-file-info tests 2014s ok 1 /g-file-info/test_g_file_info 2014s # /g-file-info/xattrs summary: Test setting and getting escaped xattrs 2014s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 2014s ok 2 /g-file-info/xattrs 2014s # /g-file-info/set-modified-date-time-precision summary: Test that g_file_info_set_modified_date_time() preserves microseconds 2014s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3116 2014s ok 3 /g-file-info/set-modified-date-time-precision 2014s # Start of test_g_file_info tests 2014s # /g-file-info/test_g_file_info/modification-time summary: Test that getting the modification time of a file works. 2014s ok 4 /g-file-info/test_g_file_info/modification-time 2014s # /g-file-info/test_g_file_info/access-time summary: Test that getting the access time of a file works. 2014s ok 5 /g-file-info/test_g_file_info/access-time 2014s # /g-file-info/test_g_file_info/creation-time summary: Test that getting the creation time of a file works. 2014s ok 6 /g-file-info/test_g_file_info/creation-time 2014s # End of test_g_file_info tests 2014s # End of g-file-info tests 2014s TAP version 14 2014s # random seed: R02Sf77a9edb4e8f8f536b6687d893769ba3 2014s 1..1 2014s # Start of glib tests 2014s ok 1 /glib/relation 2014s # End of glib tests 2014s ok - glib/relation.test 2014s # Running test: glib/mkenums.py.test 2014s TAP version 13 2014s ok 1 __main__.TestMkenums.test_available_in 2014s # glib-mkenums: /usr/bin/glib-mkenums 2014s # tmpdir: /tmp/tmp8c5i3ym6 2014s # rspfile: False 2014s # /tmp/tmp8c5i3ym6/tmpji_5pnge.h: 2014s # typedef enum { 2014s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 2014s # } GDBusServerFlags; 2014s # 2014s # /tmp/tmp8c5i3ym6/tmpyb9e61rb.template: 2014s # /*** BEGIN file-header ***/ 2014s # file-header 2014s # /*** END file-header ***/ 2014s # 2014s # /*** BEGIN file-production ***/ 2014s # file-production 2014s # filename: @filename@ 2014s # basename: @basename@ 2014s # /*** END file-production ***/ 2014s # 2014s # /*** BEGIN enumeration-production ***/ 2014s # enumeration-production 2014s # EnumName: @EnumName@ 2014s # enum_name: @enum_name@ 2014s # ENUMNAME: @ENUMNAME@ 2014s # ENUMSHORT: @ENUMSHORT@ 2014s # ENUMPREFIX: @ENUMPREFIX@ 2014s # enumsince: @enumsince@ 2014s # type: @type@ 2014s # Type: @Type@ 2014s # TYPE: @TYPE@ 2014s # /*** END enumeration-production ***/ 2014s # 2014s # /*** BEGIN value-header ***/ 2014s # value-header 2014s # EnumName: @EnumName@ 2014s # enum_name: @enum_name@ 2014s # ENUMNAME: @ENUMNAME@ 2014s # ENUMSHORT: @ENUMSHORT@ 2014s # ENUMPREFIX: @ENUMPREFIX@ 2014s # enumsince: @enumsince@ 2014s # type: @type@ 2014s # Type: @Type@ 2014s # TYPE: @TYPE@ 2014s # /*** END value-header ***/ 2014s # 2014s # /*** BEGIN value-production ***/ 2014s # value-production 2014s # VALUENAME: @VALUENAME@ 2014s # valuenick: @valuenick@ 2014s # valuenum: @valuenum@ 2014s # type: @type@ 2014s # Type: @Type@ 2014s # TYPE: @TYPE@ 2014s # /*** END value-production ***/ 2014s # 2014s # /*** BEGIN value-tail ***/ 2014s # value-tail 2014s # EnumName: @EnumName@ 2014s # enum_name: @enum_name@ 2014s # ENUMNAME: @ENUMNAME@ 2014s # ENUMSHORT: @ENUMSHORT@ 2014s # ENUMPREFIX: @ENUMPREFIX@ 2014s # enumsince: @enumsince@ 2014s # type: @type@ 2014s # Type: @Type@ 2014s # TYPE: @TYPE@ 2014s # /*** END value-tail ***/ 2014s # 2014s # /*** BEGIN comment ***/ 2014s # comment 2014s # comment: @comment@ 2014s # /*** END comment ***/ 2014s # 2014s # /*** BEGIN file-tail ***/ 2014s # file-tail 2014s # /*** END file-tail ***/ 2014s # 2014s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp8c5i3ym6/tmpyb9e61rb.template', '/tmp/tmp8c5i3ym6/tmpji_5pnge.h'] 2014s # Return code: 0 2014s # Output: 2014s # comment 2014s # 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. 2014s # 2014s # 2014s # file-header 2014s # file-production 2014s # filename: /tmp/tmp8c5i3ym6/tmpji_5pnge.h 2014s # basename: tmpji_5pnge.h 2014s # enumeration-production 2014s # EnumName: GDBusServerFlags 2014s # enum_name: g_dbus_server_flags 2014s # ENUMNAME: G_DBUS_SERVER_FLAGS 2014s # ENUMSHORT: DBUS_SERVER_FLAGS 2014s # ENUMPREFIX: G 2014s # enumsince: 2014s # type: flags 2014s # Type: Flags 2014s # TYPE: FLAGS 2014s # value-header 2014s # EnumName: GDBusServerFlags 2014s # enum_name: g_dbus_server_flags 2014s # ENUMNAME: G_DBUS_SERVER_FLAGS 2014s # ENUMSHORT: DBUS_SERVER_FLAGS 2014s # ENUMPREFIX: G 2014s # enumsince: 2014s # type: flags 2014s # Type: Flags 2014s # TYPE: FLAGS 2014s # value-production 2014s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 2014s # valuenick: user 2014s # valuenum: 4 2014s # type: flags 2014s # Type: Flags 2014s # TYPE: FLAGS 2014s # value-tail 2014s # EnumName: GDBusServerFlags 2014s # enum_name: g_dbus_server_flags 2014s # ENUMNAME: G_DBUS_SERVER_FLAGS 2014s # ENUMSHORT: DBUS_SERVER_FLAGS 2014s # ENUMPREFIX: G 2014s # enumsince: 2014s # type: flags 2014s # Type: Flags 2014s # TYPE: FLAGS 2014s # file-tail 2014s # 2014s # comment 2014s # comment: Generated data ends here 2014s # Error: 2015s ok 2 __main__.TestMkenums.test_comma_in_enum_value 2015s # glib-mkenums: /usr/bin/glib-mkenums 2015s # tmpdir: /tmp/tmpnw0yo9d0 2015s # rspfile: False 2015s # /tmp/tmpnw0yo9d0/tmpgyr8edsv.h: 2015s # typedef enum { 2015s # ENUM_VALUE_WITH_COMMA = ',', 2015s # } TestCommaEnum; 2015s # 2015s # /tmp/tmpnw0yo9d0/tmp_jbfzvpa.template: 2015s # /*** BEGIN file-header ***/ 2015s # file-header 2015s # /*** END file-header ***/ 2015s # 2015s # /*** BEGIN file-production ***/ 2015s # file-production 2015s # filename: @filename@ 2015s # basename: @basename@ 2015s # /*** END file-production ***/ 2015s # 2015s # /*** BEGIN enumeration-production ***/ 2015s # enumeration-production 2015s # EnumName: @EnumName@ 2015s # enum_name: @enum_name@ 2015s # ENUMNAME: @ENUMNAME@ 2015s # ENUMSHORT: @ENUMSHORT@ 2015s # ENUMPREFIX: @ENUMPREFIX@ 2015s # enumsince: @enumsince@ 2015s # type: @type@ 2015s # Type: @Type@ 2015s # TYPE: @TYPE@ 2015s # /*** END enumeration-production ***/ 2015s # 2015s # /*** BEGIN value-header ***/ 2015s # value-header 2015s # EnumName: @EnumName@ 2015s # enum_name: @enum_name@ 2015s # ENUMNAME: @ENUMNAME@ 2015s # ENUMSHORT: @ENUMSHORT@ 2015s # ENUMPREFIX: @ENUMPREFIX@ 2015s # enumsince: @enumsince@ 2015s # type: @type@ 2015s # Type: @Type@ 2015s # TYPE: @TYPE@ 2015s # /*** END value-header ***/ 2015s # 2015s # /*** BEGIN value-production ***/ 2015s # value-production 2015s # VALUENAME: @VALUENAME@ 2015s # valuenick: @valuenick@ 2015s # valuenum: @valuenum@ 2015s # type: @type@ 2015s # Type: @Type@ 2015s # TYPE: @TYPE@ 2015s # /*** END value-production ***/ 2015s # 2015s # /*** BEGIN value-tail ***/ 2015s # value-tail 2015s # EnumName: @EnumName@ 2015s # enum_name: @enum_name@ 2015s # ENUMNAME: @ENUMNAME@ 2015s # ENUMSHORT: @ENUMSHORT@ 2015s # ENUMPREFIX: @ENUMPREFIX@ 2015s # enumsince: @enumsince@ 2015s # type: @type@ 2015s # Type: @Type@ 2015s # TYPE: @TYPE@ 2015s # /*** END value-tail ***/ 2015s # 2015s # /*** BEGIN comment ***/ 2015s # comment 2015s # comment: @comment@ 2015s # /*** END comment ***/ 2015s # 2015s # /*** BEGIN file-tail ***/ 2015s # file-tail 2015s # /*** END file-tail ***/ 2015s # 2015s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpnw0yo9d0/tmp_jbfzvpa.template', '/tmp/tmpnw0yo9d0/tmpgyr8edsv.h'] 2015s # Return code: 0 2015s # Output: 2015s # comment 2015s # 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. 2015s # 2015s # 2015s # file-header 2015s # file-production 2015s # filename: /tmp/tmpnw0yo9d0/tmpgyr8edsv.h 2015s # basename: tmpgyr8edsv.h 2015s # enumeration-production 2015s # EnumName: TestCommaEnum 2015s # enum_name: test_comma_enum 2015s # ENUMNAME: TEST_COMMA_ENUM 2015s # ENUMSHORT: COMMA_ENUM 2015s # ENUMPREFIX: TEST 2015s # enumsince: 2015s # type: enum 2015s # Type: Enum 2015s # TYPE: ENUM 2015s # value-header 2015s # EnumName: TestCommaEnum 2015s # enum_name: test_comma_enum 2015s # ENUMNAME: TEST_COMMA_ENUM 2015s # ENUMSHORT: COMMA_ENUM 2015s # ENUMPREFIX: TEST 2015s # enumsince: 2015s # type: enum 2015s # Type: Enum 2015s # TYPE: ENUM 2015s # value-production 2015s # VALUENAME: ENUM_VALUE_WITH_COMMA 2015s # valuenick: comma 2015s # valuenum: 44 2015s # type: enum 2015s # Type: Enum 2015s # TYPE: ENUM 2015s # value-tail 2015s # EnumName: TestCommaEnum 2015s # enum_name: test_comma_enum 2015s # ENUMNAME: TEST_COMMA_ENUM 2015s # ENUMSHORT: COMMA_ENUM 2015s # ENUMPREFIX: TEST 2015s # enumsince: 2015s # type: enum 2015s # Type: Enum 2015s # TYPE: ENUM 2015s # file-tail 2015s # 2015s # comment 2015s # comment: Generated data ends here 2015s # Error: 2015s ok 3 __main__.TestMkenums.test_deprecated_in 2015s # glib-mkenums: /usr/bin/glib-mkenums 2015s # tmpdir: /tmp/tmpgcbpxna0 2015s # rspfile: False 2015s # /tmp/tmpgcbpxna0/tmpk_w_m7up.h: 2015s # typedef enum { 2015s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 2015s # } GDBusServerFlags; 2015s # 2015s # /tmp/tmpgcbpxna0/tmprdug8si5.template: 2015s # /*** BEGIN file-header ***/ 2015s # file-header 2015s # /*** END file-header ***/ 2015s # 2015s # /*** BEGIN file-production ***/ 2015s # file-production 2015s # filename: @filename@ 2015s # basename: @basename@ 2015s # /*** END file-production ***/ 2015s # 2015s # /*** BEGIN enumeration-production ***/ 2015s # enumeration-production 2015s # EnumName: @EnumName@ 2015s # enum_name: @enum_name@ 2015s # ENUMNAME: @ENUMNAME@ 2015s # ENUMSHORT: @ENUMSHORT@ 2015s # ENUMPREFIX: @ENUMPREFIX@ 2015s # enumsince: @enumsince@ 2015s # type: @type@ 2015s # Type: @Type@ 2015s # TYPE: @TYPE@ 2015s # /*** END enumeration-production ***/ 2015s # 2015s # /*** BEGIN value-header ***/ 2015s # value-header 2015s # EnumName: @EnumName@ 2015s # enum_name: @enum_name@ 2015s # ENUMNAME: @ENUMNAME@ 2015s # ENUMSHORT: @ENUMSHORT@ 2015s # ENUMPREFIX: @ENUMPREFIX@ 2015s # enumsince: @enumsince@ 2015s # type: @type@ 2015s # Type: @Type@ 2015s # TYPE: @TYPE@ 2015s # /*** END value-header ***/ 2015s # 2015s # /*** BEGIN value-production ***/ 2015s # value-production 2015s # VALUENAME: @VALUENAME@ 2015s # valuenick: @valuenick@ 2015s # valuenum: @valuenum@ 2015s # type: @type@ 2015s # Type: @Type@ 2015s # TYPE: @TYPE@ 2015s # /*** END value-production ***/ 2015s # 2015s # /*** BEGIN value-tail ***/ 2015s # value-tail 2015s # EnumName: @EnumName@ 2015s # enum_name: @enum_name@ 2015s # ENUMNAME: @ENUMNAME@ 2015s # ENUMSHORT: @ENUMSHORT@ 2015s # ENUMPREFIX: @ENUMPREFIX@ 2015s # enumsince: @enumsince@ 2015s # type: @type@ 2015s # Type: @Type@ 2015s # TYPE: @TYPE@ 2015s # /*** END value-tail ***/ 2015s # 2015s # /*** BEGIN comment ***/ 2015s # comment 2015s # comment: @comment@ 2015s # /*** END comment ***/ 2015s # 2015s # /*** BEGIN file-tail ***/ 2015s # file-tail 2015s # /*** END file-tail ***/ 2015s # 2015s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpgcbpxna0/tmprdug8si5.template', '/tmp/tmpgcbpxna0/tmpk_w_m7up.h'] 2015s # Return code: 0 2015s # Output: 2015s # comment 2015s # 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. 2015s # 2015s # 2015s # file-header 2015s # file-production 2015s # filename: /tmp/tmpgcbpxna0/tmpk_w_m7up.h 2015s # basename: tmpk_w_m7up.h 2015s # enumeration-production 2015s # EnumName: GDBusServerFlags 2015s # enum_name: g_dbus_server_flags 2015s # ENUMNAME: G_DBUS_SERVER_FLAGS 2015s # ENUMSHORT: DBUS_SERVER_FLAGS 2015s # ENUMPREFIX: G 2015s # enumsince: 2015s # type: flags 2015s # Type: Flags 2015s # TYPE: FLAGS 2015s # value-header 2015s # EnumName: GDBusServerFlags 2015s # enum_name: g_dbus_server_flags 2015s # ENUMNAME: G_DBUS_SERVER_FLAGS 2015s # ENUMSHORT: DBUS_SERVER_FLAGS 2015s # ENUMPREFIX: G 2015s # enumsince: 2015s # type: flags 2015s # Type: Flags 2015s # TYPE: FLAGS 2015s # value-production 2015s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 2015s # valuenick: user 2015s # valuenum: 4 2015s # type: flags 2015s # Type: Flags 2015s # TYPE: FLAGS 2015s # value-tail 2015s # EnumName: GDBusServerFlags 2015s # enum_name: g_dbus_server_flags 2015s # ENUMNAME: G_DBUS_SERVER_FLAGS 2015s # ENUMSHORT: DBUS_SERVER_FLAGS 2015s # ENUMPREFIX: G 2015s # enumsince: 2015s # type: flags 2015s # Type: Flags 2015s # TYPE: FLAGS 2015s # file-tail 2015s # 2015s # comment 2015s # comment: Generated data ends here 2015s # Error: 2015s ok 4 __main__.TestMkenums.test_deprecated_in_for 2015s # glib-mkenums: /usr/bin/glib-mkenums 2015s # tmpdir: /tmp/tmpnv6ecjyf 2015s # rspfile: False 2015s # /tmp/tmpnv6ecjyf/tmpkoqtw_vh.h: 2015s # typedef enum { 2015s # 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) 2015s # } GDBusServerFlags; 2015s # 2015s # /tmp/tmpnv6ecjyf/tmpipnl6bbe.template: 2015s # /*** BEGIN file-header ***/ 2015s # file-header 2015s # /*** END file-header ***/ 2015s # 2015s # /*** BEGIN file-production ***/ 2015s # file-production 2015s # filename: @filename@ 2015s # basename: @basename@ 2015s # /*** END file-production ***/ 2015s # 2015s # /*** BEGIN enumeration-production ***/ 2015s # enumeration-production 2015s # EnumName: @EnumName@ 2015s # enum_name: @enum_name@ 2015s # ENUMNAME: @ENUMNAME@ 2015s # ENUMSHORT: @ENUMSHORT@ 2015s # ENUMPREFIX: @ENUMPREFIX@ 2015s # enumsince: @enumsince@ 2015s # type: @type@ 2015s # Type: @Type@ 2015s # TYPE: @TYPE@ 2015s # /*** END enumeration-production ***/ 2015s # 2015s # /*** BEGIN value-header ***/ 2015s # value-header 2015s # EnumName: @EnumName@ 2015s # enum_name: @enum_name@ 2015s # ENUMNAME: @ENUMNAME@ 2015s # ENUMSHORT: @ENUMSHORT@ 2015s # ENUMPREFIX: @ENUMPREFIX@ 2015s # enumsince: @enumsince@ 2015s # type: @type@ 2015s # Type: @Type@ 2015s # TYPE: @TYPE@ 2015s # /*** END value-header ***/ 2015s # 2015s # /*** BEGIN value-production ***/ 2015s # value-production 2015s # VALUENAME: @VALUENAME@ 2015s # valuenick: @valuenick@ 2015s # valuenum: @valuenum@ 2015s # type: @type@ 2015s # Type: @Type@ 2015s # TYPE: @TYPE@ 2015s # /*** END value-production ***/ 2015s # 2015s # /*** BEGIN value-tail ***/ 2015s # value-tail 2015s # EnumName: @EnumName@ 2015s # enum_name: @enum_name@ 2015s # ENUMNAME: @ENUMNAME@ 2015s # ENUMSHORT: @ENUMSHORT@ 2015s # ENUMPREFIX: @ENUMPREFIX@ 2015s # enumsince: @enumsince@ 2015s # type: @type@ 2015s # Type: @Type@ 2015s # TYPE: @TYPE@ 2015s # /*** END value-tail ***/ 2015s # 2015s # /*** BEGIN comment ***/ 2015s # comment 2015s # comment: @comment@ 2015s # /*** END comment ***/ 2015s # 2015s # /*** BEGIN file-tail ***/ 2015s # file-tail 2015s # /*** END file-tail ***/ 2015s # 2015s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpnv6ecjyf/tmpipnl6bbe.template', '/tmp/tmpnv6ecjyf/tmpkoqtw_vh.h'] 2015s # Return code: 0 2015s # Output: 2015s # comment 2015s # 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. 2015s # 2015s # 2015s # file-header 2015s # file-production 2015s # filename: /tmp/tmpnv6ecjyf/tmpkoqtw_vh.h 2015s # basename: tmpkoqtw_vh.h 2015s # enumeration-production 2015s # EnumName: GDBusServerFlags 2015s # enum_name: g_dbus_server_flags 2015s # ENUMNAME: G_DBUS_SERVER_FLAGS 2015s # ENUMSHORT: DBUS_SERVER_FLAGS 2015s # ENUMPREFIX: G 2015s # enumsince: 2015s # type: flags 2015s # Type: Flags 2015s # TYPE: FLAGS 2015s # value-header 2015s # EnumName: GDBusServerFlags 2015s # enum_name: g_dbus_server_flags 2015s # ENUMNAME: G_DBUS_SERVER_FLAGS 2015s # ENUMSHORT: DBUS_SERVER_FLAGS 2015s # ENUMPREFIX: G 2015s # enumsince: 2015s # type: flags 2015s # Type: Flags 2015s # TYPE: FLAGS 2015s # value-production 2015s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 2015s # valuenick: user 2015s # valuenum: 4 2015s # type: flags 2015s # Type: Flags 2015s # TYPE: FLAGS 2015s # value-tail 2015s # EnumName: GDBusServerFlags 2015s # enum_name: g_dbus_server_flags 2015s # ENUMNAME: G_DBUS_SERVER_FLAGS 2015s # ENUMSHORT: DBUS_SERVER_FLAGS 2015s # ENUMPREFIX: G 2015s # enumsince: 2015s # type: flags 2015s # Type: Flags 2015s # TYPE: FLAGS 2015s # file-tail 2015s # 2015s # comment 2015s # comment: Generated data ends here 2015s # Error: 2015s ok 5 __main__.TestMkenums.test_empty_header 2015s # glib-mkenums: /usr/bin/glib-mkenums 2015s # tmpdir: /tmp/tmp44eapste 2015s # rspfile: False 2015s # /tmp/tmp44eapste/tmphkry9fzi.h: 2015s # /tmp/tmp44eapste/tmp4wktvedi.template: 2015s # /*** BEGIN file-header ***/ 2015s # file-header 2015s # /*** END file-header ***/ 2015s # 2015s # /*** BEGIN file-production ***/ 2015s # file-production 2015s # filename: @filename@ 2015s # basename: @basename@ 2015s # /*** END file-production ***/ 2015s # 2015s # /*** BEGIN enumeration-production ***/ 2015s # enumeration-production 2015s # EnumName: @EnumName@ 2015s # enum_name: @enum_name@ 2015s # ENUMNAME: @ENUMNAME@ 2015s # ENUMSHORT: @ENUMSHORT@ 2015s # ENUMPREFIX: @ENUMPREFIX@ 2015s # enumsince: @enumsince@ 2015s # type: @type@ 2015s # Type: @Type@ 2015s # TYPE: @TYPE@ 2015s # /*** END enumeration-production ***/ 2015s # 2015s # /*** BEGIN value-header ***/ 2015s # value-header 2015s # EnumName: @EnumName@ 2015s # enum_name: @enum_name@ 2015s # ENUMNAME: @ENUMNAME@ 2015s # ENUMSHORT: @ENUMSHORT@ 2015s # ENUMPREFIX: @ENUMPREFIX@ 2015s # enumsince: @enumsince@ 2015s # type: @type@ 2015s # Type: @Type@ 2015s # TYPE: @TYPE@ 2015s # /*** END value-header ***/ 2015s # 2015s # /*** BEGIN value-production ***/ 2015s # value-production 2015s # VALUENAME: @VALUENAME@ 2015s # valuenick: @valuenick@ 2015s # valuenum: @valuenum@ 2015s # type: @type@ 2015s # Type: @Type@ 2015s # TYPE: @TYPE@ 2015s # /*** END value-production ***/ 2015s # 2015s # /*** BEGIN value-tail ***/ 2015s # value-tail 2015s # EnumName: @EnumName@ 2015s # enum_name: @enum_name@ 2015s # ENUMNAME: @ENUMNAME@ 2015s # ENUMSHORT: @ENUMSHORT@ 2015s # ENUMPREFIX: @ENUMPREFIX@ 2015s # enumsince: @enumsince@ 2015s # type: @type@ 2015s # Type: @Type@ 2015s # TYPE: @TYPE@ 2015s # /*** END value-tail ***/ 2015s # 2015s # /*** BEGIN comment ***/ 2015s # comment 2015s # comment: @comment@ 2015s # /*** END comment ***/ 2015s # 2015s # /*** BEGIN file-tail ***/ 2015s # file-tail 2015s # /*** END file-tail ***/ 2015s # 2015s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp44eapste/tmp4wktvedi.template', '/tmp/tmp44eapste/tmphkry9fzi.h'] 2015s # Return code: 0 2015s # Output: 2015s # comment 2015s # 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. 2015s # 2015s # 2015s # file-header 2015s # file-tail 2015s # 2015s # comment 2015s # comment: Generated data ends here 2015s # Error: 2015s ok 6 __main__.TestMkenums.test_empty_template 2015s # glib-mkenums: /usr/bin/glib-mkenums 2015s # tmpdir: /tmp/tmp2a_edug_ 2015s # rspfile: False 2015s # /tmp/tmp2a_edug_/tmp5ofqxy_9.template: 2015s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp2a_edug_/tmp5ofqxy_9.template'] 2015s # Return code: 0 2015s # Output: 2015s # /* 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. */ 2015s # 2015s # 2015s # /* Generated data ends here */ 2015s # Error: 2016s ok 7 __main__.TestMkenums.test_enum_name 2016s # glib-mkenums: /usr/bin/glib-mkenums 2016s # tmpdir: /tmp/tmpnzpaz_0q 2016s # rspfile: False 2016s # /tmp/tmpnzpaz_0q/tmpi1whsoe7.h: 2016s # typedef enum _SomeEnumIdentifier { 2016s # ENUM_VALUE 2016s # } SomeEnumIdentifier; 2016s # 2016s # /tmp/tmpnzpaz_0q/tmpxmj91rwk.template: 2016s # /*** BEGIN file-header ***/ 2016s # file-header 2016s # /*** END file-header ***/ 2016s # 2016s # /*** BEGIN file-production ***/ 2016s # file-production 2016s # filename: @filename@ 2016s # basename: @basename@ 2016s # /*** END file-production ***/ 2016s # 2016s # /*** BEGIN enumeration-production ***/ 2016s # enumeration-production 2016s # EnumName: @EnumName@ 2016s # enum_name: @enum_name@ 2016s # ENUMNAME: @ENUMNAME@ 2016s # ENUMSHORT: @ENUMSHORT@ 2016s # ENUMPREFIX: @ENUMPREFIX@ 2016s # enumsince: @enumsince@ 2016s # type: @type@ 2016s # Type: @Type@ 2016s # TYPE: @TYPE@ 2016s # /*** END enumeration-production ***/ 2016s # 2016s # /*** BEGIN value-header ***/ 2016s # value-header 2016s # EnumName: @EnumName@ 2016s # enum_name: @enum_name@ 2016s # ENUMNAME: @ENUMNAME@ 2016s # ENUMSHORT: @ENUMSHORT@ 2016s # ENUMPREFIX: @ENUMPREFIX@ 2016s # enumsince: @enumsince@ 2016s # type: @type@ 2016s # Type: @Type@ 2016s # TYPE: @TYPE@ 2016s # /*** END value-header ***/ 2016s # 2016s # /*** BEGIN value-production ***/ 2016s # value-production 2016s # VALUENAME: @VALUENAME@ 2016s # valuenick: @valuenick@ 2016s # valuenum: @valuenum@ 2016s # type: @type@ 2016s # Type: @Type@ 2016s # TYPE: @TYPE@ 2016s # /*** END value-production ***/ 2016s # 2016s # /*** BEGIN value-tail ***/ 2016s # value-tail 2016s # EnumName: @EnumName@ 2016s # enum_name: @enum_name@ 2016s # ENUMNAME: @ENUMNAME@ 2016s # ENUMSHORT: @ENUMSHORT@ 2016s # ENUMPREFIX: @ENUMPREFIX@ 2016s # enumsince: @enumsince@ 2016s # type: @type@ 2016s # Type: @Type@ 2016s # TYPE: @TYPE@ 2016s # /*** END value-tail ***/ 2016s # 2016s # /*** BEGIN comment ***/ 2016s # comment 2016s # comment: @comment@ 2016s # /*** END comment ***/ 2016s # 2016s # /*** BEGIN file-tail ***/ 2016s # file-tail 2016s # /*** END file-tail ***/ 2016s # 2016s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpnzpaz_0q/tmpxmj91rwk.template', '/tmp/tmpnzpaz_0q/tmpi1whsoe7.h'] 2016s # Return code: 0 2016s # Output: 2016s # comment 2016s # 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. 2016s # 2016s # 2016s # file-header 2016s # file-production 2016s # filename: /tmp/tmpnzpaz_0q/tmpi1whsoe7.h 2016s # basename: tmpi1whsoe7.h 2016s # enumeration-production 2016s # EnumName: SomeEnumIdentifier 2016s # enum_name: some_enum_identifier 2016s # ENUMNAME: SOME_ENUM_IDENTIFIER 2016s # ENUMSHORT: ENUM_IDENTIFIER 2016s # ENUMPREFIX: SOME 2016s # enumsince: 2016s # type: enum 2016s # Type: Enum 2016s # TYPE: ENUM 2016s # value-header 2016s # EnumName: SomeEnumIdentifier 2016s # enum_name: some_enum_identifier 2016s # ENUMNAME: SOME_ENUM_IDENTIFIER 2016s # ENUMSHORT: ENUM_IDENTIFIER 2016s # ENUMPREFIX: SOME 2016s # enumsince: 2016s # type: enum 2016s # Type: Enum 2016s # TYPE: ENUM 2016s # value-production 2016s # VALUENAME: ENUM_VALUE 2016s # valuenick: value 2016s # valuenum: 0 2016s # type: enum 2016s # Type: Enum 2016s # TYPE: ENUM 2016s # value-tail 2016s # EnumName: SomeEnumIdentifier 2016s # enum_name: some_enum_identifier 2016s # ENUMNAME: SOME_ENUM_IDENTIFIER 2016s # ENUMSHORT: ENUM_IDENTIFIER 2016s # ENUMPREFIX: SOME 2016s # enumsince: 2016s # type: enum 2016s # Type: Enum 2016s # TYPE: ENUM 2016s # file-tail 2016s # 2016s # comment 2016s # comment: Generated data ends here 2016s # Error: 2016s ok 8 __main__.TestMkenums.test_enum_private_public 2016s # glib-mkenums: /usr/bin/glib-mkenums 2016s # tmpdir: /tmp/tmp0sfbh5pl 2016s # rspfile: False 2016s # /tmp/tmp0sfbh5pl/tmpmsydr2l_.h: 2016s # typedef enum { 2016s # ENUM_VALUE_PUBLIC1, 2016s # /*< private >*/ 2016s # ENUM_VALUE_PRIVATE, 2016s # } SomeEnumA 2016s # 2016s # /tmp/tmp0sfbh5pl/tmp45l7rk76.template: 2016s # /*** BEGIN file-header ***/ 2016s # file-header 2016s # /*** END file-header ***/ 2016s # 2016s # /*** BEGIN file-production ***/ 2016s # file-production 2016s # filename: @filename@ 2016s # basename: @basename@ 2016s # /*** END file-production ***/ 2016s # 2016s # /*** BEGIN enumeration-production ***/ 2016s # enumeration-production 2016s # EnumName: @EnumName@ 2016s # enum_name: @enum_name@ 2016s # ENUMNAME: @ENUMNAME@ 2016s # ENUMSHORT: @ENUMSHORT@ 2016s # ENUMPREFIX: @ENUMPREFIX@ 2016s # enumsince: @enumsince@ 2016s # type: @type@ 2016s # Type: @Type@ 2016s # TYPE: @TYPE@ 2016s # /*** END enumeration-production ***/ 2016s # 2016s # /*** BEGIN value-header ***/ 2016s # value-header 2016s # EnumName: @EnumName@ 2016s # enum_name: @enum_name@ 2016s # ENUMNAME: @ENUMNAME@ 2016s # ENUMSHORT: @ENUMSHORT@ 2016s # ENUMPREFIX: @ENUMPREFIX@ 2016s # enumsince: @enumsince@ 2016s # type: @type@ 2016s # Type: @Type@ 2016s # TYPE: @TYPE@ 2016s # /*** END value-header ***/ 2016s # 2016s # /*** BEGIN value-production ***/ 2016s # value-production 2016s # VALUENAME: @VALUENAME@ 2016s # valuenick: @valuenick@ 2016s # valuenum: @valuenum@ 2016s # type: @type@ 2016s # Type: @Type@ 2016s # TYPE: @TYPE@ 2016s # /*** END value-production ***/ 2016s # 2016s # /*** BEGIN value-tail ***/ 2016s # value-tail 2016s # EnumName: @EnumName@ 2016s # enum_name: @enum_name@ 2016s # ENUMNAME: @ENUMNAME@ 2016s # ENUMSHORT: @ENUMSHORT@ 2016s # ENUMPREFIX: @ENUMPREFIX@ 2016s # enumsince: @enumsince@ 2016s # type: @type@ 2016s # Type: @Type@ 2016s # TYPE: @TYPE@ 2016s # /*** END value-tail ***/ 2016s # 2016s # /*** BEGIN comment ***/ 2016s # comment 2016s # comment: @comment@ 2016s # /*** END comment ***/ 2016s # 2016s # /*** BEGIN file-tail ***/ 2016s # file-tail 2016s # /*** END file-tail ***/ 2016s # 2016s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp0sfbh5pl/tmp45l7rk76.template', '/tmp/tmp0sfbh5pl/tmpmsydr2l_.h'] 2016s # Return code: 0 2016s # Output: 2016s # comment 2016s # 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. 2016s # 2016s # 2016s # file-header 2016s # file-production 2016s # filename: /tmp/tmp0sfbh5pl/tmpmsydr2l_.h 2016s # basename: tmpmsydr2l_.h 2016s # enumeration-production 2016s # EnumName: SomeEnumA 2016s # enum_name: some_enum_a 2016s # ENUMNAME: SOME_ENUM_A 2016s # ENUMSHORT: ENUM_A 2016s # ENUMPREFIX: SOME 2016s # enumsince: 2016s # type: enum 2016s # Type: Enum 2016s # TYPE: ENUM 2016s # value-header 2016s # EnumName: SomeEnumA 2016s # enum_name: some_enum_a 2016s # ENUMNAME: SOME_ENUM_A 2016s # ENUMSHORT: ENUM_A 2016s # ENUMPREFIX: SOME 2016s # enumsince: 2016s # type: enum 2016s # Type: Enum 2016s # TYPE: ENUM 2016s # value-production 2016s # VALUENAME: ENUM_VALUE_PUBLIC1 2016s # valuenick: public1 2016s # valuenum: 0 2016s # type: enum 2016s # Type: Enum 2016s # TYPE: ENUM 2016s # value-tail 2016s # EnumName: SomeEnumA 2016s # enum_name: some_enum_a 2016s # ENUMNAME: SOME_ENUM_A 2016s # ENUMSHORT: ENUM_A 2016s # ENUMPREFIX: SOME 2016s # enumsince: 2016s # type: enum 2016s # Type: Enum 2016s # TYPE: ENUM 2016s # file-tail 2016s # 2016s # comment 2016s # comment: Generated data ends here 2016s # Error: 2016s # 2016s # /tmp/tmp0sfbh5pl/tmpuw33bp78.h: 2016s # typedef enum { 2016s # /*< private >*/ 2016s # ENUM_VALUE_PRIVATE, 2016s # /*< public >*/ 2016s # ENUM_VALUE_PUBLIC2, 2016s # } SomeEnumB; 2016s # 2016s # /tmp/tmp0sfbh5pl/tmpgdk2_tdx.template: 2016s # /*** BEGIN file-header ***/ 2016s # file-header 2016s # /*** END file-header ***/ 2016s # 2016s # /*** BEGIN file-production ***/ 2016s # file-production 2016s # filename: @filename@ 2016s # basename: @basename@ 2016s # /*** END file-production ***/ 2016s # 2016s # /*** BEGIN enumeration-production ***/ 2016s # enumeration-production 2016s # EnumName: @EnumName@ 2016s # enum_name: @enum_name@ 2016s # ENUMNAME: @ENUMNAME@ 2016s # ENUMSHORT: @ENUMSHORT@ 2016s # ENUMPREFIX: @ENUMPREFIX@ 2016s # enumsince: @enumsince@ 2016s # type: @type@ 2016s # Type: @Type@ 2016s # TYPE: @TYPE@ 2016s # /*** END enumeration-production ***/ 2016s # 2016s # /*** BEGIN value-header ***/ 2016s # value-header 2016s # EnumName: @EnumName@ 2016s # enum_name: @enum_name@ 2016s # ENUMNAME: @ENUMNAME@ 2016s # ENUMSHORT: @ENUMSHORT@ 2016s # ENUMPREFIX: @ENUMPREFIX@ 2016s # enumsince: @enumsince@ 2016s # type: @type@ 2016s # Type: @Type@ 2016s # TYPE: @TYPE@ 2016s # /*** END value-header ***/ 2016s # 2016s # /*** BEGIN value-production ***/ 2016s # value-production 2016s # VALUENAME: @VALUENAME@ 2016s # valuenick: @valuenick@ 2016s # valuenum: @valuenum@ 2016s # type: @type@ 2016s # Type: @Type@ 2016s # TYPE: @TYPE@ 2016s # /*** END value-production ***/ 2016s # 2016s # /*** BEGIN value-tail ***/ 2016s # value-tail 2016s # EnumName: @EnumName@ 2016s # enum_name: @enum_name@ 2016s # ENUMNAME: @ENUMNAME@ 2016s # ENUMSHORT: @ENUMSHORT@ 2016s # ENUMPREFIX: @ENUMPREFIX@ 2016s # enumsince: @enumsince@ 2016s # type: @type@ 2016s # Type: @Type@ 2016s # TYPE: @TYPE@ 2016s # /*** END value-tail ***/ 2016s # 2016s # /*** BEGIN comment ***/ 2016s # comment 2016s # comment: @comment@ 2016s # /*** END comment ***/ 2016s # 2016s # /*** BEGIN file-tail ***/ 2016s # file-tail 2016s # /*** END file-tail ***/ 2016s # 2016s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp0sfbh5pl/tmpgdk2_tdx.template', '/tmp/tmp0sfbh5pl/tmpuw33bp78.h'] 2016s # Return code: 0 2016s # Output: 2016s # comment 2016s # 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. 2016s # 2016s # 2016s # file-header 2016s # file-production 2016s # filename: /tmp/tmp0sfbh5pl/tmpuw33bp78.h 2016s # basename: tmpuw33bp78.h 2016s # enumeration-production 2016s # EnumName: SomeEnumB 2016s # enum_name: some_enum_b 2016s # ENUMNAME: SOME_ENUM_B 2016s # ENUMSHORT: ENUM_B 2016s # ENUMPREFIX: SOME 2016s # enumsince: 2016s # type: enum 2016s # Type: Enum 2016s # TYPE: ENUM 2016s # value-header 2016s # EnumName: SomeEnumB 2016s # enum_name: some_enum_b 2016s # ENUMNAME: SOME_ENUM_B 2016s # ENUMSHORT: ENUM_B 2016s # ENUMPREFIX: SOME 2016s # enumsince: 2016s # type: enum 2016s # Type: Enum 2016s # TYPE: ENUM 2016s # value-production 2016s # VALUENAME: ENUM_VALUE_PUBLIC2 2016s # valuenick: public2 2016s # valuenum: 1 2016s # type: enum 2016s # Type: Enum 2016s # TYPE: ENUM 2016s # value-tail 2016s # EnumName: SomeEnumB 2016s # enum_name: some_enum_b 2016s # ENUMNAME: SOME_ENUM_B 2016s # ENUMSHORT: ENUM_B 2016s # ENUMPREFIX: SOME 2016s # enumsince: 2016s # type: enum 2016s # Type: Enum 2016s # TYPE: ENUM 2016s # file-tail 2016s # 2016s # comment 2016s # comment: Generated data ends here 2016s # Error: 2017s ok 9 __main__.TestMkenums.test_enum_symbolic_expression 2017s # glib-mkenums: /usr/bin/glib-mkenums 2017s # tmpdir: /tmp/tmpfbx21cbq 2017s # rspfile: False 2017s # /tmp/tmpfbx21cbq/tmpkjwcx9or.h: 2017s # typedef enum { 2017s # /*< private >*/ 2017s # ENUM_VALUE_PRIVATE = 5, 2017s # /*< public >*/ 2017s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 2017s # } TestSymbolicEnum; 2017s # 2017s # /tmp/tmpfbx21cbq/tmprkmdw9v8.template: 2017s # /*** BEGIN file-header ***/ 2017s # file-header 2017s # /*** END file-header ***/ 2017s # 2017s # /*** BEGIN file-production ***/ 2017s # file-production 2017s # filename: @filename@ 2017s # basename: @basename@ 2017s # /*** END file-production ***/ 2017s # 2017s # /*** BEGIN enumeration-production ***/ 2017s # enumeration-production 2017s # EnumName: @EnumName@ 2017s # enum_name: @enum_name@ 2017s # ENUMNAME: @ENUMNAME@ 2017s # ENUMSHORT: @ENUMSHORT@ 2017s # ENUMPREFIX: @ENUMPREFIX@ 2017s # enumsince: @enumsince@ 2017s # type: @type@ 2017s # Type: @Type@ 2017s # TYPE: @TYPE@ 2017s # /*** END enumeration-production ***/ 2017s # 2017s # /*** BEGIN value-header ***/ 2017s # value-header 2017s # EnumName: @EnumName@ 2017s # enum_name: @enum_name@ 2017s # ENUMNAME: @ENUMNAME@ 2017s # ENUMSHORT: @ENUMSHORT@ 2017s # ENUMPREFIX: @ENUMPREFIX@ 2017s # enumsince: @enumsince@ 2017s # type: @type@ 2017s # Type: @Type@ 2017s # TYPE: @TYPE@ 2017s # /*** END value-header ***/ 2017s # 2017s # /*** BEGIN value-production ***/ 2017s # value-production 2017s # VALUENAME: @VALUENAME@ 2017s # valuenick: @valuenick@ 2017s # valuenum: @valuenum@ 2017s # type: @type@ 2017s # Type: @Type@ 2017s # TYPE: @TYPE@ 2017s # /*** END value-production ***/ 2017s # 2017s # /*** BEGIN value-tail ***/ 2017s # value-tail 2017s # EnumName: @EnumName@ 2017s # enum_name: @enum_name@ 2017s # ENUMNAME: @ENUMNAME@ 2017s # ENUMSHORT: @ENUMSHORT@ 2017s # ENUMPREFIX: @ENUMPREFIX@ 2017s # enumsince: @enumsince@ 2017s # type: @type@ 2017s # Type: @Type@ 2017s # TYPE: @TYPE@ 2017s # /*** END value-tail ***/ 2017s # 2017s # /*** BEGIN comment ***/ 2017s # comment 2017s # comment: @comment@ 2017s # /*** END comment ***/ 2017s # 2017s # /*** BEGIN file-tail ***/ 2017s # file-tail 2017s # /*** END file-tail ***/ 2017s # 2017s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpfbx21cbq/tmprkmdw9v8.template', '/tmp/tmpfbx21cbq/tmpkjwcx9or.h'] 2017s # Return code: 0 2017s # Output: 2017s # comment 2017s # 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. 2017s # 2017s # 2017s # file-header 2017s # file-production 2017s # filename: /tmp/tmpfbx21cbq/tmpkjwcx9or.h 2017s # basename: tmpkjwcx9or.h 2017s # enumeration-production 2017s # EnumName: TestSymbolicEnum 2017s # enum_name: test_symbolic_enum 2017s # ENUMNAME: TEST_SYMBOLIC_ENUM 2017s # ENUMSHORT: SYMBOLIC_ENUM 2017s # ENUMPREFIX: TEST 2017s # enumsince: 2017s # type: enum 2017s # Type: Enum 2017s # TYPE: ENUM 2017s # value-header 2017s # EnumName: TestSymbolicEnum 2017s # enum_name: test_symbolic_enum 2017s # ENUMNAME: TEST_SYMBOLIC_ENUM 2017s # ENUMSHORT: SYMBOLIC_ENUM 2017s # ENUMPREFIX: TEST 2017s # enumsince: 2017s # type: enum 2017s # Type: Enum 2017s # TYPE: ENUM 2017s # value-production 2017s # VALUENAME: ENUM_VALUE_PUBLIC 2017s # valuenick: public 2017s # valuenum: 7 2017s # type: enum 2017s # Type: Enum 2017s # TYPE: ENUM 2017s # value-tail 2017s # EnumName: TestSymbolicEnum 2017s # enum_name: test_symbolic_enum 2017s # ENUMNAME: TEST_SYMBOLIC_ENUM 2017s # ENUMSHORT: SYMBOLIC_ENUM 2017s # ENUMPREFIX: TEST 2017s # enumsince: 2017s # type: enum 2017s # Type: Enum 2017s # TYPE: ENUM 2017s # file-tail 2017s # 2017s # comment 2017s # comment: Generated data ends here 2017s # Error: 2017s ok 10 __main__.TestMkenums.test_filename_basename_in_fhead_ftail 2017s # glib-mkenums: /usr/bin/glib-mkenums 2017s # tmpdir: /tmp/tmpip_h8u7t 2017s # rspfile: False 2017s # /tmp/tmpip_h8u7t/tmpyiqg30r5.template: 2017s # /*** BEGIN file-header ***/ 2017s # file-header 2017s # filename: @filename@ 2017s # basename: @basename@ 2017s # /*** END file-header ***/ 2017s # 2017s # /*** BEGIN comment ***/ 2017s # comment 2017s # comment: @comment@ 2017s # /*** END comment ***/ 2017s # 2017s # /*** BEGIN file-tail ***/ 2017s # file-tail 2017s # filename: @filename@ 2017s # basename: @basename@ 2017s # /*** END file-tail ***/ 2017s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpip_h8u7t/tmpyiqg30r5.template'] 2017s # Return code: 0 2017s # Output: 2017s # comment 2017s # 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. 2017s # 2017s # 2017s # file-header 2017s # filename: @filename@ 2017s # basename: @basename@ 2017s # file-tail 2017s # filename: @filename@ 2017s # basename: @basename@ 2017s # 2017s # comment 2017s # comment: Generated data ends here 2017s # Error: 2017s # WARNING: @filename@ used in file-header section. 2017s # WARNING: @basename@ used in file-header section. 2017s # WARNING: @filename@ used in file-tail section. 2017s # WARNING: @basename@ used in file-tail section. 2017s # Executing: glib/mkenums.py.test 2017s ok 11 __main__.TestMkenums.test_help 2017s # glib-mkenums: /usr/bin/glib-mkenums 2017s # tmpdir: /tmp/tmphlph8ekt 2017s # rspfile: False 2017s # Running: ['/usr/bin/glib-mkenums', '--help'] 2017s # Return code: 0 2017s # Output: 2017s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 2017s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 2017s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 2017s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 2017s # [--comments COMMENT_TMPL] [--template TEMPLATE] 2017s # [--output OUTPUT] [--version] 2017s # [args ...] 2017s # 2017s # positional arguments: 2017s # args One or more input files, or a single argument 2017s # @rspfile_path pointing to a file that contains the 2017s # actual arguments 2017s # 2017s # options: 2017s # -h, --help show this help message and exit 2017s # --identifier-prefix IDPREFIX 2017s # Identifier prefix 2017s # --symbol-prefix SYMPREFIX 2017s # Symbol prefix 2017s # --fhead FHEAD Output file header 2017s # --ftail FTAIL Output file footer 2017s # --fprod FPROD Put out TEXT every time a new input file is being 2017s # processed. 2017s # --eprod EPROD Per enum text, produced prior to value iterations 2017s # --vhead VHEAD Value header, produced before iterating over enum 2017s # values 2017s # --vprod VPROD Value text, produced for each enum value. 2017s # --vtail VTAIL Value tail, produced after iterating over enum values 2017s # --comments COMMENT_TMPL 2017s # Comment structure 2017s # --template TEMPLATE Template file 2017s # --output OUTPUT 2017s # --version, -v Print version information 2017s # 2017s # Production text substitutions: 2017s # @EnumName@ PrefixTheXEnum 2017s # @enum_name@ prefix_the_xenum 2017s # @ENUMNAME@ PREFIX_THE_XENUM 2017s # @ENUMSHORT@ THE_XENUM 2017s # @ENUMPREFIX@ PREFIX 2017s # @enumsince@ the user-provided since value given 2017s # @VALUENAME@ PREFIX_THE_XVALUE 2017s # @valuenick@ the-xvalue 2017s # @valuenum@ the integer value (limited support, Since: 2.26) 2017s # @type@ either enum or flags 2017s # @Type@ either Enum or Flags 2017s # @TYPE@ either ENUM or FLAGS 2017s # @filename@ name of current input file 2017s # @basename@ base name of the current input file (Since: 2.22) 2017s # Error: 2018s ok 12 __main__.TestMkenums.test_no_args 2018s # glib-mkenums: /usr/bin/glib-mkenums 2018s # tmpdir: /tmp/tmppn7zlzs_ 2018s # rspfile: False 2018s # Running: ['/usr/bin/glib-mkenums'] 2018s # Return code: 0 2018s # Output: 2018s # /* 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. */ 2018s # 2018s # 2018s # /* Generated data ends here */ 2018s # Error: 2018s ok 13 __main__.TestMkenums.test_no_headers 2018s # glib-mkenums: /usr/bin/glib-mkenums 2018s # tmpdir: /tmp/tmpikg7lzmo 2018s # rspfile: False 2018s # /tmp/tmpikg7lzmo/tmpcemxqz7e.template: 2018s # /*** BEGIN file-header ***/ 2018s # file-header 2018s # /*** END file-header ***/ 2018s # 2018s # /*** BEGIN file-production ***/ 2018s # file-production 2018s # filename: @filename@ 2018s # basename: @basename@ 2018s # /*** END file-production ***/ 2018s # 2018s # /*** BEGIN enumeration-production ***/ 2018s # enumeration-production 2018s # EnumName: @EnumName@ 2018s # enum_name: @enum_name@ 2018s # ENUMNAME: @ENUMNAME@ 2018s # ENUMSHORT: @ENUMSHORT@ 2018s # ENUMPREFIX: @ENUMPREFIX@ 2018s # enumsince: @enumsince@ 2018s # type: @type@ 2018s # Type: @Type@ 2018s # TYPE: @TYPE@ 2018s # /*** END enumeration-production ***/ 2018s # 2018s # /*** BEGIN value-header ***/ 2018s # value-header 2018s # EnumName: @EnumName@ 2018s # enum_name: @enum_name@ 2018s # ENUMNAME: @ENUMNAME@ 2018s # ENUMSHORT: @ENUMSHORT@ 2018s # ENUMPREFIX: @ENUMPREFIX@ 2018s # enumsince: @enumsince@ 2018s # type: @type@ 2018s # Type: @Type@ 2018s # TYPE: @TYPE@ 2018s # /*** END value-header ***/ 2018s # 2018s # /*** BEGIN value-production ***/ 2018s # value-production 2018s # VALUENAME: @VALUENAME@ 2018s # valuenick: @valuenick@ 2018s # valuenum: @valuenum@ 2018s # type: @type@ 2018s # Type: @Type@ 2018s # TYPE: @TYPE@ 2018s # /*** END value-production ***/ 2018s # 2018s # /*** BEGIN value-tail ***/ 2018s # value-tail 2018s # EnumName: @EnumName@ 2018s # enum_name: @enum_name@ 2018s # ENUMNAME: @ENUMNAME@ 2018s # ENUMSHORT: @ENUMSHORT@ 2018s # ENUMPREFIX: @ENUMPREFIX@ 2018s # enumsince: @enumsince@ 2018s # type: @type@ 2018s # Type: @Type@ 2018s # TYPE: @TYPE@ 2018s # /*** END value-tail ***/ 2018s # 2018s # /*** BEGIN comment ***/ 2018s # comment 2018s # comment: @comment@ 2018s # /*** END comment ***/ 2018s # 2018s # /*** BEGIN file-tail ***/ 2018s # file-tail 2018s # /*** END file-tail ***/ 2018s # 2018s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpikg7lzmo/tmpcemxqz7e.template'] 2018s # Return code: 0 2018s # Output: 2018s # comment 2018s # 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. 2018s # 2018s # 2018s # file-header 2018s # file-tail 2018s # 2018s # comment 2018s # comment: Generated data ends here 2018s # Error: 2019s ok 14 __main__.TestMkenums.test_no_nick 2019s # glib-mkenums: /usr/bin/glib-mkenums 2019s # tmpdir: /tmp/tmpclkmu6vq 2019s # rspfile: False 2019s # /tmp/tmpclkmu6vq/tmp8cgovklg.h: 2019s # typedef enum { 2019s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 2019s # } GeglSamplerType; 2019s # 2019s # /tmp/tmpclkmu6vq/tmprdj3j03x.template: 2019s # /*** BEGIN file-header ***/ 2019s # file-header 2019s # /*** END file-header ***/ 2019s # 2019s # /*** BEGIN file-production ***/ 2019s # file-production 2019s # filename: @filename@ 2019s # basename: @basename@ 2019s # /*** END file-production ***/ 2019s # 2019s # /*** BEGIN enumeration-production ***/ 2019s # enumeration-production 2019s # EnumName: @EnumName@ 2019s # enum_name: @enum_name@ 2019s # ENUMNAME: @ENUMNAME@ 2019s # ENUMSHORT: @ENUMSHORT@ 2019s # ENUMPREFIX: @ENUMPREFIX@ 2019s # enumsince: @enumsince@ 2019s # type: @type@ 2019s # Type: @Type@ 2019s # TYPE: @TYPE@ 2019s # /*** END enumeration-production ***/ 2019s # 2019s # /*** BEGIN value-header ***/ 2019s # value-header 2019s # EnumName: @EnumName@ 2019s # enum_name: @enum_name@ 2019s # ENUMNAME: @ENUMNAME@ 2019s # ENUMSHORT: @ENUMSHORT@ 2019s # ENUMPREFIX: @ENUMPREFIX@ 2019s # enumsince: @enumsince@ 2019s # type: @type@ 2019s # Type: @Type@ 2019s # TYPE: @TYPE@ 2019s # /*** END value-header ***/ 2019s # 2019s # /*** BEGIN value-production ***/ 2019s # value-production 2019s # VALUENAME: @VALUENAME@ 2019s # valuenick: @valuenick@ 2019s # valuenum: @valuenum@ 2019s # type: @type@ 2019s # Type: @Type@ 2019s # TYPE: @TYPE@ 2019s # /*** END value-production ***/ 2019s # 2019s # /*** BEGIN value-tail ***/ 2019s # value-tail 2019s # EnumName: @EnumName@ 2019s # enum_name: @enum_name@ 2019s # ENUMNAME: @ENUMNAME@ 2019s # ENUMSHORT: @ENUMSHORT@ 2019s # ENUMPREFIX: @ENUMPREFIX@ 2019s # enumsince: @enumsince@ 2019s # type: @type@ 2019s # Type: @Type@ 2019s # TYPE: @TYPE@ 2019s # /*** END value-tail ***/ 2019s # 2019s # /*** BEGIN comment ***/ 2019s # comment 2019s # comment: @comment@ 2019s # /*** END comment ***/ 2019s # 2019s # /*** BEGIN file-tail ***/ 2019s # file-tail 2019s # /*** END file-tail ***/ 2019s # 2019s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpclkmu6vq/tmprdj3j03x.template', '/tmp/tmpclkmu6vq/tmp8cgovklg.h'] 2019s # Return code: 0 2019s # Output: 2019s # comment 2019s # 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. 2019s # 2019s # 2019s # file-header 2019s # file-production 2019s # filename: /tmp/tmpclkmu6vq/tmp8cgovklg.h 2019s # basename: tmp8cgovklg.h 2019s # enumeration-production 2019s # EnumName: GeglSamplerType 2019s # enum_name: gegl_sampler_type 2019s # ENUMNAME: GEGL_SAMPLER_TYPE 2019s # ENUMSHORT: SAMPLER_TYPE 2019s # ENUMPREFIX: GEGL 2019s # enumsince: 2019s # type: enum 2019s # Type: Enum 2019s # TYPE: ENUM 2019s # value-header 2019s # EnumName: GeglSamplerType 2019s # enum_name: gegl_sampler_type 2019s # ENUMNAME: GEGL_SAMPLER_TYPE 2019s # ENUMSHORT: SAMPLER_TYPE 2019s # ENUMPREFIX: GEGL 2019s # enumsince: 2019s # type: enum 2019s # Type: Enum 2019s # TYPE: ENUM 2019s # value-production 2019s # VALUENAME: GEGL_SAMPLER_NEAREST 2019s # valuenick: nearest 2019s # valuenum: 0 2019s # type: enum 2019s # Type: Enum 2019s # TYPE: ENUM 2019s # value-tail 2019s # EnumName: GeglSamplerType 2019s # enum_name: gegl_sampler_type 2019s # ENUMNAME: GEGL_SAMPLER_TYPE 2019s # ENUMSHORT: SAMPLER_TYPE 2019s # ENUMPREFIX: GEGL 2019s # enumsince: 2019s # type: enum 2019s # Type: Enum 2019s # TYPE: ENUM 2019s # file-tail 2019s # 2019s # comment 2019s # comment: Generated data ends here 2019s # Error: 2019s ok 15 __main__.TestMkenums.test_non_utf8_encoding 2019s # glib-mkenums: /usr/bin/glib-mkenums 2019s # tmpdir: /tmp/tmp85c0z38i 2019s # rspfile: False 2019s # /tmp/tmp85c0z38i/tmpt30eebwi.h: 2019s # /* Copyright © La Peña */ 2019s # typedef enum { 2019s # ENUM_VALUE 2019s # } SomeEnumIdentifier; 2019s # 2019s # /tmp/tmp85c0z38i/tmpvla_fnsb.template: 2019s # /*** BEGIN file-header ***/ 2019s # file-header 2019s # /*** END file-header ***/ 2019s # 2019s # /*** BEGIN file-production ***/ 2019s # file-production 2019s # filename: @filename@ 2019s # basename: @basename@ 2019s # /*** END file-production ***/ 2019s # 2019s # /*** BEGIN enumeration-production ***/ 2019s # enumeration-production 2019s # EnumName: @EnumName@ 2019s # enum_name: @enum_name@ 2019s # ENUMNAME: @ENUMNAME@ 2019s # ENUMSHORT: @ENUMSHORT@ 2019s # ENUMPREFIX: @ENUMPREFIX@ 2019s # enumsince: @enumsince@ 2019s # type: @type@ 2019s # Type: @Type@ 2019s # TYPE: @TYPE@ 2019s # /*** END enumeration-production ***/ 2019s # 2019s # /*** BEGIN value-header ***/ 2019s # value-header 2019s # EnumName: @EnumName@ 2019s # enum_name: @enum_name@ 2019s # ENUMNAME: @ENUMNAME@ 2019s # ENUMSHORT: @ENUMSHORT@ 2019s # ENUMPREFIX: @ENUMPREFIX@ 2019s # enumsince: @enumsince@ 2019s # type: @type@ 2019s # Type: @Type@ 2019s # TYPE: @TYPE@ 2019s # /*** END value-header ***/ 2019s # 2019s # /*** BEGIN value-production ***/ 2019s # value-production 2019s # VALUENAME: @VALUENAME@ 2019s # valuenick: @valuenick@ 2019s # valuenum: @valuenum@ 2019s # type: @type@ 2019s # Type: @Type@ 2019s # TYPE: @TYPE@ 2019s # /*** END value-production ***/ 2019s # 2019s # /*** BEGIN value-tail ***/ 2019s # value-tail 2019s # EnumName: @EnumName@ 2019s # enum_name: @enum_name@ 2019s # ENUMNAME: @ENUMNAME@ 2019s # ENUMSHORT: @ENUMSHORT@ 2019s # ENUMPREFIX: @ENUMPREFIX@ 2019s # enumsince: @enumsince@ 2019s # type: @type@ 2019s # Type: @Type@ 2019s # TYPE: @TYPE@ 2019s # /*** END value-tail ***/ 2019s # 2019s # /*** BEGIN comment ***/ 2019s # comment 2019s # comment: @comment@ 2019s # /*** END comment ***/ 2019s # 2019s # /*** BEGIN file-tail ***/ 2019s # file-tail 2019s # /*** END file-tail ***/ 2019s # 2019s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp85c0z38i/tmpvla_fnsb.template', '/tmp/tmp85c0z38i/tmpt30eebwi.h'] 2019s # Return code: 0 2019s # Output: 2019s # comment 2019s # 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. 2019s # 2019s # 2019s # file-header 2019s # file-production 2019s # filename: /tmp/tmp85c0z38i/tmpt30eebwi.h 2019s # basename: tmpt30eebwi.h 2019s # enumeration-production 2019s # EnumName: SomeEnumIdentifier 2019s # enum_name: some_enum_identifier 2019s # ENUMNAME: SOME_ENUM_IDENTIFIER 2019s # ENUMSHORT: ENUM_IDENTIFIER 2019s # ENUMPREFIX: SOME 2019s # enumsince: 2019s # type: enum 2019s # Type: Enum 2019s # TYPE: ENUM 2019s # value-header 2019s # EnumName: SomeEnumIdentifier 2019s # enum_name: some_enum_identifier 2019s # ENUMNAME: SOME_ENUM_IDENTIFIER 2019s # ENUMSHORT: ENUM_IDENTIFIER 2019s # ENUMPREFIX: SOME 2019s # enumsince: 2019s # type: enum 2019s # Type: Enum 2019s # TYPE: ENUM 2019s # value-production 2019s # VALUENAME: ENUM_VALUE 2019s # valuenick: value 2019s # valuenum: 0 2019s # type: enum 2019s # Type: Enum 2019s # TYPE: ENUM 2019s # value-tail 2019s # EnumName: SomeEnumIdentifier 2019s # enum_name: some_enum_identifier 2019s # ENUMNAME: SOME_ENUM_IDENTIFIER 2019s # ENUMSHORT: ENUM_IDENTIFIER 2019s # ENUMPREFIX: SOME 2019s # enumsince: 2019s # type: enum 2019s # Type: Enum 2019s # TYPE: ENUM 2019s # file-tail 2019s # 2019s # comment 2019s # comment: Generated data ends here 2019s # Error: 2019s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 2019s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 2019s ok 16 __main__.TestMkenums.test_reproducible 2019s # glib-mkenums: /usr/bin/glib-mkenums 2019s # tmpdir: /tmp/tmpjqpp39t5 2019s # rspfile: False 2019s # /tmp/tmpjqpp39t5/tmp9y570z3g.template: template 2019s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpjqpp39t5/tmp9y570z3g.template', '/tmp/tmpjqpp39t5/tmpdjz5havv1.h', '/tmp/tmpjqpp39t5/tmpr5qepf8l2.h'] 2019s # Return code: 0 2019s # Output: 2019s # /* 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. */ 2019s # 2019s # 2019s # /* Generated data ends here */ 2019s # Error: 2019s # 2019s # /tmp/tmpjqpp39t5/tmpc4c3jj5h.template: template 2019s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpjqpp39t5/tmpc4c3jj5h.template', '/tmp/tmpjqpp39t5/tmpr5qepf8l2.h', '/tmp/tmpjqpp39t5/tmpdjz5havv1.h'] 2019s # Return code: 0 2019s # Output: 2019s # /* 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. */ 2019s # 2019s # 2019s # /* Generated data ends here */ 2019s # Error: 2019s ok 17 __main__.TestMkenums.test_since 2019s # glib-mkenums: /usr/bin/glib-mkenums 2019s # tmpdir: /tmp/tmpczjw2jgv 2019s # rspfile: False 2019s # /tmp/tmpczjw2jgv/tmpxcjhmmxz.h: 2019s # typedef enum { /*< since=1.0 >*/ 2019s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 2019s # } QmiWmsMessageProtocol; 2019s # 2019s # /tmp/tmpczjw2jgv/tmpvc3n5i01.template: 2019s # /*** BEGIN file-header ***/ 2019s # file-header 2019s # /*** END file-header ***/ 2019s # 2019s # /*** BEGIN file-production ***/ 2019s # file-production 2019s # filename: @filename@ 2019s # basename: @basename@ 2019s # /*** END file-production ***/ 2019s # 2019s # /*** BEGIN enumeration-production ***/ 2019s # enumeration-production 2019s # EnumName: @EnumName@ 2019s # enum_name: @enum_name@ 2019s # ENUMNAME: @ENUMNAME@ 2019s # ENUMSHORT: @ENUMSHORT@ 2019s # ENUMPREFIX: @ENUMPREFIX@ 2019s # enumsince: @enumsince@ 2019s # type: @type@ 2019s # Type: @Type@ 2019s # TYPE: @TYPE@ 2019s # /*** END enumeration-production ***/ 2019s # 2019s # /*** BEGIN value-header ***/ 2019s # value-header 2019s # EnumName: @EnumName@ 2019s # enum_name: @enum_name@ 2019s # ENUMNAME: @ENUMNAME@ 2019s # ENUMSHORT: @ENUMSHORT@ 2019s # ENUMPREFIX: @ENUMPREFIX@ 2019s # enumsince: @enumsince@ 2019s # type: @type@ 2019s # Type: @Type@ 2019s # TYPE: @TYPE@ 2019s # /*** END value-header ***/ 2019s # 2019s # /*** BEGIN value-production ***/ 2019s # value-production 2019s # VALUENAME: @VALUENAME@ 2019s # valuenick: @valuenick@ 2019s # valuenum: @valuenum@ 2019s # type: @type@ 2019s # Type: @Type@ 2019s # TYPE: @TYPE@ 2019s # /*** END value-production ***/ 2019s # 2019s # /*** BEGIN value-tail ***/ 2019s # value-tail 2019s # EnumName: @EnumName@ 2019s # enum_name: @enum_name@ 2019s # ENUMNAME: @ENUMNAME@ 2019s # ENUMSHORT: @ENUMSHORT@ 2019s # ENUMPREFIX: @ENUMPREFIX@ 2019s # enumsince: @enumsince@ 2019s # type: @type@ 2019s # Type: @Type@ 2019s # TYPE: @TYPE@ 2019s # /*** END value-tail ***/ 2019s # 2019s # /*** BEGIN comment ***/ 2019s # comment 2019s # comment: @comment@ 2019s # /*** END comment ***/ 2019s # 2019s # /*** BEGIN file-tail ***/ 2019s # file-tail 2019s # /*** END file-tail ***/ 2019s # 2019s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpczjw2jgv/tmpvc3n5i01.template', '/tmp/tmpczjw2jgv/tmpxcjhmmxz.h'] 2019s # Return code: 0 2019s # Output: 2019s # comment 2019s # 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. 2019s # 2019s # 2019s # file-header 2019s # file-production 2019s # filename: /tmp/tmpczjw2jgv/tmpxcjhmmxz.h 2019s # basename: tmpxcjhmmxz.h 2019s # enumeration-production 2019s # EnumName: QmiWmsMessageProtocol 2019s # enum_name: qmi_wms_message_protocol 2019s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 2019s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 2019s # ENUMPREFIX: QMI 2019s # enumsince: 1.0 2019s # type: enum 2019s # Type: Enum 2019s # TYPE: ENUM 2019s # value-header 2019s # EnumName: QmiWmsMessageProtocol 2019s # enum_name: qmi_wms_message_protocol 2019s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 2019s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 2019s # ENUMPREFIX: QMI 2019s # enumsince: 1.0 2019s # type: enum 2019s # Type: Enum 2019s # TYPE: ENUM 2019s # value-production 2019s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 2019s # valuenick: cdma 2019s # valuenum: 0 2019s # type: enum 2019s # Type: Enum 2019s # TYPE: ENUM 2019s # value-tail 2019s # EnumName: QmiWmsMessageProtocol 2019s # enum_name: qmi_wms_message_protocol 2019s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 2019s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 2019s # ENUMPREFIX: QMI 2019s # enumsince: 1.0 2019s # type: enum 2019s # Type: Enum 2019s # TYPE: ENUM 2019s # file-tail 2019s # 2019s # comment 2019s # comment: Generated data ends here 2019s # Error: 2020s ok 18 __main__.TestMkenums.test_with_double_quotes 2020s # glib-mkenums: /usr/bin/glib-mkenums 2020s # tmpdir: /tmp/tmpt2ygnzwi 2020s # rspfile: False 2020s # /tmp/tmpt2ygnzwi/tmpiebvs3qw.h: 2020s # typedef enum { 2020s # FOO_VALUE /*< nick="eek, a comma" >*/ 2020s # } Foo; 2020s # 2020s # /tmp/tmpt2ygnzwi/tmpue_kcksy.template: 2020s # /*** BEGIN file-header ***/ 2020s # file-header 2020s # /*** END file-header ***/ 2020s # 2020s # /*** BEGIN file-production ***/ 2020s # file-production 2020s # filename: @filename@ 2020s # basename: @basename@ 2020s # /*** END file-production ***/ 2020s # 2020s # /*** BEGIN enumeration-production ***/ 2020s # enumeration-production 2020s # EnumName: @EnumName@ 2020s # enum_name: @enum_name@ 2020s # ENUMNAME: @ENUMNAME@ 2020s # ENUMSHORT: @ENUMSHORT@ 2020s # ENUMPREFIX: @ENUMPREFIX@ 2020s # enumsince: @enumsince@ 2020s # type: @type@ 2020s # Type: @Type@ 2020s # TYPE: @TYPE@ 2020s # /*** END enumeration-production ***/ 2020s # 2020s # /*** BEGIN value-header ***/ 2020s # value-header 2020s # EnumName: @EnumName@ 2020s # enum_name: @enum_name@ 2020s # ENUMNAME: @ENUMNAME@ 2020s # ENUMSHORT: @ENUMSHORT@ 2020s # ENUMPREFIX: @ENUMPREFIX@ 2020s # enumsince: @enumsince@ 2020s # type: @type@ 2020s # Type: @Type@ 2020s # TYPE: @TYPE@ 2020s # /*** END value-header ***/ 2020s # 2020s # /*** BEGIN value-production ***/ 2020s # value-production 2020s # VALUENAME: @VALUENAME@ 2020s # valuenick: @valuenick@ 2020s # valuenum: @valuenum@ 2020s # type: @type@ 2020s # Type: @Type@ 2020s # TYPE: @TYPE@ 2020s # /*** END value-production ***/ 2020s # 2020s # /*** BEGIN value-tail ***/ 2020s # value-tail 2020s # EnumName: @EnumName@ 2020s # enum_name: @enum_name@ 2020s # ENUMNAME: @ENUMNAME@ 2020s # ENUMSHORT: @ENUMSHORT@ 2020s # ENUMPREFIX: @ENUMPREFIX@ 2020s # enumsince: @enumsince@ 2020s # type: @type@ 2020s # Type: @Type@ 2020s # TYPE: @TYPE@ 2020s # /*** END value-tail ***/ 2020s # 2020s # /*** BEGIN comment ***/ 2020s # comment 2020s # comment: @comment@ 2020s # /*** END comment ***/ 2020s # 2020s # /*** BEGIN file-tail ***/ 2020s # file-tail 2020s # /*** END file-tail ***/ 2020s # 2020s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpt2ygnzwi/tmpue_kcksy.template', '/tmp/tmpt2ygnzwi/tmpiebvs3qw.h'] 2020s # Return code: 0 2020s # Output: 2020s # comment 2020s # 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. 2020s # 2020s # 2020s # file-header 2020s # file-production 2020s # filename: /tmp/tmpt2ygnzwi/tmpiebvs3qw.h 2020s # basename: tmpiebvs3qw.h 2020s # enumeration-production 2020s # EnumName: Foo 2020s # enum_name: foo_ 2020s # ENUMNAME: FOO_ 2020s # ENUMSHORT: 2020s # ENUMPREFIX: FOO 2020s # enumsince: 2020s # type: enum 2020s # Type: Enum 2020s # TYPE: ENUM 2020s # value-header 2020s # EnumName: Foo 2020s # enum_name: foo_ 2020s # ENUMNAME: FOO_ 2020s # ENUMSHORT: 2020s # ENUMPREFIX: FOO 2020s # enumsince: 2020s # type: enum 2020s # Type: Enum 2020s # TYPE: ENUM 2020s # value-production 2020s # VALUENAME: FOO_VALUE 2020s # valuenick: eek, a comma 2020s # valuenum: 0 2020s # type: enum 2020s # Type: Enum 2020s # TYPE: ENUM 2020s # value-tail 2020s # EnumName: Foo 2020s # enum_name: foo_ 2020s # ENUMNAME: FOO_ 2020s # ENUMSHORT: 2020s # ENUMPREFIX: FOO 2020s # enumsince: 2020s # type: enum 2020s # Type: Enum 2020s # TYPE: ENUM 2020s # file-tail 2020s # 2020s # comment 2020s # comment: Generated data ends here 2020s # Error: 2020s ok 19 __main__.TestRspMkenums.test_available_in 2020s # glib-mkenums: /usr/bin/glib-mkenums 2020s # tmpdir: /tmp/tmp7c9yd_yd 2020s # rspfile: True 2020s # /tmp/tmp7c9yd_yd/tmpugbek14w.h: 2020s # typedef enum { 2020s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 2020s # } GDBusServerFlags; 2020s # 2020s # /tmp/tmp7c9yd_yd/tmp3_xkqjj6.template: 2020s # /*** BEGIN file-header ***/ 2020s # file-header 2020s # /*** END file-header ***/ 2020s # 2020s # /*** BEGIN file-production ***/ 2020s # file-production 2020s # filename: @filename@ 2020s # basename: @basename@ 2020s # /*** END file-production ***/ 2020s # 2020s # /*** BEGIN enumeration-production ***/ 2020s # enumeration-production 2020s # EnumName: @EnumName@ 2020s # enum_name: @enum_name@ 2020s # ENUMNAME: @ENUMNAME@ 2020s # ENUMSHORT: @ENUMSHORT@ 2020s # ENUMPREFIX: @ENUMPREFIX@ 2020s # enumsince: @enumsince@ 2020s # type: @type@ 2020s # Type: @Type@ 2020s # TYPE: @TYPE@ 2020s # /*** END enumeration-production ***/ 2020s # 2020s # /*** BEGIN value-header ***/ 2020s # value-header 2020s # EnumName: @EnumName@ 2020s # enum_name: @enum_name@ 2020s # ENUMNAME: @ENUMNAME@ 2020s # ENUMSHORT: @ENUMSHORT@ 2020s # ENUMPREFIX: @ENUMPREFIX@ 2020s # enumsince: @enumsince@ 2020s # type: @type@ 2020s # Type: @Type@ 2020s # TYPE: @TYPE@ 2020s # /*** END value-header ***/ 2020s # 2020s # /*** BEGIN value-production ***/ 2020s # value-production 2020s # VALUENAME: @VALUENAME@ 2020s # valuenick: @valuenick@ 2020s # valuenum: @valuenum@ 2020s # type: @type@ 2020s # Type: @Type@ 2020s # TYPE: @TYPE@ 2020s # /*** END value-production ***/ 2020s # 2020s # /*** BEGIN value-tail ***/ 2020s # value-tail 2020s # EnumName: @EnumName@ 2020s # enum_name: @enum_name@ 2020s # ENUMNAME: @ENUMNAME@ 2020s # ENUMSHORT: @ENUMSHORT@ 2020s # ENUMPREFIX: @ENUMPREFIX@ 2020s # enumsince: @enumsince@ 2020s # type: @type@ 2020s # Type: @Type@ 2020s # TYPE: @TYPE@ 2020s # /*** END value-tail ***/ 2020s # 2020s # /*** BEGIN comment ***/ 2020s # comment 2020s # comment: @comment@ 2020s # /*** END comment ***/ 2020s # 2020s # /*** BEGIN file-tail ***/ 2020s # file-tail 2020s # /*** END file-tail ***/ 2020s # 2020s # Response file contains: --template /tmp/tmp7c9yd_yd/tmp3_xkqjj6.template /tmp/tmp7c9yd_yd/tmpugbek14w.h 2020s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp7c9yd_yd/tmpjy53hmme'] 2020s # Return code: 0 2020s # Output: 2020s # comment 2020s # 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. 2020s # 2020s # 2020s # file-header 2020s # file-production 2020s # filename: /tmp/tmp7c9yd_yd/tmpugbek14w.h 2020s # basename: tmpugbek14w.h 2020s # enumeration-production 2020s # EnumName: GDBusServerFlags 2020s # enum_name: g_dbus_server_flags 2020s # ENUMNAME: G_DBUS_SERVER_FLAGS 2020s # ENUMSHORT: DBUS_SERVER_FLAGS 2020s # ENUMPREFIX: G 2020s # enumsince: 2020s # type: flags 2020s # Type: Flags 2020s # TYPE: FLAGS 2020s # value-header 2020s # EnumName: GDBusServerFlags 2020s # enum_name: g_dbus_server_flags 2020s # ENUMNAME: G_DBUS_SERVER_FLAGS 2020s # ENUMSHORT: DBUS_SERVER_FLAGS 2020s # ENUMPREFIX: G 2020s # enumsince: 2020s # type: flags 2020s # Type: Flags 2020s # TYPE: FLAGS 2020s # value-production 2020s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 2020s # valuenick: user 2020s # valuenum: 4 2020s # type: flags 2020s # Type: Flags 2020s # TYPE: FLAGS 2020s # value-tail 2020s # EnumName: GDBusServerFlags 2020s # enum_name: g_dbus_server_flags 2020s # ENUMNAME: G_DBUS_SERVER_FLAGS 2020s # ENUMSHORT: DBUS_SERVER_FLAGS 2020s # ENUMPREFIX: G 2020s # enumsince: 2020s # type: flags 2020s # Type: Flags 2020s # TYPE: FLAGS 2020s # file-tail 2020s # 2020s # comment 2020s # comment: Generated data ends here 2020s # Error: 2020s ok 20 __main__.TestRspMkenums.test_comma_in_enum_value 2020s # glib-mkenums: /usr/bin/glib-mkenums 2020s # tmpdir: /tmp/tmpe_7t51su 2020s # rspfile: True 2020s # /tmp/tmpe_7t51su/tmpvl3vhk9a.h: 2020s # typedef enum { 2020s # ENUM_VALUE_WITH_COMMA = ',', 2020s # } TestCommaEnum; 2020s # 2020s # /tmp/tmpe_7t51su/tmpiskvaknd.template: 2020s # /*** BEGIN file-header ***/ 2020s # file-header 2020s # /*** END file-header ***/ 2020s # 2020s # /*** BEGIN file-production ***/ 2020s # file-production 2020s # filename: @filename@ 2020s # basename: @basename@ 2020s # /*** END file-production ***/ 2020s # 2020s # /*** BEGIN enumeration-production ***/ 2020s # enumeration-production 2020s # EnumName: @EnumName@ 2020s # enum_name: @enum_name@ 2020s # ENUMNAME: @ENUMNAME@ 2020s # ENUMSHORT: @ENUMSHORT@ 2020s # ENUMPREFIX: @ENUMPREFIX@ 2020s # enumsince: @enumsince@ 2020s # type: @type@ 2020s # Type: @Type@ 2020s # TYPE: @TYPE@ 2020s # /*** END enumeration-production ***/ 2020s # 2020s # /*** BEGIN value-header ***/ 2020s # value-header 2020s # EnumName: @EnumName@ 2020s # enum_name: @enum_name@ 2020s # ENUMNAME: @ENUMNAME@ 2020s # ENUMSHORT: @ENUMSHORT@ 2020s # ENUMPREFIX: @ENUMPREFIX@ 2020s # enumsince: @enumsince@ 2020s # type: @type@ 2020s # Type: @Type@ 2020s # TYPE: @TYPE@ 2020s # /*** END value-header ***/ 2020s # 2020s # /*** BEGIN value-production ***/ 2020s # value-production 2020s # VALUENAME: @VALUENAME@ 2020s # valuenick: @valuenick@ 2020s # valuenum: @valuenum@ 2020s # type: @type@ 2020s # Type: @Type@ 2020s # TYPE: @TYPE@ 2020s # /*** END value-production ***/ 2020s # 2020s # /*** BEGIN value-tail ***/ 2020s # value-tail 2020s # EnumName: @EnumName@ 2020s # enum_name: @enum_name@ 2020s # ENUMNAME: @ENUMNAME@ 2020s # ENUMSHORT: @ENUMSHORT@ 2020s # ENUMPREFIX: @ENUMPREFIX@ 2020s # enumsince: @enumsince@ 2020s # type: @type@ 2020s # Type: @Type@ 2020s # TYPE: @TYPE@ 2020s # /*** END value-tail ***/ 2020s # 2020s # /*** BEGIN comment ***/ 2020s # comment 2020s # comment: @comment@ 2020s # /*** END comment ***/ 2020s # 2020s # /*** BEGIN file-tail ***/ 2020s # file-tail 2020s # /*** END file-tail ***/ 2020s # 2020s # Response file contains: --template /tmp/tmpe_7t51su/tmpiskvaknd.template /tmp/tmpe_7t51su/tmpvl3vhk9a.h 2020s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpe_7t51su/tmpqjh77s2h'] 2020s # Return code: 0 2020s # Output: 2020s # comment 2020s # 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. 2020s # 2020s # 2020s # file-header 2020s # file-production 2020s # filename: /tmp/tmpe_7t51su/tmpvl3vhk9a.h 2020s # basename: tmpvl3vhk9a.h 2020s # enumeration-production 2020s # EnumName: TestCommaEnum 2020s # enum_name: test_comma_enum 2020s # ENUMNAME: TEST_COMMA_ENUM 2020s # ENUMSHORT: COMMA_ENUM 2020s # ENUMPREFIX: TEST 2020s # enumsince: 2020s # type: enum 2020s # Type: Enum 2020s # TYPE: ENUM 2020s # value-header 2020s # EnumName: TestCommaEnum 2020s # enum_name: test_comma_enum 2020s # ENUMNAME: TEST_COMMA_ENUM 2020s # ENUMSHORT: COMMA_ENUM 2020s # ENUMPREFIX: TEST 2020s # enumsince: 2020s # type: enum 2020s # Type: Enum 2020s # TYPE: ENUM 2020s # value-production 2020s # VALUENAME: ENUM_VALUE_WITH_COMMA 2020s # valuenick: comma 2020s # valuenum: 44 2020s # type: enum 2020s # Type: Enum 2020s # TYPE: ENUM 2020s # value-tail 2020s # EnumName: TestCommaEnum 2020s # enum_name: test_comma_enum 2020s # ENUMNAME: TEST_COMMA_ENUM 2020s # ENUMSHORT: COMMA_ENUM 2020s # ENUMPREFIX: TEST 2020s # enumsince: 2020s # type: enum 2020s # Type: Enum 2020s # TYPE: ENUM 2020s # file-tail 2020s # 2020s # comment 2020s # comment: Generated data ends here 2020s # Error: 2020s ok 21 __main__.TestRspMkenums.test_deprecated_in 2020s # glib-mkenums: /usr/bin/glib-mkenums 2020s # tmpdir: /tmp/tmp22eibkvx 2020s # rspfile: True 2020s # /tmp/tmp22eibkvx/tmpi1uouwdg.h: 2020s # typedef enum { 2020s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 2020s # } GDBusServerFlags; 2020s # 2020s # /tmp/tmp22eibkvx/tmp7mwcwng7.template: 2020s # /*** BEGIN file-header ***/ 2020s # file-header 2020s # /*** END file-header ***/ 2020s # 2020s # /*** BEGIN file-production ***/ 2020s # file-production 2020s # filename: @filename@ 2020s # basename: @basename@ 2020s # /*** END file-production ***/ 2020s # 2020s # /*** BEGIN enumeration-production ***/ 2020s # enumeration-production 2020s # EnumName: @EnumName@ 2020s # enum_name: @enum_name@ 2020s # ENUMNAME: @ENUMNAME@ 2020s # ENUMSHORT: @ENUMSHORT@ 2020s # ENUMPREFIX: @ENUMPREFIX@ 2020s # enumsince: @enumsince@ 2020s # type: @type@ 2020s # Type: @Type@ 2020s # TYPE: @TYPE@ 2020s # /*** END enumeration-production ***/ 2020s # 2020s # /*** BEGIN value-header ***/ 2020s # value-header 2020s # EnumName: @EnumName@ 2020s # enum_name: @enum_name@ 2020s # ENUMNAME: @ENUMNAME@ 2020s # ENUMSHORT: @ENUMSHORT@ 2020s # ENUMPREFIX: @ENUMPREFIX@ 2020s # enumsince: @enumsince@ 2020s # type: @type@ 2020s # Type: @Type@ 2020s # TYPE: @TYPE@ 2020s # /*** END value-header ***/ 2020s # 2020s # /*** BEGIN value-production ***/ 2020s # value-production 2020s # VALUENAME: @VALUENAME@ 2020s # valuenick: @valuenick@ 2020s # valuenum: @valuenum@ 2020s # type: @type@ 2020s # Type: @Type@ 2020s # TYPE: @TYPE@ 2020s # /*** END value-production ***/ 2020s # 2020s # /*** BEGIN value-tail ***/ 2020s # value-tail 2020s # EnumName: @EnumName@ 2020s # enum_name: @enum_name@ 2020s # ENUMNAME: @ENUMNAME@ 2020s # ENUMSHORT: @ENUMSHORT@ 2020s # ENUMPREFIX: @ENUMPREFIX@ 2020s # enumsince: @enumsince@ 2020s # type: @type@ 2020s # Type: @Type@ 2020s # TYPE: @TYPE@ 2020s # /*** END value-tail ***/ 2020s # 2020s # /*** BEGIN comment ***/ 2020s # comment 2020s # comment: @comment@ 2020s # /*** END comment ***/ 2020s # 2020s # /*** BEGIN file-tail ***/ 2020s # file-tail 2020s # /*** END file-tail ***/ 2020s # 2020s # Response file contains: --template /tmp/tmp22eibkvx/tmp7mwcwng7.template /tmp/tmp22eibkvx/tmpi1uouwdg.h 2020s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp22eibkvx/tmp4h40jst9'] 2020s # Return code: 0 2020s # Output: 2020s # comment 2020s # 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. 2020s # 2020s # 2020s # file-header 2020s # file-production 2020s # filename: /tmp/tmp22eibkvx/tmpi1uouwdg.h 2020s # basename: tmpi1uouwdg.h 2020s # enumeration-production 2020s # EnumName: GDBusServerFlags 2020s # enum_name: g_dbus_server_flags 2020s # ENUMNAME: G_DBUS_SERVER_FLAGS 2020s # ENUMSHORT: DBUS_SERVER_FLAGS 2020s # ENUMPREFIX: G 2020s # enumsince: 2020s # type: flags 2020s # Type: Flags 2020s # TYPE: FLAGS 2020s # value-header 2020s # EnumName: GDBusServerFlags 2020s # enum_name: g_dbus_server_flags 2020s # ENUMNAME: G_DBUS_SERVER_FLAGS 2020s # ENUMSHORT: DBUS_SERVER_FLAGS 2020s # ENUMPREFIX: G 2020s # enumsince: 2020s # type: flags 2020s # Type: Flags 2020s # TYPE: FLAGS 2020s # value-production 2020s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 2020s # valuenick: user 2020s # valuenum: 4 2020s # type: flags 2020s # Type: Flags 2020s # TYPE: FLAGS 2020s # value-tail 2020s # EnumName: GDBusServerFlags 2020s # enum_name: g_dbus_server_flags 2020s # ENUMNAME: G_DBUS_SERVER_FLAGS 2020s # ENUMSHORT: DBUS_SERVER_FLAGS 2020s # ENUMPREFIX: G 2020s # enumsince: 2020s # type: flags 2020s # Type: Flags 2020s # TYPE: FLAGS 2020s # file-tail 2020s # 2020s # comment 2020s # comment: Generated data ends here 2020s # Error: 2021s ok 22 __main__.TestRspMkenums.test_deprecated_in_for 2021s # glib-mkenums: /usr/bin/glib-mkenums 2021s # tmpdir: /tmp/tmp_ii1msj_ 2021s # rspfile: True 2021s # /tmp/tmp_ii1msj_/tmppwsddt1x.h: 2021s # typedef enum { 2021s # 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) 2021s # } GDBusServerFlags; 2021s # 2021s # /tmp/tmp_ii1msj_/tmplkj8q6p_.template: 2021s # /*** BEGIN file-header ***/ 2021s # file-header 2021s # /*** END file-header ***/ 2021s # 2021s # /*** BEGIN file-production ***/ 2021s # file-production 2021s # filename: @filename@ 2021s # basename: @basename@ 2021s # /*** END file-production ***/ 2021s # 2021s # /*** BEGIN enumeration-production ***/ 2021s # enumeration-production 2021s # EnumName: @EnumName@ 2021s # enum_name: @enum_name@ 2021s # ENUMNAME: @ENUMNAME@ 2021s # ENUMSHORT: @ENUMSHORT@ 2021s # ENUMPREFIX: @ENUMPREFIX@ 2021s # enumsince: @enumsince@ 2021s # type: @type@ 2021s # Type: @Type@ 2021s # TYPE: @TYPE@ 2021s # /*** END enumeration-production ***/ 2021s # 2021s # /*** BEGIN value-header ***/ 2021s # value-header 2021s # EnumName: @EnumName@ 2021s # enum_name: @enum_name@ 2021s # ENUMNAME: @ENUMNAME@ 2021s # ENUMSHORT: @ENUMSHORT@ 2021s # ENUMPREFIX: @ENUMPREFIX@ 2021s # enumsince: @enumsince@ 2021s # type: @type@ 2021s # Type: @Type@ 2021s # TYPE: @TYPE@ 2021s # /*** END value-header ***/ 2021s # 2021s # /*** BEGIN value-production ***/ 2021s # value-production 2021s # VALUENAME: @VALUENAME@ 2021s # valuenick: @valuenick@ 2021s # valuenum: @valuenum@ 2021s # type: @type@ 2021s # Type: @Type@ 2021s # TYPE: @TYPE@ 2021s # /*** END value-production ***/ 2021s # 2021s # /*** BEGIN value-tail ***/ 2021s # value-tail 2021s # EnumName: @EnumName@ 2021s # enum_name: @enum_name@ 2021s # ENUMNAME: @ENUMNAME@ 2021s # ENUMSHORT: @ENUMSHORT@ 2021s # ENUMPREFIX: @ENUMPREFIX@ 2021s # enumsince: @enumsince@ 2021s # type: @type@ 2021s # Type: @Type@ 2021s # TYPE: @TYPE@ 2021s # /*** END value-tail ***/ 2021s # 2021s # /*** BEGIN comment ***/ 2021s # comment 2021s # comment: @comment@ 2021s # /*** END comment ***/ 2021s # 2021s # /*** BEGIN file-tail ***/ 2021s # file-tail 2021s # /*** END file-tail ***/ 2021s # 2021s # Response file contains: --template /tmp/tmp_ii1msj_/tmplkj8q6p_.template /tmp/tmp_ii1msj_/tmppwsddt1x.h 2021s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp_ii1msj_/tmpe4remqyu'] 2021s # Return code: 0 2021s # Output: 2021s # comment 2021s # 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. 2021s # 2021s # 2021s # file-header 2021s # file-production 2021s # filename: /tmp/tmp_ii1msj_/tmppwsddt1x.h 2021s # basename: tmppwsddt1x.h 2021s # enumeration-production 2021s # EnumName: GDBusServerFlags 2021s # enum_name: g_dbus_server_flags 2021s # ENUMNAME: G_DBUS_SERVER_FLAGS 2021s # ENUMSHORT: DBUS_SERVER_FLAGS 2021s # ENUMPREFIX: G 2021s # enumsince: 2021s # type: flags 2021s # Type: Flags 2021s # TYPE: FLAGS 2021s # value-header 2021s # EnumName: GDBusServerFlags 2021s # enum_name: g_dbus_server_flags 2021s # ENUMNAME: G_DBUS_SERVER_FLAGS 2021s # ENUMSHORT: DBUS_SERVER_FLAGS 2021s # ENUMPREFIX: G 2021s # enumsince: 2021s # type: flags 2021s # Type: Flags 2021s # TYPE: FLAGS 2021s # value-production 2021s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 2021s # valuenick: user 2021s # valuenum: 4 2021s # type: flags 2021s # Type: Flags 2021s # TYPE: FLAGS 2021s # value-tail 2021s # EnumName: GDBusServerFlags 2021s # enum_name: g_dbus_server_flags 2021s # ENUMNAME: G_DBUS_SERVER_FLAGS 2021s # ENUMSHORT: DBUS_SERVER_FLAGS 2021s # ENUMPREFIX: G 2021s # enumsince: 2021s # type: flags 2021s # Type: Flags 2021s # TYPE: FLAGS 2021s # file-tail 2021s # 2021s # comment 2021s # comment: Generated data ends here 2021s # Error: 2021s ok 23 __main__.TestRspMkenums.test_empty_header 2021s # glib-mkenums: /usr/bin/glib-mkenums 2021s # tmpdir: /tmp/tmppnozgk0c 2021s # rspfile: True 2021s # /tmp/tmppnozgk0c/tmpfqgjuywl.h: 2021s # /tmp/tmppnozgk0c/tmperxxtxw6.template: 2021s # /*** BEGIN file-header ***/ 2021s # file-header 2021s # /*** END file-header ***/ 2021s # 2021s # /*** BEGIN file-production ***/ 2021s # file-production 2021s # filename: @filename@ 2021s # basename: @basename@ 2021s # /*** END file-production ***/ 2021s # 2021s # /*** BEGIN enumeration-production ***/ 2021s # enumeration-production 2021s # EnumName: @EnumName@ 2021s # enum_name: @enum_name@ 2021s # ENUMNAME: @ENUMNAME@ 2021s # ENUMSHORT: @ENUMSHORT@ 2021s # ENUMPREFIX: @ENUMPREFIX@ 2021s # enumsince: @enumsince@ 2021s # type: @type@ 2021s # Type: @Type@ 2021s # TYPE: @TYPE@ 2021s # /*** END enumeration-production ***/ 2021s # 2021s # /*** BEGIN value-header ***/ 2021s # value-header 2021s # EnumName: @EnumName@ 2021s # enum_name: @enum_name@ 2021s # ENUMNAME: @ENUMNAME@ 2021s # ENUMSHORT: @ENUMSHORT@ 2021s # ENUMPREFIX: @ENUMPREFIX@ 2021s # enumsince: @enumsince@ 2021s # type: @type@ 2021s # Type: @Type@ 2021s # TYPE: @TYPE@ 2021s # /*** END value-header ***/ 2021s # 2021s # /*** BEGIN value-production ***/ 2021s # value-production 2021s # VALUENAME: @VALUENAME@ 2021s # valuenick: @valuenick@ 2021s # valuenum: @valuenum@ 2021s # type: @type@ 2021s # Type: @Type@ 2021s # TYPE: @TYPE@ 2021s # /*** END value-production ***/ 2021s # 2021s # /*** BEGIN value-tail ***/ 2021s # value-tail 2021s # EnumName: @EnumName@ 2021s # enum_name: @enum_name@ 2021s # ENUMNAME: @ENUMNAME@ 2021s # ENUMSHORT: @ENUMSHORT@ 2021s # ENUMPREFIX: @ENUMPREFIX@ 2021s # enumsince: @enumsince@ 2021s # type: @type@ 2021s # Type: @Type@ 2021s # TYPE: @TYPE@ 2021s # /*** END value-tail ***/ 2021s # 2021s # /*** BEGIN comment ***/ 2021s # comment 2021s # comment: @comment@ 2021s # /*** END comment ***/ 2021s # 2021s # /*** BEGIN file-tail ***/ 2021s # file-tail 2021s # /*** END file-tail ***/ 2021s # 2021s # Response file contains: --template /tmp/tmppnozgk0c/tmperxxtxw6.template /tmp/tmppnozgk0c/tmpfqgjuywl.h 2021s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmppnozgk0c/tmpqci30073'] 2021s # Return code: 0 2021s # Output: 2021s # comment 2021s # 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. 2021s # 2021s # 2021s # file-header 2021s # file-tail 2021s # 2021s # comment 2021s # comment: Generated data ends here 2021s # Error: 2021s ok 24 __main__.TestRspMkenums.test_empty_template 2021s # glib-mkenums: /usr/bin/glib-mkenums 2021s # tmpdir: /tmp/tmp5irwvcjw 2021s # rspfile: True 2021s # /tmp/tmp5irwvcjw/tmpxryc1tvq.template: 2021s # Response file contains: --template /tmp/tmp5irwvcjw/tmpxryc1tvq.template 2021s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp5irwvcjw/tmpqal5fr9g'] 2021s # Return code: 0 2021s # Output: 2021s # /* 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. */ 2021s # 2021s # 2021s # /* Generated data ends here */ 2021s # Error: 2021s ok 25 __main__.TestRspMkenums.test_enum_name 2021s # glib-mkenums: /usr/bin/glib-mkenums 2021s # tmpdir: /tmp/tmp5rydfybt 2021s # rspfile: True 2021s # /tmp/tmp5rydfybt/tmp4hdxo2ri.h: 2021s # typedef enum _SomeEnumIdentifier { 2021s # ENUM_VALUE 2021s # } SomeEnumIdentifier; 2021s # 2021s # /tmp/tmp5rydfybt/tmpxk8o3sep.template: 2021s # /*** BEGIN file-header ***/ 2021s # file-header 2021s # /*** END file-header ***/ 2021s # 2021s # /*** BEGIN file-production ***/ 2021s # file-production 2021s # filename: @filename@ 2021s # basename: @basename@ 2021s # /*** END file-production ***/ 2021s # 2021s # /*** BEGIN enumeration-production ***/ 2021s # enumeration-production 2021s # EnumName: @EnumName@ 2021s # enum_name: @enum_name@ 2021s # ENUMNAME: @ENUMNAME@ 2021s # ENUMSHORT: @ENUMSHORT@ 2021s # ENUMPREFIX: @ENUMPREFIX@ 2021s # enumsince: @enumsince@ 2021s # type: @type@ 2021s # Type: @Type@ 2021s # TYPE: @TYPE@ 2021s # /*** END enumeration-production ***/ 2021s # 2021s # /*** BEGIN value-header ***/ 2021s # value-header 2021s # EnumName: @EnumName@ 2021s # enum_name: @enum_name@ 2021s # ENUMNAME: @ENUMNAME@ 2021s # ENUMSHORT: @ENUMSHORT@ 2021s # ENUMPREFIX: @ENUMPREFIX@ 2021s # enumsince: @enumsince@ 2021s # type: @type@ 2021s # Type: @Type@ 2021s # TYPE: @TYPE@ 2021s # /*** END value-header ***/ 2021s # 2021s # /*** BEGIN value-production ***/ 2021s # value-production 2021s # VALUENAME: @VALUENAME@ 2021s # valuenick: @valuenick@ 2021s # valuenum: @valuenum@ 2021s # type: @type@ 2021s # Type: @Type@ 2021s # TYPE: @TYPE@ 2021s # /*** END value-production ***/ 2021s # 2021s # /*** BEGIN value-tail ***/ 2021s # value-tail 2021s # EnumName: @EnumName@ 2021s # enum_name: @enum_name@ 2021s # ENUMNAME: @ENUMNAME@ 2021s # ENUMSHORT: @ENUMSHORT@ 2021s # ENUMPREFIX: @ENUMPREFIX@ 2021s # enumsince: @enumsince@ 2021s # type: @type@ 2021s # Type: @Type@ 2021s # TYPE: @TYPE@ 2021s # /*** END value-tail ***/ 2021s # 2021s # /*** BEGIN comment ***/ 2021s # comment 2021s # comment: @comment@ 2021s # /*** END comment ***/ 2021s # 2021s # /*** BEGIN file-tail ***/ 2021s # file-tail 2021s # /*** END file-tail ***/ 2021s # 2021s # Response file contains: --template /tmp/tmp5rydfybt/tmpxk8o3sep.template /tmp/tmp5rydfybt/tmp4hdxo2ri.h 2021s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp5rydfybt/tmpuptrs0fa'] 2021s # Return code: 0 2021s # Output: 2021s # comment 2021s # 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. 2021s # 2021s # 2021s # file-header 2021s # file-production 2021s # filename: /tmp/tmp5rydfybt/tmp4hdxo2ri.h 2021s # basename: tmp4hdxo2ri.h 2021s # enumeration-production 2021s # EnumName: SomeEnumIdentifier 2021s # enum_name: some_enum_identifier 2021s # ENUMNAME: SOME_ENUM_IDENTIFIER 2021s # ENUMSHORT: ENUM_IDENTIFIER 2021s # ENUMPREFIX: SOME 2021s # enumsince: 2021s # type: enum 2021s # Type: Enum 2021s # TYPE: ENUM 2021s # value-header 2021s # EnumName: SomeEnumIdentifier 2021s # enum_name: some_enum_identifier 2021s # ENUMNAME: SOME_ENUM_IDENTIFIER 2021s # ENUMSHORT: ENUM_IDENTIFIER 2021s # ENUMPREFIX: SOME 2021s # enumsince: 2021s # type: enum 2021s # Type: Enum 2021s # TYPE: ENUM 2021s # value-production 2021s # VALUENAME: ENUM_VALUE 2021s # valuenick: value 2021s # valuenum: 0 2021s # type: enum 2021s # Type: Enum 2021s # TYPE: ENUM 2021s # value-tail 2021s # EnumName: SomeEnumIdentifier 2021s # enum_name: some_enum_identifier 2021s # ENUMNAME: SOME_ENUM_IDENTIFIER 2021s # ENUMSHORT: ENUM_IDENTIFIER 2021s # ENUMPREFIX: SOME 2021s # enumsince: 2021s # type: enum 2021s # Type: Enum 2021s # TYPE: ENUM 2021s # file-tail 2021s # 2021s # comment 2021s # comment: Generated data ends here 2021s # Error: 2022s ok 26 __main__.TestRspMkenums.test_enum_private_public 2022s # glib-mkenums: /usr/bin/glib-mkenums 2022s # tmpdir: /tmp/tmpm7dthuyj 2022s # rspfile: True 2022s # /tmp/tmpm7dthuyj/tmppal62n2u.h: 2022s # typedef enum { 2022s # ENUM_VALUE_PUBLIC1, 2022s # /*< private >*/ 2022s # ENUM_VALUE_PRIVATE, 2022s # } SomeEnumA 2022s # 2022s # /tmp/tmpm7dthuyj/tmp4qcfwzyw.template: 2022s # /*** BEGIN file-header ***/ 2022s # file-header 2022s # /*** END file-header ***/ 2022s # 2022s # /*** BEGIN file-production ***/ 2022s # file-production 2022s # filename: @filename@ 2022s # basename: @basename@ 2022s # /*** END file-production ***/ 2022s # 2022s # /*** BEGIN enumeration-production ***/ 2022s # enumeration-production 2022s # EnumName: @EnumName@ 2022s # enum_name: @enum_name@ 2022s # ENUMNAME: @ENUMNAME@ 2022s # ENUMSHORT: @ENUMSHORT@ 2022s # ENUMPREFIX: @ENUMPREFIX@ 2022s # enumsince: @enumsince@ 2022s # type: @type@ 2022s # Type: @Type@ 2022s # TYPE: @TYPE@ 2022s # /*** END enumeration-production ***/ 2022s # 2022s # /*** BEGIN value-header ***/ 2022s # value-header 2022s # EnumName: @EnumName@ 2022s # enum_name: @enum_name@ 2022s # ENUMNAME: @ENUMNAME@ 2022s # ENUMSHORT: @ENUMSHORT@ 2022s # ENUMPREFIX: @ENUMPREFIX@ 2022s # enumsince: @enumsince@ 2022s # type: @type@ 2022s # Type: @Type@ 2022s # TYPE: @TYPE@ 2022s # /*** END value-header ***/ 2022s # 2022s # /*** BEGIN value-production ***/ 2022s # value-production 2022s # VALUENAME: @VALUENAME@ 2022s # valuenick: @valuenick@ 2022s # valuenum: @valuenum@ 2022s # type: @type@ 2022s # Type: @Type@ 2022s # TYPE: @TYPE@ 2022s # /*** END value-production ***/ 2022s # 2022s # /*** BEGIN value-tail ***/ 2022s # value-tail 2022s # EnumName: @EnumName@ 2022s # enum_name: @enum_name@ 2022s # ENUMNAME: @ENUMNAME@ 2022s # ENUMSHORT: @ENUMSHORT@ 2022s # ENUMPREFIX: @ENUMPREFIX@ 2022s # enumsince: @enumsince@ 2022s # type: @type@ 2022s # Type: @Type@ 2022s # TYPE: @TYPE@ 2022s # /*** END value-tail ***/ 2022s # 2022s # /*** BEGIN comment ***/ 2022s # comment 2022s # comment: @comment@ 2022s # /*** END comment ***/ 2022s # 2022s # /*** BEGIN file-tail ***/ 2022s # file-tail 2022s # /*** END file-tail ***/ 2022s # 2022s # Response file contains: --template /tmp/tmpm7dthuyj/tmp4qcfwzyw.template /tmp/tmpm7dthuyj/tmppal62n2u.h 2022s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpm7dthuyj/tmpn34yqnux'] 2022s # Return code: 0 2022s # Output: 2022s # comment 2022s # 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. 2022s # 2022s # 2022s # file-header 2022s # file-production 2022s # filename: /tmp/tmpm7dthuyj/tmppal62n2u.h 2022s # basename: tmppal62n2u.h 2022s # enumeration-production 2022s # EnumName: SomeEnumA 2022s # enum_name: some_enum_a 2022s # ENUMNAME: SOME_ENUM_A 2022s # ENUMSHORT: ENUM_A 2022s # ENUMPREFIX: SOME 2022s # enumsince: 2022s # type: enum 2022s # Type: Enum 2022s # TYPE: ENUM 2022s # value-header 2022s # EnumName: SomeEnumA 2022s # enum_name: some_enum_a 2022s # ENUMNAME: SOME_ENUM_A 2022s # ENUMSHORT: ENUM_A 2022s # ENUMPREFIX: SOME 2022s # enumsince: 2022s # type: enum 2022s # Type: Enum 2022s # TYPE: ENUM 2022s # value-production 2022s # VALUENAME: ENUM_VALUE_PUBLIC1 2022s # valuenick: public1 2022s # valuenum: 0 2022s # type: enum 2022s # Type: Enum 2022s # TYPE: ENUM 2022s # value-tail 2022s # EnumName: SomeEnumA 2022s # enum_name: some_enum_a 2022s # ENUMNAME: SOME_ENUM_A 2022s # ENUMSHORT: ENUM_A 2022s # ENUMPREFIX: SOME 2022s # enumsince: 2022s # type: enum 2022s # Type: Enum 2022s # TYPE: ENUM 2022s # file-tail 2022s # 2022s # comment 2022s # comment: Generated data ends here 2022s # Error: 2022s # 2022s # /tmp/tmpm7dthuyj/tmp0vcx6l0l.h: 2022s # typedef enum { 2022s # /*< private >*/ 2022s # ENUM_VALUE_PRIVATE, 2022s # /*< public >*/ 2022s # ENUM_VALUE_PUBLIC2, 2022s # } SomeEnumB; 2022s # 2022s # /tmp/tmpm7dthuyj/tmpyxql9ie4.template: 2022s # /*** BEGIN file-header ***/ 2022s # file-header 2022s # /*** END file-header ***/ 2022s # 2022s # /*** BEGIN file-production ***/ 2022s # file-production 2022s # filename: @filename@ 2022s # basename: @basename@ 2022s # /*** END file-production ***/ 2022s # 2022s # /*** BEGIN enumeration-production ***/ 2022s # enumeration-production 2022s # EnumName: @EnumName@ 2022s # enum_name: @enum_name@ 2022s # ENUMNAME: @ENUMNAME@ 2022s # ENUMSHORT: @ENUMSHORT@ 2022s # ENUMPREFIX: @ENUMPREFIX@ 2022s # enumsince: @enumsince@ 2022s # type: @type@ 2022s # Type: @Type@ 2022s # TYPE: @TYPE@ 2022s # /*** END enumeration-production ***/ 2022s # 2022s # /*** BEGIN value-header ***/ 2022s # value-header 2022s # EnumName: @EnumName@ 2022s # enum_name: @enum_name@ 2022s # ENUMNAME: @ENUMNAME@ 2022s # ENUMSHORT: @ENUMSHORT@ 2022s # ENUMPREFIX: @ENUMPREFIX@ 2022s # enumsince: @enumsince@ 2022s # type: @type@ 2022s # Type: @Type@ 2022s # TYPE: @TYPE@ 2022s # /*** END value-header ***/ 2022s # 2022s # /*** BEGIN value-production ***/ 2022s # value-production 2022s # VALUENAME: @VALUENAME@ 2022s # valuenick: @valuenick@ 2022s # valuenum: @valuenum@ 2022s # type: @type@ 2022s # Type: @Type@ 2022s # TYPE: @TYPE@ 2022s # /*** END value-production ***/ 2022s # 2022s # /*** BEGIN value-tail ***/ 2022s # value-tail 2022s # EnumName: @EnumName@ 2022s # enum_name: @enum_name@ 2022s # ENUMNAME: @ENUMNAME@ 2022s # ENUMSHORT: @ENUMSHORT@ 2022s # ENUMPREFIX: @ENUMPREFIX@ 2022s # enumsince: @enumsince@ 2022s # type: @type@ 2022s # Type: @Type@ 2022s # TYPE: @TYPE@ 2022s # /*** END value-tail ***/ 2022s # 2022s # /*** BEGIN comment ***/ 2022s # comment 2022s # comment: @comment@ 2022s # /*** END comment ***/ 2022s # 2022s # /*** BEGIN file-tail ***/ 2022s # file-tail 2022s # /*** END file-tail ***/ 2022s # 2022s # Response file contains: --template /tmp/tmpm7dthuyj/tmpyxql9ie4.template /tmp/tmpm7dthuyj/tmp0vcx6l0l.h 2022s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpm7dthuyj/tmpsn_fbxos'] 2022s # Return code: 0 2022s # Output: 2022s # comment 2022s # 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. 2022s # 2022s # 2022s # file-header 2022s # file-production 2022s # filename: /tmp/tmpm7dthuyj/tmp0vcx6l0l.h 2022s # basename: tmp0vcx6l0l.h 2022s # enumeration-production 2022s # EnumName: SomeEnumB 2022s # enum_name: some_enum_b 2022s # ENUMNAME: SOME_ENUM_B 2022s # ENUMSHORT: ENUM_B 2022s # ENUMPREFIX: SOME 2022s # enumsince: 2022s # type: enum 2022s # Type: Enum 2022s # TYPE: ENUM 2022s # value-header 2022s # EnumName: SomeEnumB 2022s # enum_name: some_enum_b 2022s # ENUMNAME: SOME_ENUM_B 2022s # ENUMSHORT: ENUM_B 2022s # ENUMPREFIX: SOME 2022s # enumsince: 2022s # type: enum 2022s # Type: Enum 2022s # TYPE: ENUM 2022s # value-production 2022s # VALUENAME: ENUM_VALUE_PUBLIC2 2022s # valuenick: public2 2022s # valuenum: 1 2022s # type: enum 2022s # Type: Enum 2022s # TYPE: ENUM 2022s # value-tail 2022s # EnumName: SomeEnumB 2022s # enum_name: some_enum_b 2022s # ENUMNAME: SOME_ENUM_B 2022s # ENUMSHORT: ENUM_B 2022s # ENUMPREFIX: SOME 2022s # enumsince: 2022s # type: enum 2022s # Type: Enum 2022s # TYPE: ENUM 2022s # file-tail 2022s # 2022s # comment 2022s # comment: Generated data ends here 2022s # Error: 2022s ok 27 __main__.TestRspMkenums.test_enum_symbolic_expression 2022s # glib-mkenums: /usr/bin/glib-mkenums 2022s # tmpdir: /tmp/tmpl5o9hhsq 2022s # rspfile: True 2022s # /tmp/tmpl5o9hhsq/tmp6jcdql3n.h: 2022s # typedef enum { 2022s # /*< private >*/ 2022s # ENUM_VALUE_PRIVATE = 5, 2022s # /*< public >*/ 2022s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 2022s # } TestSymbolicEnum; 2022s # 2022s # /tmp/tmpl5o9hhsq/tmpjtqmn8em.template: 2022s # /*** BEGIN file-header ***/ 2022s # file-header 2022s # /*** END file-header ***/ 2022s # 2022s # /*** BEGIN file-production ***/ 2022s # file-production 2022s # filename: @filename@ 2022s # basename: @basename@ 2022s # /*** END file-production ***/ 2022s # 2022s # /*** BEGIN enumeration-production ***/ 2022s # enumeration-production 2022s # EnumName: @EnumName@ 2022s # enum_name: @enum_name@ 2022s # ENUMNAME: @ENUMNAME@ 2022s # ENUMSHORT: @ENUMSHORT@ 2022s # ENUMPREFIX: @ENUMPREFIX@ 2022s # enumsince: @enumsince@ 2022s # type: @type@ 2022s # Type: @Type@ 2022s # TYPE: @TYPE@ 2022s # /*** END enumeration-production ***/ 2022s # 2022s # /*** BEGIN value-header ***/ 2022s # value-header 2022s # EnumName: @EnumName@ 2022s # enum_name: @enum_name@ 2022s # ENUMNAME: @ENUMNAME@ 2022s # ENUMSHORT: @ENUMSHORT@ 2022s # ENUMPREFIX: @ENUMPREFIX@ 2022s # enumsince: @enumsince@ 2022s # type: @type@ 2022s # Type: @Type@ 2022s # TYPE: @TYPE@ 2022s # /*** END value-header ***/ 2022s # 2022s # /*** BEGIN value-production ***/ 2022s # value-production 2022s # VALUENAME: @VALUENAME@ 2022s # valuenick: @valuenick@ 2022s # valuenum: @valuenum@ 2022s # type: @type@ 2022s # Type: @Type@ 2022s # TYPE: @TYPE@ 2022s # /*** END value-production ***/ 2022s # 2022s # /*** BEGIN value-tail ***/ 2022s # value-tail 2022s # EnumName: @EnumName@ 2022s # enum_name: @enum_name@ 2022s # ENUMNAME: @ENUMNAME@ 2022s # ENUMSHORT: @ENUMSHORT@ 2022s # ENUMPREFIX: @ENUMPREFIX@ 2022s # enumsince: @enumsince@ 2022s # type: @type@ 2022s # Type: @Type@ 2022s # TYPE: @TYPE@ 2022s # /*** END value-tail ***/ 2022s # 2022s # /*** BEGIN comment ***/ 2022s # comment 2022s # comment: @comment@ 2022s # /*** END comment ***/ 2022s # 2022s # /*** BEGIN file-tail ***/ 2022s # file-tail 2022s # /*** END file-tail ***/ 2022s # 2022s # Response file contains: --template /tmp/tmpl5o9hhsq/tmpjtqmn8em.template /tmp/tmpl5o9hhsq/tmp6jcdql3n.h 2022s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpl5o9hhsq/tmp4xs58uxp'] 2022s # Return code: 0 2022s # Output: 2022s # comment 2022s # 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. 2022s # 2022s # 2022s # file-header 2022s # file-production 2022s # filename: /tmp/tmpl5o9hhsq/tmp6jcdql3n.h 2022s # basename: tmp6jcdql3n.h 2022s # enumeration-production 2022s # EnumName: TestSymbolicEnum 2022s # enum_name: test_symbolic_enum 2022s # ENUMNAME: TEST_SYMBOLIC_ENUM 2022s # ENUMSHORT: SYMBOLIC_ENUM 2022s # ENUMPREFIX: TEST 2022s # enumsince: 2022s # type: enum 2022s # Type: Enum 2022s # TYPE: ENUM 2022s # value-header 2022s # EnumName: TestSymbolicEnum 2022s # enum_name: test_symbolic_enum 2022s # ENUMNAME: TEST_SYMBOLIC_ENUM 2022s # ENUMSHORT: SYMBOLIC_ENUM 2022s # ENUMPREFIX: TEST 2022s # enumsince: 2022s # type: enum 2022s # Type: Enum 2022s # TYPE: ENUM 2022s # value-production 2022s # VALUENAME: ENUM_VALUE_PUBLIC 2022s # valuenick: public 2022s # valuenum: 7 2022s # type: enum 2022s # Type: Enum 2022s # TYPE: ENUM 2022s # value-tail 2022s # EnumName: TestSymbolicEnum 2022s # enum_name: test_symbolic_enum 2022s # ENUMNAME: TEST_SYMBOLIC_ENUM 2022s # ENUMSHORT: SYMBOLIC_ENUM 2022s # ENUMPREFIX: TEST 2022s # enumsince: 2022s # type: enum 2022s # Type: Enum 2022s # TYPE: ENUM 2022s # file-tail 2022s # 2022s # comment 2022s # comment: Generated data ends here 2022s # Error: 2022s # Executing: glib/mkenums.py.test 2022s ok 28 __main__.TestRspMkenums.test_filename_basename_in_fhead_ftail 2022s # glib-mkenums: /usr/bin/glib-mkenums 2022s # tmpdir: /tmp/tmpg_510xsj 2022s # rspfile: True 2022s # /tmp/tmpg_510xsj/tmp118ccsks.template: 2022s # /*** BEGIN file-header ***/ 2022s # file-header 2022s # filename: @filename@ 2022s # basename: @basename@ 2022s # /*** END file-header ***/ 2022s # 2022s # /*** BEGIN comment ***/ 2022s # comment 2022s # comment: @comment@ 2022s # /*** END comment ***/ 2022s # 2022s # /*** BEGIN file-tail ***/ 2022s # file-tail 2022s # filename: @filename@ 2022s # basename: @basename@ 2022s # /*** END file-tail ***/ 2022s # Response file contains: --template /tmp/tmpg_510xsj/tmp118ccsks.template 2022s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpg_510xsj/tmpos_5s5cq'] 2022s # Return code: 0 2022s # Output: 2022s # comment 2022s # 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. 2022s # 2022s # 2022s # file-header 2022s # filename: @filename@ 2022s # basename: @basename@ 2022s # file-tail 2022s # filename: @filename@ 2022s # basename: @basename@ 2022s # 2022s # comment 2022s # comment: Generated data ends here 2022s # Error: 2022s # WARNING: @filename@ used in file-header section. 2022s # WARNING: @basename@ used in file-header section. 2022s # WARNING: @filename@ used in file-tail section. 2022s # WARNING: @basename@ used in file-tail section. 2023s ok 29 __main__.TestRspMkenums.test_help 2023s # glib-mkenums: /usr/bin/glib-mkenums 2023s # tmpdir: /tmp/tmpqt79fnrk 2023s # rspfile: True 2023s # Response file contains: --help 2023s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpqt79fnrk/tmp0cldxtyr'] 2023s # Return code: 0 2023s # Output: 2023s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 2023s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 2023s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 2023s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 2023s # [--comments COMMENT_TMPL] [--template TEMPLATE] 2023s # [--output OUTPUT] [--version] 2023s # [args ...] 2023s # 2023s # positional arguments: 2023s # args One or more input files, or a single argument 2023s # @rspfile_path pointing to a file that contains the 2023s # actual arguments 2023s # 2023s # options: 2023s # -h, --help show this help message and exit 2023s # --identifier-prefix IDPREFIX 2023s # Identifier prefix 2023s # --symbol-prefix SYMPREFIX 2023s # Symbol prefix 2023s # --fhead FHEAD Output file header 2023s # --ftail FTAIL Output file footer 2023s # --fprod FPROD Put out TEXT every time a new input file is being 2023s # processed. 2023s # --eprod EPROD Per enum text, produced prior to value iterations 2023s # --vhead VHEAD Value header, produced before iterating over enum 2023s # values 2023s # --vprod VPROD Value text, produced for each enum value. 2023s # --vtail VTAIL Value tail, produced after iterating over enum values 2023s # --comments COMMENT_TMPL 2023s # Comment structure 2023s # --template TEMPLATE Template file 2023s # --output OUTPUT 2023s # --version, -v Print version information 2023s # 2023s # Production text substitutions: 2023s # @EnumName@ PrefixTheXEnum 2023s # @enum_name@ prefix_the_xenum 2023s # @ENUMNAME@ PREFIX_THE_XENUM 2023s # @ENUMSHORT@ THE_XENUM 2023s # @ENUMPREFIX@ PREFIX 2023s # @enumsince@ the user-provided since value given 2023s # @VALUENAME@ PREFIX_THE_XVALUE 2023s # @valuenick@ the-xvalue 2023s # @valuenum@ the integer value (limited support, Since: 2.26) 2023s # @type@ either enum or flags 2023s # @Type@ either Enum or Flags 2023s # @TYPE@ either ENUM or FLAGS 2023s # @filename@ name of current input file 2023s # @basename@ base name of the current input file (Since: 2.22) 2023s # Error: 2023s ok 30 __main__.TestRspMkenums.test_no_args 2023s # glib-mkenums: /usr/bin/glib-mkenums 2023s # tmpdir: /tmp/tmph2onbazd 2023s # rspfile: True 2023s # Response file contains: 2023s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmph2onbazd/tmpvqy0xxda'] 2023s # Return code: 0 2023s # Output: 2023s # /* 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. */ 2023s # 2023s # 2023s # /* Generated data ends here */ 2023s # Error: 2023s ok 31 __main__.TestRspMkenums.test_no_headers 2023s # glib-mkenums: /usr/bin/glib-mkenums 2023s # tmpdir: /tmp/tmpvbsppt0q 2023s # rspfile: True 2023s # /tmp/tmpvbsppt0q/tmprcpjy6nb.template: 2023s # /*** BEGIN file-header ***/ 2023s # file-header 2023s # /*** END file-header ***/ 2023s # 2023s # /*** BEGIN file-production ***/ 2023s # file-production 2023s # filename: @filename@ 2023s # basename: @basename@ 2023s # /*** END file-production ***/ 2023s # 2023s # /*** BEGIN enumeration-production ***/ 2023s # enumeration-production 2023s # EnumName: @EnumName@ 2023s # enum_name: @enum_name@ 2023s # ENUMNAME: @ENUMNAME@ 2023s # ENUMSHORT: @ENUMSHORT@ 2023s # ENUMPREFIX: @ENUMPREFIX@ 2023s # enumsince: @enumsince@ 2023s # type: @type@ 2023s # Type: @Type@ 2023s # TYPE: @TYPE@ 2023s # /*** END enumeration-production ***/ 2023s # 2023s # /*** BEGIN value-header ***/ 2023s # value-header 2023s # EnumName: @EnumName@ 2023s # enum_name: @enum_name@ 2023s # ENUMNAME: @ENUMNAME@ 2023s # ENUMSHORT: @ENUMSHORT@ 2023s # ENUMPREFIX: @ENUMPREFIX@ 2023s # enumsince: @enumsince@ 2023s # type: @type@ 2023s # Type: @Type@ 2023s # TYPE: @TYPE@ 2023s # /*** END value-header ***/ 2023s # 2023s # /*** BEGIN value-production ***/ 2023s # value-production 2023s # VALUENAME: @VALUENAME@ 2023s # valuenick: @valuenick@ 2023s # valuenum: @valuenum@ 2023s # type: @type@ 2023s # Type: @Type@ 2023s # TYPE: @TYPE@ 2023s # /*** END value-production ***/ 2023s # 2023s # /*** BEGIN value-tail ***/ 2023s # value-tail 2023s # EnumName: @EnumName@ 2023s # enum_name: @enum_name@ 2023s # ENUMNAME: @ENUMNAME@ 2023s # ENUMSHORT: @ENUMSHORT@ 2023s # ENUMPREFIX: @ENUMPREFIX@ 2023s # enumsince: @enumsince@ 2023s # type: @type@ 2023s # Type: @Type@ 2023s # TYPE: @TYPE@ 2023s # /*** END value-tail ***/ 2023s # 2023s # /*** BEGIN comment ***/ 2023s # comment 2023s # comment: @comment@ 2023s # /*** END comment ***/ 2023s # 2023s # /*** BEGIN file-tail ***/ 2023s # file-tail 2023s # /*** END file-tail ***/ 2023s # 2023s # Response file contains: --template /tmp/tmpvbsppt0q/tmprcpjy6nb.template 2023s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpvbsppt0q/tmpdqkjymx_'] 2023s # Return code: 0 2023s # Output: 2023s # comment 2023s # 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. 2023s # 2023s # 2023s # file-header 2023s # file-tail 2023s # 2023s # comment 2023s # comment: Generated data ends here 2023s # Error: 2024s ok 32 __main__.TestRspMkenums.test_no_nick 2024s # glib-mkenums: /usr/bin/glib-mkenums 2024s # tmpdir: /tmp/tmpbfb3a4vh 2024s # rspfile: True 2024s # /tmp/tmpbfb3a4vh/tmpva0socd4.h: 2024s # typedef enum { 2024s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 2024s # } GeglSamplerType; 2024s # 2024s # /tmp/tmpbfb3a4vh/tmpwk9pzs30.template: 2024s # /*** BEGIN file-header ***/ 2024s # file-header 2024s # /*** END file-header ***/ 2024s # 2024s # /*** BEGIN file-production ***/ 2024s # file-production 2024s # filename: @filename@ 2024s # basename: @basename@ 2024s # /*** END file-production ***/ 2024s # 2024s # /*** BEGIN enumeration-production ***/ 2024s # enumeration-production 2024s # EnumName: @EnumName@ 2024s # enum_name: @enum_name@ 2024s # ENUMNAME: @ENUMNAME@ 2024s # ENUMSHORT: @ENUMSHORT@ 2024s # ENUMPREFIX: @ENUMPREFIX@ 2024s # enumsince: @enumsince@ 2024s # type: @type@ 2024s # Type: @Type@ 2024s # TYPE: @TYPE@ 2024s # /*** END enumeration-production ***/ 2024s # 2024s # /*** BEGIN value-header ***/ 2024s # value-header 2024s # EnumName: @EnumName@ 2024s # enum_name: @enum_name@ 2024s # ENUMNAME: @ENUMNAME@ 2024s # ENUMSHORT: @ENUMSHORT@ 2024s # ENUMPREFIX: @ENUMPREFIX@ 2024s # enumsince: @enumsince@ 2024s # type: @type@ 2024s # Type: @Type@ 2024s # TYPE: @TYPE@ 2024s # /*** END value-header ***/ 2024s # 2024s # /*** BEGIN value-production ***/ 2024s # value-production 2024s # VALUENAME: @VALUENAME@ 2024s # valuenick: @valuenick@ 2024s # valuenum: @valuenum@ 2024s # type: @type@ 2024s # Type: @Type@ 2024s # TYPE: @TYPE@ 2024s # /*** END value-production ***/ 2024s # 2024s # /*** BEGIN value-tail ***/ 2024s # value-tail 2024s # EnumName: @EnumName@ 2024s # enum_name: @enum_name@ 2024s # ENUMNAME: @ENUMNAME@ 2024s # ENUMSHORT: @ENUMSHORT@ 2024s # ENUMPREFIX: @ENUMPREFIX@ 2024s # enumsince: @enumsince@ 2024s # type: @type@ 2024s # Type: @Type@ 2024s # TYPE: @TYPE@ 2024s # /*** END value-tail ***/ 2024s # 2024s # /*** BEGIN comment ***/ 2024s # comment 2024s # comment: @comment@ 2024s # /*** END comment ***/ 2024s # 2024s # /*** BEGIN file-tail ***/ 2024s # file-tail 2024s # /*** END file-tail ***/ 2024s # 2024s # Response file contains: --template /tmp/tmpbfb3a4vh/tmpwk9pzs30.template /tmp/tmpbfb3a4vh/tmpva0socd4.h 2024s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpbfb3a4vh/tmphmt1vvyx'] 2024s # Return code: 0 2024s # Output: 2024s # comment 2024s # 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. 2024s # 2024s # 2024s # file-header 2024s # file-production 2024s # filename: /tmp/tmpbfb3a4vh/tmpva0socd4.h 2024s # basename: tmpva0socd4.h 2024s # enumeration-production 2024s # EnumName: GeglSamplerType 2024s # enum_name: gegl_sampler_type 2024s # ENUMNAME: GEGL_SAMPLER_TYPE 2024s # ENUMSHORT: SAMPLER_TYPE 2024s # ENUMPREFIX: GEGL 2024s # enumsince: 2024s # type: enum 2024s # Type: Enum 2024s # TYPE: ENUM 2024s # value-header 2024s # EnumName: GeglSamplerType 2024s # enum_name: gegl_sampler_type 2024s # ENUMNAME: GEGL_SAMPLER_TYPE 2024s # ENUMSHORT: SAMPLER_TYPE 2024s # ENUMPREFIX: GEGL 2024s # enumsince: 2024s # type: enum 2024s # Type: Enum 2024s # TYPE: ENUM 2024s # value-production 2024s # VALUENAME: GEGL_SAMPLER_NEAREST 2024s # valuenick: nearest 2024s # valuenum: 0 2024s # type: enum 2024s # Type: Enum 2024s # TYPE: ENUM 2024s # value-tail 2024s # EnumName: GeglSamplerType 2024s # enum_name: gegl_sampler_type 2024s # ENUMNAME: GEGL_SAMPLER_TYPE 2024s # ENUMSHORT: SAMPLER_TYPE 2024s # ENUMPREFIX: GEGL 2024s # enumsince: 2024s # type: enum 2024s # Type: Enum 2024s # TYPE: ENUM 2024s # file-tail 2024s # 2024s # comment 2024s # comment: Generated data ends here 2024s # Error: 2024s ok 33 __main__.TestRspMkenums.test_non_utf8_encoding 2024s # glib-mkenums: /usr/bin/glib-mkenums 2024s # tmpdir: /tmp/tmpkgp5h296 2024s # rspfile: True 2024s # /tmp/tmpkgp5h296/tmp45i65_14.h: 2024s # /* Copyright © La Peña */ 2024s # typedef enum { 2024s # ENUM_VALUE 2024s # } SomeEnumIdentifier; 2024s # 2024s # /tmp/tmpkgp5h296/tmpw8q3k2q9.template: 2024s # /*** BEGIN file-header ***/ 2024s # file-header 2024s # /*** END file-header ***/ 2024s # 2024s # /*** BEGIN file-production ***/ 2024s # file-production 2024s # filename: @filename@ 2024s # basename: @basename@ 2024s # /*** END file-production ***/ 2024s # 2024s # /*** BEGIN enumeration-production ***/ 2024s # enumeration-production 2024s # EnumName: @EnumName@ 2024s # enum_name: @enum_name@ 2024s # ENUMNAME: @ENUMNAME@ 2024s # ENUMSHORT: @ENUMSHORT@ 2024s # ENUMPREFIX: @ENUMPREFIX@ 2024s # enumsince: @enumsince@ 2024s # type: @type@ 2024s # Type: @Type@ 2024s # TYPE: @TYPE@ 2024s # /*** END enumeration-production ***/ 2024s # 2024s # /*** BEGIN value-header ***/ 2024s # value-header 2024s # EnumName: @EnumName@ 2024s # enum_name: @enum_name@ 2024s # ENUMNAME: @ENUMNAME@ 2024s # ENUMSHORT: @ENUMSHORT@ 2024s # ENUMPREFIX: @ENUMPREFIX@ 2024s # enumsince: @enumsince@ 2024s # type: @type@ 2024s # Type: @Type@ 2024s # TYPE: @TYPE@ 2024s # /*** END value-header ***/ 2024s # 2024s # /*** BEGIN value-production ***/ 2024s # value-production 2024s # VALUENAME: @VALUENAME@ 2024s # valuenick: @valuenick@ 2024s # valuenum: @valuenum@ 2024s # type: @type@ 2024s # Type: @Type@ 2024s # TYPE: @TYPE@ 2024s # /*** END value-production ***/ 2024s # 2024s # /*** BEGIN value-tail ***/ 2024s # value-tail 2024s # EnumName: @EnumName@ 2024s # enum_name: @enum_name@ 2024s # ENUMNAME: @ENUMNAME@ 2024s # ENUMSHORT: @ENUMSHORT@ 2024s # ENUMPREFIX: @ENUMPREFIX@ 2024s # enumsince: @enumsince@ 2024s # type: @type@ 2024s # Type: @Type@ 2024s # TYPE: @TYPE@ 2024s # /*** END value-tail ***/ 2024s # 2024s # /*** BEGIN comment ***/ 2024s # comment 2024s # comment: @comment@ 2024s # /*** END comment ***/ 2024s # 2024s # /*** BEGIN file-tail ***/ 2024s # file-tail 2024s # /*** END file-tail ***/ 2024s # 2024s # Response file contains: --template /tmp/tmpkgp5h296/tmpw8q3k2q9.template /tmp/tmpkgp5h296/tmp45i65_14.h 2024s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpkgp5h296/tmpy6q37_hb'] 2024s # Return code: 0 2024s # Output: 2024s # comment 2024s # 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. 2024s # 2024s # 2024s # file-header 2024s # file-production 2024s # filename: /tmp/tmpkgp5h296/tmp45i65_14.h 2024s # basename: tmp45i65_14.h 2024s # enumeration-production 2024s # EnumName: SomeEnumIdentifier 2024s # enum_name: some_enum_identifier 2024s # ENUMNAME: SOME_ENUM_IDENTIFIER 2024s # ENUMSHORT: ENUM_IDENTIFIER 2024s # ENUMPREFIX: SOME 2024s # enumsince: 2024s # type: enum 2024s # Type: Enum 2024s # TYPE: ENUM 2024s # value-header 2024s # EnumName: SomeEnumIdentifier 2024s # enum_name: some_enum_identifier 2024s # ENUMNAME: SOME_ENUM_IDENTIFIER 2024s # ENUMSHORT: ENUM_IDENTIFIER 2024s # ENUMPREFIX: SOME 2024s # enumsince: 2024s # type: enum 2024s # Type: Enum 2024s # TYPE: ENUM 2024s # value-production 2024s # VALUENAME: ENUM_VALUE 2024s # valuenick: value 2024s # valuenum: 0 2024s # type: enum 2024s # Type: Enum 2024s # TYPE: ENUM 2024s # value-tail 2024s # EnumName: SomeEnumIdentifier 2024s # enum_name: some_enum_identifier 2024s # ENUMNAME: SOME_ENUM_IDENTIFIER 2024s # ENUMSHORT: ENUM_IDENTIFIER 2024s # ENUMPREFIX: SOME 2024s # enumsince: 2024s # type: enum 2024s # Type: Enum 2024s # TYPE: ENUM 2024s # file-tail 2024s # 2024s # comment 2024s # comment: Generated data ends here 2024s # Error: 2024s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 2024s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 2025s ok 34 __main__.TestRspMkenums.test_reproducible 2025s # glib-mkenums: /usr/bin/glib-mkenums 2025s # tmpdir: /tmp/tmpiluqtb0r 2025s # rspfile: True 2025s # /tmp/tmpiluqtb0r/tmpe__qyay5.template: template 2025s # Response file contains: --template /tmp/tmpiluqtb0r/tmpe__qyay5.template /tmp/tmpiluqtb0r/tmp7e79gobw1.h /tmp/tmpiluqtb0r/tmpag0ubx_h2.h 2025s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpiluqtb0r/tmp0djj6eo4'] 2025s # Return code: 0 2025s # Output: 2025s # /* 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. */ 2025s # 2025s # 2025s # /* Generated data ends here */ 2025s # Error: 2025s # 2025s # /tmp/tmpiluqtb0r/tmpl6bc2o2o.template: template 2025s # Response file contains: --template /tmp/tmpiluqtb0r/tmpl6bc2o2o.template /tmp/tmpiluqtb0r/tmpag0ubx_h2.h /tmp/tmpiluqtb0r/tmp7e79gobw1.h 2025s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpiluqtb0r/tmpsq45_veg'] 2025s # Return code: 0 2025s # Output: 2025s # /* 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. */ 2025s # 2025s # 2025s # /* Generated data ends here */ 2025s # Error: 2025s ok 35 __main__.TestRspMkenums.test_since 2025s # glib-mkenums: /usr/bin/glib-mkenums 2025s # tmpdir: /tmp/tmpa81m1xxn 2025s # rspfile: True 2025s # /tmp/tmpa81m1xxn/tmp0c4p687x.h: 2025s # typedef enum { /*< since=1.0 >*/ 2025s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 2025s # } QmiWmsMessageProtocol; 2025s # 2025s # /tmp/tmpa81m1xxn/tmpddmok1ap.template: 2025s # /*** BEGIN file-header ***/ 2025s # file-header 2025s # /*** END file-header ***/ 2025s # 2025s # /*** BEGIN file-production ***/ 2025s # file-production 2025s # filename: @filename@ 2025s # basename: @basename@ 2025s # /*** END file-production ***/ 2025s # 2025s # /*** BEGIN enumeration-production ***/ 2025s # enumeration-production 2025s # EnumName: @EnumName@ 2025s # enum_name: @enum_name@ 2025s # ENUMNAME: @ENUMNAME@ 2025s # ENUMSHORT: @ENUMSHORT@ 2025s # ENUMPREFIX: @ENUMPREFIX@ 2025s # enumsince: @enumsince@ 2025s # type: @type@ 2025s # Type: @Type@ 2025s # TYPE: @TYPE@ 2025s # /*** END enumeration-production ***/ 2025s # 2025s # /*** BEGIN value-header ***/ 2025s # value-header 2025s # EnumName: @EnumName@ 2025s # enum_name: @enum_name@ 2025s # ENUMNAME: @ENUMNAME@ 2025s # ENUMSHORT: @ENUMSHORT@ 2025s # ENUMPREFIX: @ENUMPREFIX@ 2025s # enumsince: @enumsince@ 2025s # type: @type@ 2025s # Type: @Type@ 2025s # TYPE: @TYPE@ 2025s # /*** END value-header ***/ 2025s # 2025s # /*** BEGIN value-production ***/ 2025s # value-production 2025s # VALUENAME: @VALUENAME@ 2025s # valuenick: @valuenick@ 2025s # valuenum: @valuenum@ 2025s # type: @type@ 2025s # Type: @Type@ 2025s # TYPE: @TYPE@ 2025s # /*** END value-production ***/ 2025s # 2025s # /*** BEGIN value-tail ***/ 2025s # value-tail 2025s # EnumName: @EnumName@ 2025s # enum_name: @enum_name@ 2025s # ENUMNAME: @ENUMNAME@ 2025s # ENUMSHORT: @ENUMSHORT@ 2025s # ENUMPREFIX: @ENUMPREFIX@ 2025s # enumsince: @enumsince@ 2025s # type: @type@ 2025s # Type: @Type@ 2025s # TYPE: @TYPE@ 2025s # /*** END value-tail ***/ 2025s # 2025s # /*** BEGIN comment ***/ 2025s # comment 2025s # comment: @comment@ 2025s # /*** END comment ***/ 2025s # 2025s # /*** BEGIN file-tail ***/ 2025s # file-tail 2025s # /*** END file-tail ***/ 2025s # 2025s # Response file contains: --template /tmp/tmpa81m1xxn/tmpddmok1ap.template /tmp/tmpa81m1xxn/tmp0c4p687x.h 2025s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpa81m1xxn/tmp86mum_7q'] 2025s # Return code: 0 2025s # Output: 2025s # comment 2025s # 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. 2025s # 2025s # 2025s # file-header 2025s # file-production 2025s # filename: /tmp/tmpa81m1xxn/tmp0c4p687x.h 2025s # basename: tmp0c4p687x.h 2025s # enumeration-production 2025s # EnumName: QmiWmsMessageProtocol 2025s # enum_name: qmi_wms_message_protocol 2025s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 2025s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 2025s # ENUMPREFIX: QMI 2025s # enumsince: 1.0 2025s # type: enum 2025s # Type: Enum 2025s # TYPE: ENUM 2025s # value-header 2025s # EnumName: QmiWmsMessageProtocol 2025s # enum_name: qmi_wms_message_protocol 2025s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 2025s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 2025s # ENUMPREFIX: QMI 2025s # enumsince: 1.0 2025s # type: enum 2025s # Type: Enum 2025s # TYPE: ENUM 2025s # value-production 2025s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 2025s # valuenick: cdma 2025s # valuenum: 0 2025s # type: enum 2025s # Type: Enum 2025s # TYPE: ENUM 2025s # value-tail 2025s # EnumName: QmiWmsMessageProtocol 2025s # enum_name: qmi_wms_message_protocol 2025s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 2025s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 2025s # ENUMPREFIX: QMI 2025s # enumsince: 1.0 2025s # type: enum 2025s # Type: Enum 2025s # TYPE: ENUM 2025s # file-tail 2025s # 2025s # comment 2025s # comment: Generated data ends here 2025s # Error: 2025s ok 36 __main__.TestRspMkenums.test_with_double_quotes 2025s # glib-mkenums: /usr/bin/glib-mkenums 2025s # tmpdir: /tmp/tmpuyc7hyer 2025s # rspfile: True 2025s # /tmp/tmpuyc7hyer/tmpv0ibz2r8.h: 2025s # typedef enum { 2025s # FOO_VALUE /*< nick="eek, a comma" >*/ 2025s # } Foo; 2025s # 2025s # /tmp/tmpuyc7hyer/tmpetccqy6l.template: 2025s # /*** BEGIN file-header ***/ 2025s # file-header 2025s # /*** END file-header ***/ 2025s # 2025s # /*** BEGIN file-production ***/ 2025s # file-production 2025s # filename: @filename@ 2025s # basename: @basename@ 2025s # /*** END file-production ***/ 2025s # 2025s # /*** BEGIN enumeration-production ***/ 2025s # enumeration-production 2025s # EnumName: @EnumName@ 2025s # enum_name: @enum_name@ 2025s # ENUMNAME: @ENUMNAME@ 2025s # ENUMSHORT: @ENUMSHORT@ 2025s # ENUMPREFIX: @ENUMPREFIX@ 2025s # enumsince: @enumsince@ 2025s # type: @type@ 2025s # Type: @Type@ 2025s # TYPE: @TYPE@ 2025s # /*** END enumeration-production ***/ 2025s # 2025s # /*** BEGIN value-header ***/ 2025s # value-header 2025s # EnumName: @EnumName@ 2025s # enum_name: @enum_name@ 2025s # ENUMNAME: @ENUMNAME@ 2025s # ENUMSHORT: @ENUMSHORT@ 2025s # ENUMPREFIX: @ENUMPREFIX@ 2025s # enumsince: @enumsince@ 2025s # type: @type@ 2025s # Type: @Type@ 2025s # TYPE: @TYPE@ 2025s # /*** END value-header ***/ 2025s # 2025s # /*** BEGIN value-production ***/ 2025s # value-production 2025s # VALUENAME: @VALUENAME@ 2025s # valuenick: @valuenick@ 2025s # valuenum: @valuenum@ 2025s # type: @type@ 2025s # Type: @Type@ 2025s # TYPE: @TYPE@ 2025s # /*** END value-production ***/ 2025s # 2025s # /*** BEGIN value-tail ***/ 2025s # value-tail 2025s # EnumName: @EnumName@ 2025s # enum_name: @enum_name@ 2025s # ENUMNAME: @ENUMNAME@ 2025s # ENUMSHORT: @ENUMSHORT@ 2025s # ENUMPREFIX: @ENUMPREFIX@ 2025s # enumsince: @enumsince@ 2025s # type: @type@ 2025s # Type: @Type@ 2025s # TYPE: @TYPE@ 2025s # /*** END value-tail ***/ 2025s # 2025s # /*** BEGIN comment ***/ 2025s # comment 2025s # comment: @comment@ 2025s # /*** END comment ***/ 2025s # 2025s # /*** BEGIN file-tail ***/ 2025s # file-tail 2025s # /*** END file-tail ***/ 2025s # 2025s # Response file contains: --template /tmp/tmpuyc7hyer/tmpetccqy6l.template /tmp/tmpuyc7hyer/tmpv0ibz2r8.h 2025s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpuyc7hyer/tmp5rpay_hd'] 2025s # Return code: 0 2025s # Output: 2025s # comment 2025s # 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. 2025s # 2025s # 2025s # file-header 2025s # file-production 2025s # filename: /tmp/tmpuyc7hyer/tmpv0ibz2r8.h 2025s # basename: tmpv0ibz2r8.h 2025s # enumeration-production 2025s # EnumName: Foo 2025s # enum_name: foo_ 2025s # ENUMNAME: FOO_ 2025s # ENUMSHORT: 2025s # ENUMPREFIX: FOO 2025s # enumsince: 2025s # type: enum 2025s # Type: Enum 2025s # TYPE: ENUM 2025s # value-header 2025s # EnumName: Foo 2025s # enum_name: foo_ 2025s # ENUMNAME: FOO_ 2025s # ENUMSHORT: 2025s # ENUMPREFIX: FOO 2025s # enumsince: 2025s # type: enum 2025s # Type: Enum 2025s # TYPE: ENUM 2025s # value-production 2025s # VALUENAME: FOO_VALUE 2025s # valuenick: eek, a comma 2025s # valuenum: 0 2025s # type: enum 2025s # Type: Enum 2025s # TYPE: ENUM 2025s # value-tail 2025s # EnumName: Foo 2025s # enum_name: foo_ 2025s # ENUMNAME: FOO_ 2025s # ENUMSHORT: 2025s # ENUMPREFIX: FOO 2025s # enumsince: 2025s # type: enum 2025s # Type: Enum 2025s # TYPE: ENUM 2025s # file-tail 2025s # 2025s # comment 2025s # comment: Generated data ends here 2025s # Error: 2025s 1..36 2026s ok - glib/mkenums.py.test 2026s # Running test: glib/gdbus-exit-on-close.test 2026s TAP version 14 2026s # random seed: R02S12fa2c0b1d6a8e6cc46d59a19be3d1a0 2026s 1..4 2026s # Start of gdbus tests 2026s # Start of exit-on-close tests 2026s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/default/.dirs/home 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/default/.dirs/cache 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/default/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/default/.dirs/system-config2 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/default/.dirs/config 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/default/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/default/.dirs/system-data2 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/default/.dirs/data 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/default/.dirs/state 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/default/.dirs/runtime 2026s ok 1 /gdbus/exit-on-close/default 2026s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/true/.dirs/home 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/true/.dirs/cache 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/true/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/true/.dirs/system-config2 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/true/.dirs/config 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/true/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/true/.dirs/system-data2 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/true/.dirs/data 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/true/.dirs/state 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/true/.dirs/runtime 2026s ok 2 /gdbus/exit-on-close/true 2026s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/false/.dirs/home 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/false/.dirs/cache 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/false/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/false/.dirs/system-config2 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/false/.dirs/config 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/false/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/false/.dirs/system-data2 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/false/.dirs/data 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/false/.dirs/state 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/false/.dirs/runtime 2026s ok 3 /gdbus/exit-on-close/false 2026s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/we-close/.dirs/home 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/we-close/.dirs/cache 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/we-close/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/we-close/.dirs/system-config2 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/we-close/.dirs/config 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/we-close/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/we-close/.dirs/system-data2 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/we-close/.dirs/data 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/we-close/.dirs/state 2026s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_FWJMK3/gdbus/exit-on-close/we-close/.dirs/runtime 2027s ok 4 /gdbus/exit-on-close/we-close 2027s # Start of default tests 2027s # End of default tests 2027s # Start of true tests 2027s # End of true tests 2027s # Start of false tests 2027s # End of false tests 2027s # Start of we-close tests 2027s # End of we-close tests 2027s # End of exit-on-close tests 2027s # End of gdbus tests 2027s TAP version 14 2027s # random seed: R02Sbcf4cea5d44a6384ef3c3375254a3d59 2027s 1..6 2027s # Start of thread tests 2027s ok - glib/gdbus-exit-on-close.test 2027s # Running test: glib/thread-deprecated.test 2027s ok 1 /thread/mutex 2027s # Executing: glib/thread-deprecated.test 2027s ok 2 /thread/static-rec-mutex 2032s # Executing: glib/thread-deprecated.test 2033s ok 3 /thread/static-private 2033s # slow test /thread/static-private executed in 5.37 secs 2037s # Executing: glib/thread-deprecated.test 2038s ok 4 /thread/static-rw-lock 2038s # slow test /thread/static-rw-lock executed in 5.13 secs 2038s ok 5 /thread/once 2043s # Executing: glib/thread-deprecated.test 2047s # Executing: glib/thread-deprecated.test 2049s ok 6 /thread/rerun-all 2049s # slow test /thread/rerun-all executed in 10.97 secs 2049s # End of thread tests 2049s ok - glib/thread-deprecated.test 2049s TAP version 14 2049s # random seed: R02S259d781463580e18a04dbfb1e67ce260 2049s 1..3 2049s # Running test: glib/error.test 2049s ok - glib/error.test 2049s # Running test: glib/unicode-normalize.test 2049s # Start of error tests 2049s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_LPD6J3/error/from-errno/.dirs/home 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_LPD6J3/error/from-errno/.dirs/cache 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_LPD6J3/error/from-errno/.dirs/system-config1:/tmp/test_error_LPD6J3/error/from-errno/.dirs/system-config2 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_LPD6J3/error/from-errno/.dirs/config 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_LPD6J3/error/from-errno/.dirs/system-data1:/tmp/test_error_LPD6J3/error/from-errno/.dirs/system-data2 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_LPD6J3/error/from-errno/.dirs/data 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_LPD6J3/error/from-errno/.dirs/state 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_LPD6J3/error/from-errno/.dirs/runtime 2049s ok 1 /error/from-errno 2049s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_LPD6J3/error/from-file-error/.dirs/home 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_LPD6J3/error/from-file-error/.dirs/cache 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_LPD6J3/error/from-file-error/.dirs/system-config1:/tmp/test_error_LPD6J3/error/from-file-error/.dirs/system-config2 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_LPD6J3/error/from-file-error/.dirs/config 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_LPD6J3/error/from-file-error/.dirs/system-data1:/tmp/test_error_LPD6J3/error/from-file-error/.dirs/system-data2 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_LPD6J3/error/from-file-error/.dirs/data 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_LPD6J3/error/from-file-error/.dirs/state 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_LPD6J3/error/from-file-error/.dirs/runtime 2049s ok 2 /error/from-file-error 2049s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_LPD6J3/error/from-win32-error/.dirs/home 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_LPD6J3/error/from-win32-error/.dirs/cache 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_LPD6J3/error/from-win32-error/.dirs/system-config1:/tmp/test_error_LPD6J3/error/from-win32-error/.dirs/system-config2 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_LPD6J3/error/from-win32-error/.dirs/config 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_LPD6J3/error/from-win32-error/.dirs/system-data1:/tmp/test_error_LPD6J3/error/from-win32-error/.dirs/system-data2 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_LPD6J3/error/from-win32-error/.dirs/data 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_LPD6J3/error/from-win32-error/.dirs/state 2049s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_LPD6J3/error/from-win32-error/.dirs/runtime 2049s ok 3 /error/from-win32-error # SKIP Windows error codes can only be checked on Windows 2049s # End of error tests 2049s TAP version 14 2049s # random seed: R02Sd3c9d56f60774cbcf8c23e72ab710de9 2049s 1..3 2049s # Start of unicode tests 2049s # Processing Part0 # Specific cases 2049s # Processing Part1 # Character by character test 2050s # Processing Part2 # Canonical Order Test 2051s # Processing Part3 # PRI #29 Test 2051s # Processing Part4 # Canonical closures (excluding Hangul) 2051s # Processing Part5 # Chained primary composites 2051s ok 1 /unicode/normalize 2051s # slow test /unicode/normalize executed in 1.66 secs 2051s # Invalid UTF-8 vector 0 2051s # Invalid UTF-8 vector 1 2051s # Invalid UTF-8 vector 2 2051s # Invalid UTF-8 vector 3 2051s # Invalid UTF-8 vector 4 2051s # Invalid UTF-8 vector 5 2051s # Invalid UTF-8 vector 6 2051s ok - glib/unicode-normalize.test 2051s # Running test: glib/642026-ec.test 2051s # Invalid UTF-8 vector 7 2051s # Invalid UTF-8 vector 8 2051s # Invalid UTF-8 vector 9 2051s # Invalid UTF-8 vector 10 2051s # Invalid UTF-8 vector 11 2051s # Invalid UTF-8 vector 12 2051s ok 2 /unicode/normalize-invalid 2051s # Start of normalize tests 2051s ok 3 /unicode/normalize/bad-length 2051s # End of normalize tests 2051s # End of unicode tests 2051s TAP version 14 2051s # random seed: R02S9a3f0a907085d4d6da0335e15c157ee1 2051s 1..1 2051s # Start of glib tests 2051s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 2051s ok 1 /glib/642026 2052s # End of glib tests 2052s ok - glib/642026-ec.test 2052s # Running test: glib/gdbus-connection-loss.test 2052s TAP version 14 2052s # random seed: R02S9896161bd13187b620ecee1d457a01bf 2052s 1..1 2052s # Start of gdbus tests 2052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-loss_MX2NK3/gdbus/connection-loss/.dirs/home 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-loss_MX2NK3/gdbus/connection-loss/.dirs/cache 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-loss_MX2NK3/gdbus/connection-loss/.dirs/system-config1:/tmp/test_gdbus-connection-loss_MX2NK3/gdbus/connection-loss/.dirs/system-config2 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-loss_MX2NK3/gdbus/connection-loss/.dirs/config 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-loss_MX2NK3/gdbus/connection-loss/.dirs/system-data1:/tmp/test_gdbus-connection-loss_MX2NK3/gdbus/connection-loss/.dirs/system-data2 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-loss_MX2NK3/gdbus/connection-loss/.dirs/data 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-loss_MX2NK3/gdbus/connection-loss/.dirs/state 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-loss_MX2NK3/gdbus/connection-loss/.dirs/runtime 2052s ok 1 /gdbus/connection-loss 2052s # End of gdbus tests 2052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2052s ok - glib/gdbus-connection-loss.test 2052s # Running test: glib/function-info.test 2052s TAP version 14 2052s # random seed: R02Sc71f229e0a586834d6f63f3b9c651470 2052s 1..1 2052s # Start of function-info tests 2052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_function-info_JK8FK3/function-info/invoker/.dirs/home 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_function-info_JK8FK3/function-info/invoker/.dirs/cache 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_function-info_JK8FK3/function-info/invoker/.dirs/system-config1:/tmp/test_function-info_JK8FK3/function-info/invoker/.dirs/system-config2 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_function-info_JK8FK3/function-info/invoker/.dirs/config 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_function-info_JK8FK3/function-info/invoker/.dirs/system-data1:/tmp/test_function-info_JK8FK3/function-info/invoker/.dirs/system-data2 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_function-info_JK8FK3/function-info/invoker/.dirs/data 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_function-info_JK8FK3/function-info/invoker/.dirs/state 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_function-info_JK8FK3/function-info/invoker/.dirs/runtime 2052s ok - glib/function-info.test 2052s # Running test: glib/field-info.test 2052s ok - glib/field-info.test 2052s # Running test: glib/ifaceproperties.test 2052s ok - glib/ifaceproperties.test 2052s # Running test: glib/mount-operation.test 2052s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2052s # /function-info/invoker summary: Test preparing a function invoker 2052s ok 1 /function-info/invoker 2052s # End of function-info tests 2052s TAP version 14 2052s # random seed: R02S58e89cafedc44ecb6c32abbd47e5ba7f 2052s 1..4 2052s # Start of field-info tests 2052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_field-info_2LBGK3/field-info/basic-struct-field/.dirs/home 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_field-info_2LBGK3/field-info/basic-struct-field/.dirs/cache 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_field-info_2LBGK3/field-info/basic-struct-field/.dirs/system-config1:/tmp/test_field-info_2LBGK3/field-info/basic-struct-field/.dirs/system-config2 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_field-info_2LBGK3/field-info/basic-struct-field/.dirs/config 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_field-info_2LBGK3/field-info/basic-struct-field/.dirs/system-data1:/tmp/test_field-info_2LBGK3/field-info/basic-struct-field/.dirs/system-data2 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_field-info_2LBGK3/field-info/basic-struct-field/.dirs/data 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_field-info_2LBGK3/field-info/basic-struct-field/.dirs/state 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_field-info_2LBGK3/field-info/basic-struct-field/.dirs/runtime 2052s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2052s # /field-info/basic-struct-field summary: Test basic properties of a GIFieldInfo from a C struct 2052s ok 1 /field-info/basic-struct-field 2052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_field-info_2LBGK3/field-info/basic-union-field/.dirs/home 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_field-info_2LBGK3/field-info/basic-union-field/.dirs/cache 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_field-info_2LBGK3/field-info/basic-union-field/.dirs/system-config1:/tmp/test_field-info_2LBGK3/field-info/basic-union-field/.dirs/system-config2 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_field-info_2LBGK3/field-info/basic-union-field/.dirs/config 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_field-info_2LBGK3/field-info/basic-union-field/.dirs/system-data1:/tmp/test_field-info_2LBGK3/field-info/basic-union-field/.dirs/system-data2 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_field-info_2LBGK3/field-info/basic-union-field/.dirs/data 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_field-info_2LBGK3/field-info/basic-union-field/.dirs/state 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_field-info_2LBGK3/field-info/basic-union-field/.dirs/runtime 2052s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2052s # /field-info/basic-union-field summary: Test basic properties of a GIFieldInfo from a C union 2052s ok 2 /field-info/basic-union-field 2052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_field-info_2LBGK3/field-info/read-write-struct-field/.dirs/home 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_field-info_2LBGK3/field-info/read-write-struct-field/.dirs/cache 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_field-info_2LBGK3/field-info/read-write-struct-field/.dirs/system-config1:/tmp/test_field-info_2LBGK3/field-info/read-write-struct-field/.dirs/system-config2 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_field-info_2LBGK3/field-info/read-write-struct-field/.dirs/config 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_field-info_2LBGK3/field-info/read-write-struct-field/.dirs/system-data1:/tmp/test_field-info_2LBGK3/field-info/read-write-struct-field/.dirs/system-data2 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_field-info_2LBGK3/field-info/read-write-struct-field/.dirs/data 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_field-info_2LBGK3/field-info/read-write-struct-field/.dirs/state 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_field-info_2LBGK3/field-info/read-write-struct-field/.dirs/runtime 2052s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2052s # /field-info/read-write-struct-field summary: Test reading and writing of a GIFieldInfo from a C union 2052s ok 3 /field-info/read-write-struct-field 2052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_field-info_2LBGK3/field-info/read-write-union-field/.dirs/home 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_field-info_2LBGK3/field-info/read-write-union-field/.dirs/cache 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_field-info_2LBGK3/field-info/read-write-union-field/.dirs/system-config1:/tmp/test_field-info_2LBGK3/field-info/read-write-union-field/.dirs/system-config2 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_field-info_2LBGK3/field-info/read-write-union-field/.dirs/config 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_field-info_2LBGK3/field-info/read-write-union-field/.dirs/system-data1:/tmp/test_field-info_2LBGK3/field-info/read-write-union-field/.dirs/system-data2 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_field-info_2LBGK3/field-info/read-write-union-field/.dirs/data 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_field-info_2LBGK3/field-info/read-write-union-field/.dirs/state 2052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_field-info_2LBGK3/field-info/read-write-union-field/.dirs/runtime 2052s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2052s # /field-info/read-write-union-field summary: Test reading and writing of a GIFieldInfo from a C union 2052s ok 4 /field-info/read-write-union-field 2052s # End of field-info tests 2052s TAP version 14 2052s # random seed: R02S359642d1d6dc950a9f28beeb4f8d04b1 2052s 1..7 2052s # Start of interface tests 2052s # Start of properties tests 2052s ok 1 /interface/properties/set 2052s ok 2 /interface/properties/notify 2052s ok 3 /interface/properties/find-overridden 2052s ok 4 /interface/properties/list-overridden 2052s ok 5 /interface/properties/find-interface 2052s ok 6 /interface/properties/list-interface 2052s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=637738 2052s ok 7 /interface/properties/not-overridden 2052s # End of properties tests 2052s # End of interface tests 2052s TAP version 14 2052s # random seed: R02S4f2e1cb1b044471770899d71ab155e49 2052s 1..2 2052s ok - glib/mount-operation.test 2052s # Running test: glib/gvariant.test 2052s # Start of mount-operation tests 2052s ok 1 /mount-operation/construction 2052s ok 2 /mount-operation/properties 2052s # End of mount-operation tests 2052s TAP version 14 2052s # random seed: R02Sf5bd0c83bb6654ae7e263316d6abb6f6 2052s 1..69 2052s # Start of gvariant tests 2052s # Executing: glib/gvariant.test 2053s ok 1 /gvariant/type 2053s # slow test /gvariant/type executed in 0.72 secs 2054s ok 2 /gvariant/typeinfo 2054s # slow test /gvariant/typeinfo executed in 1.57 secs 2054s ok 3 /gvariant/string 2054s ok 4 /gvariant/utf8 2054s ok 5 /gvariant/utf8-new-strings 2055s ok 6 /gvariant/containers 2055s ok 7 /gvariant/format-strings 2055s ok 8 /gvariant/invalid-varargs 2055s ok 9 /gvariant/varargs 2055s ok 10 /gvariant/valist 2055s ok 11 /gvariant/builder-memory 2056s ok 12 /gvariant/hashing 2056s ok 13 /gvariant/byteswap 2057s # Executing: glib/gvariant.test 2058s ok 14 /gvariant/parser 2058s # slow test /gvariant/parser executed in 2.25 secs 2058s ok 15 /gvariant/parse-failures 2058s ok 16 /gvariant/parse-positional 2058s ok 17 /gvariant/floating 2058s ok 18 /gvariant/bytestring 2058s ok 19 /gvariant/lookup-value 2058s ok 20 /gvariant/lookup 2058s ok 21 /gvariant/compare 2058s ok 22 /gvariant/equal 2058s ok 23 /gvariant/fixed-array 2058s ok 24 /gvariant/check-format-string 2058s ok 25 /gvariant/checksum-basic 2058s ok 26 /gvariant/checksum-nested 2058s ok 27 /gvariant/gbytes 2058s ok 28 /gvariant/print-context 2058s ok 29 /gvariant/error-quark 2058s ok 30 /gvariant/stack-builder-init 2058s ok 31 /gvariant/stack-builder-init-static 2058s ok 32 /gvariant/stack-builder-init-unset 2058s ok 33 /gvariant/stack-dict-init 2058s ok 34 /gvariant/unaligned-construction 2058s # Start of type tests 2058s # Start of string-scan tests 2058s # Start of recursion tests 2058s ok 35 /gvariant/type/string-scan/recursion/tuple 2058s ok 36 /gvariant/type/string-scan/recursion/array 2058s # End of recursion tests 2058s # End of string-scan tests 2058s # End of type tests 2058s # Start of serialiser tests 2058s ok 37 /gvariant/serialiser/maybe 2058s # slow test /gvariant/serialiser/maybe executed in 0.57 secs 2060s ok 38 /gvariant/serialiser/array 2060s # slow test /gvariant/serialiser/array executed in 2.01 secs 2062s ok 39 /gvariant/serialiser/tuple 2062s # slow test /gvariant/serialiser/tuple executed in 1.15 secs 2062s ok 40 /gvariant/serialiser/variant 2062s ok 41 /gvariant/serialiser/strings 2062s # Executing: glib/gvariant.test 2067s # Executing: glib/gvariant.test 2070s ok 42 /gvariant/serialiser/byteswap 2070s # slow test /gvariant/serialiser/byteswap executed in 8.09 secs 2070s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1865 2070s # /gvariant/serialiser/children summary: Test that getting a child variant before and after serialisation of the parent works 2070s ok 43 /gvariant/serialiser/children 2070s # Start of byteswap tests 2070s ok 44 /gvariant/serialiser/byteswap/zero-sized 2070s # End of byteswap tests 2070s # Start of fuzz tests 2072s ok 45 /gvariant/serialiser/fuzz/1% 2072s # slow test /gvariant/serialiser/fuzz/1% executed in 2.01 secs 2072s # Executing: glib/gvariant.test 2074s ok 46 /gvariant/serialiser/fuzz/5% 2074s # slow test /gvariant/serialiser/fuzz/5% executed in 1.80 secs 2075s ok 47 /gvariant/serialiser/fuzz/9% 2075s # slow test /gvariant/serialiser/fuzz/9% executed in 1.71 secs 2077s ok 48 /gvariant/serialiser/fuzz/13% 2077s # slow test /gvariant/serialiser/fuzz/13% executed in 1.19 secs 2077s # Executing: glib/gvariant.test 2078s ok 49 /gvariant/serialiser/fuzz/17% 2078s # slow test /gvariant/serialiser/fuzz/17% executed in 0.96 secs 2078s # End of fuzz tests 2078s # End of serialiser tests 2078s # Start of utf8 tests 2078s # Start of subprocess tests 2078s # End of subprocess tests 2078s # End of utf8 tests 2078s # Start of varargs tests 2078s # Start of subprocess tests 2078s # End of subprocess tests 2078s # End of varargs tests 2078s # Start of byteswap tests 2078s # /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. 2078s ok 50 /gvariant/byteswap/non-normal-non-aligned 2078s # End of byteswap tests 2078s # Start of parser tests 2078s ok 51 /gvariant/parser/integer-bounds 2078s ok 52 /gvariant/parser/recursion 2078s # Start of recursion tests 2078s ok 53 /gvariant/parser/recursion/typedecls 2078s # /gvariant/parser/recursion/maybes summary: Test that nested maybes are handled correctly when parsing text-form variants 2078s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2782 2078s # Text form 0: @mmmu 5 2078s # Text form 1: @mmmas ['hello'] 2078s # Text form 2: @mmmu just just nothing 2078s # Text form 3: @mmmas just just nothing 2078s # Text form 4: @mmmu just nothing 2078s # Text form 5: @mmmas just nothing 2078s # Text form 6: @mmmu nothing 2078s # Text form 7: @mmmas nothing 2078s ok 54 /gvariant/parser/recursion/maybes 2078s # End of recursion tests 2078s # End of parser tests 2078s # Start of parse tests 2078s # Start of subprocess tests 2078s # End of subprocess tests 2078s # End of parse tests 2078s # Start of normal-checking tests 2078s ok 55 /gvariant/normal-checking/tuples 2078s ok 56 /gvariant/normal-checking/array-offsets 2078s ok 57 /gvariant/normal-checking/array-offsets2 2078s ok 58 /gvariant/normal-checking/tuple-offsets 2078s ok 59 /gvariant/normal-checking/tuple-offsets2 2078s ok 60 /gvariant/normal-checking/tuple-offsets3 2078s ok 61 /gvariant/normal-checking/tuple-offsets4 2078s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2840 2078s ok 62 /gvariant/normal-checking/tuple-offsets5 2078s ok 63 /gvariant/normal-checking/empty-object-path 2078s # Start of array-offsets tests 2078s ok 64 /gvariant/normal-checking/array-offsets/overlapped 2078s ok 65 /gvariant/normal-checking/array-offsets/minimal-sized 2078s # End of array-offsets tests 2078s # Start of tuple-offsets tests 2078s ok 66 /gvariant/normal-checking/tuple-offsets/minimal-sized 2078s # End of tuple-offsets tests 2078s # End of normal-checking tests 2078s # Start of recursion-limits tests 2078s ok 67 /gvariant/recursion-limits/variant-in-variant 2078s ok 68 /gvariant/recursion-limits/array-in-variant 2078s # End of recursion-limits tests 2078s # End of gvariant tests 2078s # Start of gvarianttype tests 2078s ok 69 /gvarianttype/hash 2078s # End of gvarianttype tests 2078s ok - glib/gvariant.test 2078s # Running test: glib/utf8-performance.test 2078s ok - glib/utf8-performance.test 2078s # Running test: glib/charset.test 2078s ok - glib/charset.test 2078s TAP version 14 2078s # random seed: R02S1800704a1f1ee235e63fd7ac9c3958f8 2078s 1..36 2078s # Start of utf8 tests 2078s # Start of perf tests 2078s # Start of get_char tests 2078s # max perf: 43.0 MB/s 2078s ok 1 /utf8/perf/get_char/ascii 2078s # max perf: 67.0 MB/s 2078s ok 2 /utf8/perf/get_char/latin1 2078s # max perf: 160.0 MB/s 2078s ok 3 /utf8/perf/get_char/cyrillic 2078s # max perf: inf MB/s 2078s ok 4 /utf8/perf/get_char/han 2078s # End of get_char tests 2078s # Start of get_char-backwards tests 2078s # max perf: 43.0 MB/s 2078s ok 5 /utf8/perf/get_char-backwards/ascii 2078s # max perf: 67.0 MB/s 2078s ok 6 /utf8/perf/get_char-backwards/latin1 2078s # max perf: inf MB/s 2078s ok 7 /utf8/perf/get_char-backwards/cyrillic 2078s # max perf: 156.0 MB/s 2078s ok 8 /utf8/perf/get_char-backwards/han 2078s # End of get_char-backwards tests 2078s # Start of get_char_validated tests 2078s # max perf: inf MB/s 2078s ok 9 /utf8/perf/get_char_validated/ascii 2078s # max perf: inf MB/s 2078s ok 10 /utf8/perf/get_char_validated/latin1 2078s # max perf: inf MB/s 2078s ok 11 /utf8/perf/get_char_validated/cyrillic 2078s # max perf: inf MB/s 2078s ok 12 /utf8/perf/get_char_validated/han 2078s # End of get_char_validated tests 2078s # Start of utf8_to_ucs4 tests 2078s # max perf: 43.0 MB/s 2078s ok 13 /utf8/perf/utf8_to_ucs4/ascii 2078s # max perf: 67.0 MB/s 2078s ok 14 /utf8/perf/utf8_to_ucs4/latin1 2078s # max perf: 160.0 MB/s 2078s ok 15 /utf8/perf/utf8_to_ucs4/cyrillic 2078s # max perf: inf MB/s 2078s ok 16 /utf8/perf/utf8_to_ucs4/han 2078s # End of utf8_to_ucs4 tests 2078s # Start of utf8_to_ucs4-sized tests 2078s # max perf: inf MB/s 2078s ok 17 /utf8/perf/utf8_to_ucs4-sized/ascii 2078s # max perf: inf MB/s 2078s ok 18 /utf8/perf/utf8_to_ucs4-sized/latin1 2078s # max perf: 160.0 MB/s 2078s ok 19 /utf8/perf/utf8_to_ucs4-sized/cyrillic 2078s # max perf: inf MB/s 2078s ok 20 /utf8/perf/utf8_to_ucs4-sized/han 2078s # End of utf8_to_ucs4-sized tests 2078s # Start of utf8_to_ucs4_fast tests 2078s # max perf: 43.0 MB/s 2078s ok 21 /utf8/perf/utf8_to_ucs4_fast/ascii 2078s # max perf: 67.0 MB/s 2078s ok 22 /utf8/perf/utf8_to_ucs4_fast/latin1 2078s # max perf: inf MB/s 2078s ok 23 /utf8/perf/utf8_to_ucs4_fast/cyrillic 2078s # max perf: 156.0 MB/s 2078s ok 24 /utf8/perf/utf8_to_ucs4_fast/han 2078s # End of utf8_to_ucs4_fast tests 2078s # Start of utf8_to_ucs4_fast-sized tests 2078s # max perf: inf MB/s 2078s ok 25 /utf8/perf/utf8_to_ucs4_fast-sized/ascii 2078s # max perf: 67.0 MB/s 2078s ok 26 /utf8/perf/utf8_to_ucs4_fast-sized/latin1 2078s # max perf: 160.0 MB/s 2078s ok 27 /utf8/perf/utf8_to_ucs4_fast-sized/cyrillic 2078s # max perf: inf MB/s 2078s ok 28 /utf8/perf/utf8_to_ucs4_fast-sized/han 2078s # End of utf8_to_ucs4_fast-sized tests 2078s # Start of utf8_validate tests 2078s # max perf: 43.0 MB/s 2078s ok 29 /utf8/perf/utf8_validate/ascii 2078s # max perf: 67.0 MB/s 2078s ok 30 /utf8/perf/utf8_validate/latin1 2078s # max perf: inf MB/s 2078s ok 31 /utf8/perf/utf8_validate/cyrillic 2078s # max perf: inf MB/s 2078s ok 32 /utf8/perf/utf8_validate/han 2078s # End of utf8_validate tests 2078s # Start of utf8_validate-sized tests 2078s # max perf: inf MB/s 2078s ok 33 /utf8/perf/utf8_validate-sized/ascii 2078s # max perf: 67.0 MB/s 2078s ok 34 /utf8/perf/utf8_validate-sized/latin1 2078s # max perf: inf MB/s 2078s ok 35 /utf8/perf/utf8_validate-sized/cyrillic 2078s # max perf: inf MB/s 2078s ok 36 /utf8/perf/utf8_validate-sized/han 2078s # End of utf8_validate-sized tests 2078s # End of perf tests 2078s # End of utf8 tests 2078s TAP version 14 2078s # random seed: R02S763d38b98213b00988f02a4ef9f2509c 2078s 1..2 2078s # Start of charset tests 2078s # Test 0 2078s # Test 1 2078s # Test 2 2078s # Test 3 2078s ok 1 /charset/language_names_with_category 2078s ok 2 /charset/language_names_with_category_async 2078s # End of charset tests 2078s # Running test: glib/notify-init.test 2078s TAP version 14 2078s # random seed: R02Se70d2deb66e7e90b3a122932be3f50d9 2078s 1..1 2078s # Start of properties tests 2078s # /properties/notify-in-init summary: Test that emitting notify with a handler already connected in test_object_init() works 2078s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 2078s ok 1 /properties/notify-in-init 2078s # End of properties tests 2078s ok - glib/notify-init.test 2078s # Running test: glib/gdbus-export.test 2078s TAP version 14 2078s # random seed: R02S34cecdc85c19976bf1c4a0b247cc8083 2078s 1..7 2078s # Start of gdbus tests 2078s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration/.dirs/home 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration/.dirs/cache 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration/.dirs/system-config1:/tmp/test_gdbus-export_UF9KK3/gdbus/object-registration/.dirs/system-config2 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration/.dirs/config 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration/.dirs/system-data1:/tmp/test_gdbus-export_UF9KK3/gdbus/object-registration/.dirs/system-data2 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration/.dirs/data 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration/.dirs/state 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration/.dirs/runtime 2078s ok 1 /gdbus/object-registration 2078s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures/.dirs/home 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures/.dirs/cache 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures/.dirs/system-config1:/tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures/.dirs/system-config2 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures/.dirs/config 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures/.dirs/system-data1:/tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures/.dirs/system-data2 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures/.dirs/data 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures/.dirs/state 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures/.dirs/runtime 2078s ok 2 /gdbus/object-registration-with-closures 2078s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures2/.dirs/home 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures2/.dirs/cache 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures2/.dirs/system-config1:/tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures2/.dirs/system-config2 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures2/.dirs/config 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures2/.dirs/system-data1:/tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures2/.dirs/system-data2 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures2/.dirs/data 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures2/.dirs/state 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_UF9KK3/gdbus/object-registration-with-closures2/.dirs/runtime 2078s ok 3 /gdbus/object-registration-with-closures2 2078s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/registered-interfaces/.dirs/home 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/registered-interfaces/.dirs/cache 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_UF9KK3/gdbus/registered-interfaces/.dirs/system-config1:/tmp/test_gdbus-export_UF9KK3/gdbus/registered-interfaces/.dirs/system-config2 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/registered-interfaces/.dirs/config 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_UF9KK3/gdbus/registered-interfaces/.dirs/system-data1:/tmp/test_gdbus-export_UF9KK3/gdbus/registered-interfaces/.dirs/system-data2 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/registered-interfaces/.dirs/data 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/registered-interfaces/.dirs/state 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_UF9KK3/gdbus/registered-interfaces/.dirs/runtime 2078s ok 4 /gdbus/registered-interfaces 2078s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/async-properties/.dirs/home 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/async-properties/.dirs/cache 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_UF9KK3/gdbus/async-properties/.dirs/system-config1:/tmp/test_gdbus-export_UF9KK3/gdbus/async-properties/.dirs/system-config2 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/async-properties/.dirs/config 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_UF9KK3/gdbus/async-properties/.dirs/system-data1:/tmp/test_gdbus-export_UF9KK3/gdbus/async-properties/.dirs/system-data2 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/async-properties/.dirs/data 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/async-properties/.dirs/state 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_UF9KK3/gdbus/async-properties/.dirs/runtime 2078s ok 5 /gdbus/async-properties 2078s # Start of threaded-unregistration tests 2078s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/object/.dirs/home 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/object/.dirs/cache 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/object/.dirs/system-config1:/tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/object/.dirs/system-config2 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/object/.dirs/config 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/object/.dirs/system-data1:/tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/object/.dirs/system-data2 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/object/.dirs/data 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/object/.dirs/state 2078s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/object/.dirs/runtime 2078s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 2078s # /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 2082s # Executing: glib/gdbus-export.test 2087s # Executing: glib/gdbus-export.test 2092s # Executing: glib/gdbus-export.test 2096s ok 6 /gdbus/threaded-unregistration/object # SKIP Failed to reproduce race (73 iterations with unregistration first, 927 with call first); skipping test 2096s # slow test /gdbus/threaded-unregistration/object executed in 18.23 secs 2096s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/subtree/.dirs/home 2096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/subtree/.dirs/cache 2096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/subtree/.dirs/system-config1:/tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/subtree/.dirs/system-config2 2096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/subtree/.dirs/config 2096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/subtree/.dirs/system-data1:/tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/subtree/.dirs/system-data2 2096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/subtree/.dirs/data 2096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/subtree/.dirs/state 2096s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_UF9KK3/gdbus/threaded-unregistration/subtree/.dirs/runtime 2096s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 2096s # /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 2097s # Executing: glib/gdbus-export.test 2102s # Executing: glib/gdbus-export.test 2107s # Executing: glib/gdbus-export.test 2112s ok 7 /gdbus/threaded-unregistration/subtree # SKIP Failed to reproduce race (44 iterations with unregistration first, 956 with call first); skipping test 2112s # slow test /gdbus/threaded-unregistration/subtree executed in 15.69 secs 2112s # End of threaded-unregistration tests 2112s # End of gdbus tests 2112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2112s ok - glib/gdbus-export.test 2112s # Running test: glib/gdbus-non-socket.test 2112s TAP version 14 2112s # random seed: R02S131a63fee1dd8044fc4b580b960f7f34 2112s 1..1 2112s # Start of gdbus tests 2112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-non-socket_ABNCK3/gdbus/non-socket/.dirs/home 2112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-non-socket_ABNCK3/gdbus/non-socket/.dirs/cache 2112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-non-socket_ABNCK3/gdbus/non-socket/.dirs/system-config1:/tmp/test_gdbus-non-socket_ABNCK3/gdbus/non-socket/.dirs/system-config2 2112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-non-socket_ABNCK3/gdbus/non-socket/.dirs/config 2112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-non-socket_ABNCK3/gdbus/non-socket/.dirs/system-data1:/tmp/test_gdbus-non-socket_ABNCK3/gdbus/non-socket/.dirs/system-data2 2112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-non-socket_ABNCK3/gdbus/non-socket/.dirs/data 2112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-non-socket_ABNCK3/gdbus/non-socket/.dirs/state 2112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-non-socket_ABNCK3/gdbus/non-socket/.dirs/runtime 2112s ok 1 /gdbus/non-socket 2112s # End of gdbus tests 2112s ok - glib/gdbus-non-socket.test 2112s # Running test: glib/registered-type-info.test 2112s TAP version 14 2112s # random seed: R02S8b28e9f65bcca6749799e33dcee3a457 2112s 1..1 2112s # Start of registered-type-info tests 2112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_registered-type-info_54NCK3/registered-type-info/boxed/.dirs/home 2112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_registered-type-info_54NCK3/registered-type-info/boxed/.dirs/cache 2112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_registered-type-info_54NCK3/registered-type-info/boxed/.dirs/system-config1:/tmp/test_registered-type-info_54NCK3/registered-type-info/boxed/.dirs/system-config2 2112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_registered-type-info_54NCK3/registered-type-info/boxed/.dirs/config 2112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_registered-type-info_54NCK3/registered-type-info/boxed/.dirs/system-data1:/tmp/test_registered-type-info_54NCK3/registered-type-info/boxed/.dirs/system-data2 2112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_registered-type-info_54NCK3/registered-type-info/boxed/.dirs/data 2112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_registered-type-info_54NCK3/registered-type-info/boxed/.dirs/state 2112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_registered-type-info_54NCK3/registered-type-info/boxed/.dirs/runtime 2112s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2112s # /registered-type-info/boxed summary: Test various boxed and non-boxed types for GIRegisteredTypeInfo 2112s # Expecting CClosure to not be boxed 2112s # Expecting TypeCValue to not be boxed 2112s # Expecting InitiallyUnownedClass to not be boxed 2112s # Expecting BookmarkFile to be boxed 2112s # Expecting Closure to be boxed 2112s # Expecting Object to not be boxed 2112s ok 1 /registered-type-info/boxed 2112s # End of registered-type-info tests 2112s TAP version 14 2112s # random seed: R02Sc69838335b49f71b57868a338e95b3ed 2112s 1..7 2112s # Start of signal tests 2112s # Start of handler tests 2112s # min perf: connected 1 handlers in 0.000 seconds 2112s ok 1 /signal/handler/connect-many 2112s # min perf: disconnected 1 handlers in 0.000 seconds 2112s ok 2 /signal/handler/disconnect-many-ordered 2112s # min perf: disconnected 1 handlers in 0.000 seconds 2112s ok 3 /signal/handler/disconnect-many-inverse 2112s # min perf: disconnected 1 handlers in 0.000 seconds 2112s ok 4 /signal/handler/disconnect-many-random 2112s # min perf: disconnected 1 handlers in 0.000 seconds 2112s ok 5 /signal/handler/disconnect-2-signals 2112s # min perf: disconnected 1 handlers in 0.000 seconds 2112s ok 6 /signal/handler/disconnect-2-objects 2112s # min perf: blocked and unblocked 1 handlers in 0.000 seconds 2112s ok 7 /signal/handler/block-many 2112s # End of handler tests 2112s # End of signal tests 2112s TAP version 14 2112s # random seed: R02S2cce6d6a51454bdd7932891dd924f6c5 2112s 1..15 2112s # Start of gmenu tests 2112s ok - glib/registered-type-info.test 2112s # Running test: glib/signal-handler.test 2112s ok - glib/signal-handler.test 2112s # Running test: glib/gmenumodel.test 2112s # Executing: glib/gmenumodel.test 2115s ok 1 /gmenu/equality 2115s # slow test /gmenu/equality executed in 3.17 secs 2117s # Executing: glib/gmenumodel.test 2119s ok 2 /gmenu/random 2119s # slow test /gmenu/random executed in 4.15 secs 2119s ok 3 /gmenu/attributes 2119s ok 4 /gmenu/links 2119s ok 5 /gmenu/mutable 2119s ok 6 /gmenu/convenience 2119s ok 7 /gmenu/menuitem 2119s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 2120s ok 8 /gmenu/input-validation 2120s # Start of dbus tests 2122s # Executing: glib/gmenumodel.test 2125s ok 9 /gmenu/dbus/roundtrip 2125s # slow test /gmenu/dbus/roundtrip executed in 4.70 secs 2126s ok 10 /gmenu/dbus/subscriptions 2126s # slow test /gmenu/dbus/subscriptions executed in 1.01 secs 2128s # Executing: glib/gmenumodel.test 2130s ok 11 /gmenu/dbus/threaded 2130s # slow test /gmenu/dbus/threaded executed in 4.43 secs 2130s # Start of peer tests 2133s # Executing: glib/gmenumodel.test 2136s ok 12 /gmenu/dbus/peer/roundtrip 2136s # slow test /gmenu/dbus/peer/roundtrip executed in 5.56 secs 2137s ok 13 /gmenu/dbus/peer/subscriptions 2137s # slow test /gmenu/dbus/peer/subscriptions executed in 1.08 secs 2137s # End of peer tests 2137s # Start of export tests 2137s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 2137s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 2137s ok 14 /gmenu/dbus/export/error-handling 2137s # End of export tests 2137s # End of dbus tests 2137s # Start of attributes tests 2137s ok 15 /gmenu/attributes/iterate 2137s # End of attributes tests 2137s # End of gmenu tests 2137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2137s TAP version 14 2137s # random seed: R02S5e5007047bf57993363b500c941d9663 2137s 1..10 2137s # Start of buffered-input-stream tests 2137s ok 1 /buffered-input-stream/peek 2137s ok 2 /buffered-input-stream/peek-buffer 2137s ok 3 /buffered-input-stream/set-buffer-size 2137s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=562393 2137s ok 4 /buffered-input-stream/read-byte 2137s ok 5 /buffered-input-stream/read 2137s ok 6 /buffered-input-stream/read-async 2137s ok 7 /buffered-input-stream/skip 2137s ok 8 /buffered-input-stream/skip-async 2137s ok 9 /buffered-input-stream/seek 2137s # End of buffered-input-stream tests 2137s # Start of filter-input-stream tests 2137s ok 10 /filter-input-stream/close 2137s # End of filter-input-stream tests 2137s ok - glib/gmenumodel.test 2137s # Running test: glib/buffered-input-stream.test 2137s ok - glib/buffered-input-stream.test 2137s # Running test: glib/glistmodel.test 2137s TAP version 14 2137s # random seed: R02S51b54b1ed715c79335f320456da84f0b 2137s 1..18 2137s # Start of glistmodel tests 2137s # Start of store tests 2137s ok 1 /glistmodel/store/properties 2137s ok 2 /glistmodel/store/non-gobjects 2137s ok 3 /glistmodel/store/boundaries 2137s ok 4 /glistmodel/store/refcounts 2137s ok 5 /glistmodel/store/sorted 2137s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 2137s ok 6 /glistmodel/store/splice-replace-middle 2137s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 2137s ok 7 /glistmodel/store/splice-replace-all 2137s ok 8 /glistmodel/store/splice-noop 2137s ok 9 /glistmodel/store/splice-remove-multiple 2137s ok 10 /glistmodel/store/splice-add-multiple 2137s ok 11 /glistmodel/store/splice-wrong-type 2137s ok 12 /glistmodel/store/item-type 2137s ok 13 /glistmodel/store/remove-all 2137s ok 14 /glistmodel/store/sort 2137s ok 15 /glistmodel/store/get-item-cache 2137s ok - glib/glistmodel.test 2137s # Running test: glib/pattern.test 2137s ok - glib/pattern.test 2137s # Running test: glib/gdbus-message.test 2137s ok 16 /glistmodel/store/items-changed 2137s ok 17 /glistmodel/store/past-end 2137s ok 18 /glistmodel/store/find 2137s # End of store tests 2137s # End of glistmodel tests 2137s TAP version 14 2137s # random seed: R02S4bc3835b1c366e0587b634c41c651607 2137s 1..90 2137s # Start of pattern tests 2137s # Start of compile tests 2137s ok 1 /pattern/compile/0 2137s ok 2 /pattern/compile/1 2137s ok 3 /pattern/compile/2 2137s ok 4 /pattern/compile/3 2137s ok 5 /pattern/compile/4 2137s ok 6 /pattern/compile/5 2137s ok 7 /pattern/compile/6 2137s ok 8 /pattern/compile/7 2137s ok 9 /pattern/compile/8 2137s ok 10 /pattern/compile/9 2137s ok 11 /pattern/compile/10 2137s ok 12 /pattern/compile/11 2137s ok 13 /pattern/compile/12 2137s ok 14 /pattern/compile/13 2137s # End of compile tests 2137s # Start of copy tests 2137s ok 15 /pattern/copy/0 2137s ok 16 /pattern/copy/1 2137s ok 17 /pattern/copy/2 2137s ok 18 /pattern/copy/3 2137s ok 19 /pattern/copy/4 2137s ok 20 /pattern/copy/5 2137s ok 21 /pattern/copy/6 2137s ok 22 /pattern/copy/7 2137s ok 23 /pattern/copy/8 2137s ok 24 /pattern/copy/9 2137s ok 25 /pattern/copy/10 2137s ok 26 /pattern/copy/11 2137s ok 27 /pattern/copy/12 2137s ok 28 /pattern/copy/13 2137s # End of copy tests 2137s # Start of match tests 2137s ok 29 /pattern/match/0 2137s ok 30 /pattern/match/1 2137s ok 31 /pattern/match/2 2137s ok 32 /pattern/match/3 2137s ok 33 /pattern/match/4 2137s ok 34 /pattern/match/5 2137s ok 35 /pattern/match/6 2137s ok 36 /pattern/match/7 2137s ok 37 /pattern/match/8 2137s ok 38 /pattern/match/9 2137s ok 39 /pattern/match/10 2137s ok 40 /pattern/match/11 2137s ok 41 /pattern/match/12 2137s ok 42 /pattern/match/13 2137s ok 43 /pattern/match/14 2137s ok 44 /pattern/match/15 2137s ok 45 /pattern/match/16 2137s ok 46 /pattern/match/17 2137s ok 47 /pattern/match/18 2137s ok 48 /pattern/match/19 2137s ok 49 /pattern/match/20 2137s ok 50 /pattern/match/21 2137s ok 51 /pattern/match/22 2137s ok 52 /pattern/match/23 2137s ok 53 /pattern/match/24 2137s ok 54 /pattern/match/25 2137s ok 55 /pattern/match/26 2137s ok 56 /pattern/match/27 2137s ok 57 /pattern/match/28 2137s ok 58 /pattern/match/29 2137s ok 59 /pattern/match/30 2137s ok 60 /pattern/match/31 2137s ok 61 /pattern/match/32 2137s ok 62 /pattern/match/33 2137s ok 63 /pattern/match/34 2137s ok 64 /pattern/match/35 2137s ok 65 /pattern/match/36 2137s ok 66 /pattern/match/37 2137s ok 67 /pattern/match/38 2137s ok 68 /pattern/match/39 2137s ok 69 /pattern/match/40 2137s ok 70 /pattern/match/41 2137s ok 71 /pattern/match/42 2137s ok 72 /pattern/match/43 2137s ok 73 /pattern/match/44 2137s ok 74 /pattern/match/45 2137s ok 75 /pattern/match/46 2137s ok 76 /pattern/match/47 2137s ok 77 /pattern/match/48 2137s ok 78 /pattern/match/49 2137s ok 79 /pattern/match/50 2137s # End of match tests 2137s # Start of equal tests 2137s ok 80 /pattern/equal/0 2137s ok 81 /pattern/equal/1 2137s ok 82 /pattern/equal/2 2137s ok 83 /pattern/equal/3 2137s ok 84 /pattern/equal/4 2137s ok 85 /pattern/equal/5 2137s ok 86 /pattern/equal/6 2137s ok 87 /pattern/equal/7 2137s ok 88 /pattern/equal/8 2137s ok 89 /pattern/equal/9 2137s ok 90 /pattern/equal/10 2137s # End of equal tests 2137s # End of pattern tests 2137s TAP version 14 2137s # random seed: R02Sdf0170b4aeaaae34db9e1db305160cf2 2137s 1..3 2137s # Start of gdbus tests 2137s # Start of message tests 2137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_FA3HK3/gdbus/message/lock/.dirs/home 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_FA3HK3/gdbus/message/lock/.dirs/cache 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_FA3HK3/gdbus/message/lock/.dirs/system-config1:/tmp/test_gdbus-message_FA3HK3/gdbus/message/lock/.dirs/system-config2 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_FA3HK3/gdbus/message/lock/.dirs/config 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_FA3HK3/gdbus/message/lock/.dirs/system-data1:/tmp/test_gdbus-message_FA3HK3/gdbus/message/lock/.dirs/system-data2 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_FA3HK3/gdbus/message/lock/.dirs/data 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_FA3HK3/gdbus/message/lock/.dirs/state 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_FA3HK3/gdbus/message/lock/.dirs/runtime 2137s ok 1 /gdbus/message/lock 2137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_FA3HK3/gdbus/message/copy/.dirs/home 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_FA3HK3/gdbus/message/copy/.dirs/cache 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_FA3HK3/gdbus/message/copy/.dirs/system-config1:/tmp/test_gdbus-message_FA3HK3/gdbus/message/copy/.dirs/system-config2 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_FA3HK3/gdbus/message/copy/.dirs/config 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_FA3HK3/gdbus/message/copy/.dirs/system-data1:/tmp/test_gdbus-message_FA3HK3/gdbus/message/copy/.dirs/system-data2 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_FA3HK3/gdbus/message/copy/.dirs/data 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_FA3HK3/gdbus/message/copy/.dirs/state 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_FA3HK3/gdbus/message/copy/.dirs/runtime 2137s ok 2 /gdbus/message/copy 2137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_FA3HK3/gdbus/message/bytes-needed/.dirs/home 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_FA3HK3/gdbus/message/bytes-needed/.dirs/cache 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_FA3HK3/gdbus/message/bytes-needed/.dirs/system-config1:/tmp/test_gdbus-message_FA3HK3/gdbus/message/bytes-needed/.dirs/system-config2 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_FA3HK3/gdbus/message/bytes-needed/.dirs/config 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_FA3HK3/gdbus/message/bytes-needed/.dirs/system-data1:/tmp/test_gdbus-message_FA3HK3/gdbus/message/bytes-needed/.dirs/system-data2 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_FA3HK3/gdbus/message/bytes-needed/.dirs/data 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_FA3HK3/gdbus/message/bytes-needed/.dirs/state 2137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_FA3HK3/gdbus/message/bytes-needed/.dirs/runtime 2137s # Vector: 0 2137s # Vector: 1 2137s # Vector: 2 2137s # Vector: 3 2137s # Vector: 4 2137s # Vector: 5 2137s ok 3 /gdbus/message/bytes-needed 2137s # End of message tests 2137s # End of gdbus tests 2137s ok - glib/gdbus-message.test 2137s # Running test: glib/power-profile-monitor-dbus.test 2138s # Executing: glib/power-profile-monitor-dbus.test 2139s TAP version 13 2139s ok 1 __main__.TestPowerProfileMonitor.test_power_profile_power_saver_enabled 2139s 1..1 2139s ok - glib/power-profile-monitor-dbus.test 2139s # Running test: glib/properties-refcount2.test 2139s TAP version 14 2139s # random seed: R02S62e7ae35e304103b231a282a9cde7292 2139s 1..1 2139s # Start of gobject tests 2139s # Start of refcount tests 2139s # init 0x2aa07de4eb0 2139s # 2139s # . 2139s # . 2140s # . 2140s # . 2140s # . 2140s # . 2140s # . 2140s # . 2140s # . 2140s # . 2140s # . 2140s # . 2140s # . 2140s # . 2140s # . 2140s # . 2140s # . 2140s # . 2140s # . 2141s # . 2141s # . 2141s # . 2141s # . 2141s # . 2141s # . 2141s # . 2141s # . 2141s # . 2141s # . 2142s # . 2142s # . 2142s # . 2142s # . 2142s # . 2142s # . 2142s # . 2142s # . 2142s # . 2142s # . 2142s # . 2142s # . 2142s # . 2142s # . 2142s # . 2142s # . 2142s # . 2142s # . 2143s # . 2143s # . 2143s # . 2143s # . 2143s # . 2143s # . 2143s # . 2143s # . 2143s # . 2143s # Executing: glib/properties-refcount2.test 2143s # . 2143s # . 2143s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2144s # . 2145s # . 2145s # . 2145s # . 2145s # . 2145s # . 2145s # . 2145s # . 2145s # . 2145s # . 2145s # . 2145s # . 2145s # . 2145s # . 2145s # . 2145s # . 2145s # . 2145s # . 2146s # . 2146s # . 2146s # dispose 0x2aa07de4eb0! 2146s # 2146s ok 1 /gobject/refcount/properties-2 2146s # slow test /gobject/refcount/properties-2 executed in 6.34 secs 2146s # End of refcount tests 2146s # End of gobject tests 2146s ok - glib/properties-refcount2.test 2146s # Running test: glib/refcount-macro.test 2146s TAP version 14 2146s # random seed: R02S7da8e053a77305892f61f7b3be989707 2146s ok - glib/refcount-macro.test 2146s 1..4 2146s # Start of refcount tests 2146s ok 1 /refcount/grefcount 2146s ok 2 /refcount/gatomicrefcount 2146s # Start of grefcount tests 2146s ok 3 /refcount/grefcount/saturation 2146s # End of grefcount tests 2146s # Start of gatomicrefcount tests 2146s ok 4 /refcount/gatomicrefcount/saturation 2146s # End of gatomicrefcount tests 2146s # End of refcount tests 2146s # Running test: glib/cond.test 2146s TAP version 14 2146s # random seed: R02S68a65ddca801973fd53eac39ccdc68a9 2146s 1..4 2146s # Start of thread tests 2146s ok 1 /thread/cond1 2146s ok 2 /thread/cond2 2146s # Start of cond tests 2147s ok 3 /thread/cond/wait-until 2147s # slow test /thread/cond/wait-until executed in 1.12 secs 2147s # Start of wait-until tests 2147s # /thread/cond/wait-until/contended-and-interrupted summary: Check proper handling of errno in g_cond_wait_until with a contended mutex 2147s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/957 2148s ok 4 /thread/cond/wait-until/contended-and-interrupted 2148s # slow test /thread/cond/wait-until/contended-and-interrupted executed in 1.26 secs 2148s # End of wait-until tests 2148s # End of cond tests 2148s # End of thread tests 2148s ok - glib/cond.test 2148s # Running test: glib/gdbus-proxy.test 2148s TAP version 14 2148s # random seed: R02S7dc3f4080445fd82f9ccf9cb56566577 2148s 1..5 2148s # Start of gdbus tests 2148s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/.dirs/home 2148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/.dirs/cache 2148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/.dirs/system-config1:/tmp/test_gdbus-proxy_T559J3/gdbus/proxy/.dirs/system-config2 2148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/.dirs/config 2148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/.dirs/system-data1:/tmp/test_gdbus-proxy_T559J3/gdbus/proxy/.dirs/system-data2 2148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/.dirs/data 2148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/.dirs/state 2148s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/.dirs/runtime 2148s # Executing: glib/gdbus-proxy.test 2151s ok 1 /gdbus/proxy 2151s # slow test /gdbus/proxy executed in 2.76 secs 2151s # Start of proxy tests 2151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-properties/.dirs/home 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-properties/.dirs/cache 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-properties/.dirs/system-config1:/tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-properties/.dirs/system-config2 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-properties/.dirs/config 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-properties/.dirs/system-data1:/tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-properties/.dirs/system-data2 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-properties/.dirs/data 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-properties/.dirs/state 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-properties/.dirs/runtime 2151s ok 2 /gdbus/proxy/no-properties 2151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/wellknown-noauto/.dirs/home 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/wellknown-noauto/.dirs/cache 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/wellknown-noauto/.dirs/system-config1:/tmp/test_gdbus-proxy_T559J3/gdbus/proxy/wellknown-noauto/.dirs/system-config2 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/wellknown-noauto/.dirs/config 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/wellknown-noauto/.dirs/system-data1:/tmp/test_gdbus-proxy_T559J3/gdbus/proxy/wellknown-noauto/.dirs/system-data2 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/wellknown-noauto/.dirs/data 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/wellknown-noauto/.dirs/state 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/wellknown-noauto/.dirs/runtime 2151s ok 3 /gdbus/proxy/wellknown-noauto 2151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/async/.dirs/home 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/async/.dirs/cache 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/async/.dirs/system-config1:/tmp/test_gdbus-proxy_T559J3/gdbus/proxy/async/.dirs/system-config2 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/async/.dirs/config 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/async/.dirs/system-data1:/tmp/test_gdbus-proxy_T559J3/gdbus/proxy/async/.dirs/system-data2 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/async/.dirs/data 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/async/.dirs/state 2151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/async/.dirs/runtime 2153s # Executing: glib/gdbus-proxy.test 2154s ok 4 /gdbus/proxy/async 2154s # slow test /gdbus/proxy/async executed in 2.57 secs 2154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-match-rule/.dirs/home 2154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-match-rule/.dirs/cache 2154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-match-rule/.dirs/system-config1:/tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-match-rule/.dirs/system-config2 2154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-match-rule/.dirs/config 2154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-match-rule/.dirs/system-data1:/tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-match-rule/.dirs/system-data2 2154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-match-rule/.dirs/data 2154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-match-rule/.dirs/state 2154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_T559J3/gdbus/proxy/no-match-rule/.dirs/runtime 2154s # /gdbus/proxy/no-match-rule summary: Test that G_DBUS_PROXY_FLAGS_NO_MATCH_RULE works 2154s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1109 2156s ok 5 /gdbus/proxy/no-match-rule 2156s # slow test /gdbus/proxy/no-match-rule executed in 2.24 secs 2156s # End of proxy tests 2156s # End of gdbus tests 2156s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2156s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2156s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2156s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2156s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2156s ok - glib/gdbus-proxy.test 2156s # Running test: glib/async-splice-output-stream.test 2156s TAP version 14 2156s # random seed: R02S11e3339c096b1602c7ec2ba2d39b9265 2156s 1..5 2156s # Start of async-splice tests 2156s ok 1 /async-splice/copy-chunks 2156s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 2156s ok 2 /async-splice/copy-chunks-threaded-input 2156s ok 3 /async-splice/copy-chunks-threaded-output 2156s ok 4 /async-splice/copy-chunks-threaded 2156s ok 5 /async-splice/cancelled 2156s # End of async-splice tests 2156s ok - glib/async-splice-output-stream.test 2156s # Running test: glib/unicode.test 2156s TAP version 14 2156s # random seed: R02Sbfc10e90c31e994c7bf17b5e8d8ce465 2156s 1..39 2156s # Start of unicode tests 2156s ok 1 /unicode/alnum 2156s ok 2 /unicode/alpha 2156s ok 3 /unicode/break-type 2156s ok 4 /unicode/canonical-decomposition 2156s ok 5 /unicode/casefold 2156s # Cannot set locale to lt_LT, skipping 2156s # Cannot set locale to lt_LT, skipping 2156s # Cannot set locale to lt_LT, skipping 2156s # Cannot set locale to lt_LT, skipping 2156s # Cannot set locale to lt_LT, skipping 2156s # Cannot set locale to lt_LT, skipping 2156s # Cannot set locale to lt_LT, skipping 2156s # Cannot set locale to lt_LT, skipping 2156s # Cannot set locale to lt_LT, skipping 2156s # Cannot set locale to lt_LT, skipping 2156s # Cannot set locale to lt_LT, skipping 2156s ok 6 /unicode/casemap_and_casefold 2156s ok 7 /unicode/cases 2156s ok 8 /unicode/character-type 2156s ok 9 /unicode/cntrl 2156s ok 10 /unicode/combining-class 2156s # Composing U+000041 and U+000042; expecting U+000000 2156s # Composing U+000041 and U+000000; expecting U+000000 2156s # Composing U+000066 and U+000069; expecting U+000000 2156s # Composing U+000308 and U+000301; expecting U+000000 2156s # Composing U+000f71 and U+000f72; expecting U+000000 2156s # Composing U+00212b and U+000000; expecting U+000000 2156s # Composing U+0000c5 and U+000000; expecting U+000000 2156s # Composing U+002126 and U+000000; expecting U+000000 2156s # Composing U+0003a9 and U+000000; expecting U+000000 2156s # Composing U+000041 and U+00030a; expecting U+0000c5 2156s # Composing U+00006f and U+000302; expecting U+0000f4 2156s # Composing U+001e63 and U+000307; expecting U+001e69 2156s # Composing U+000073 and U+000323; expecting U+001e63 2156s # Composing U+000064 and U+000307; expecting U+001e0b 2156s # Composing U+000064 and U+000323; expecting U+001e0d 2156s # Composing U+00d4cc and U+0011b6; expecting U+00d4db 2156s # Composing U+001111 and U+001171; expecting U+00d4cc 2156s # Composing U+00ce20 and U+0011b8; expecting U+00ce31 2156s # Composing U+00110e and U+001173; expecting U+00ce20 2156s # Composing U+001100 and U+001160; expecting U+000000 2156s # Composing U+001100 and U+001177; expecting U+000000 2156s # Composing U+00abff and U+0011b6; expecting U+000000 2156s # Composing U+00d7a5 and U+0011b6; expecting U+000000 2156s # Composing U+00ac01 and U+0011b6; expecting U+000000 2156s # Composing U+00d4cc and U+0011a6; expecting U+000000 2156s # Composing U+00d4cc and U+0011c4; expecting U+000000 2156s # Composing U+01611e and U+01611e; expecting U+016121 2156s # Composing U+01611e and U+01611f; expecting U+016123 2156s # Composing U+0000f6 and U+000304; expecting U+00022b 2156s # Composing U+000b47 and U+000b57; expecting U+000b4c 2156s # Composing U+0000a0 and U+000b57; expecting U+000000 2156s # Composing U+016e00 and U+00030a; expecting U+000000 2156s # Composing U+00212b and U+016e00; expecting U+000000 2156s # Composing U+001e63 and U+000306; expecting U+000000 2156s # Composing U+001e63 and U+000304; expecting U+000000 2156s # Composing U+001e63 and U+000b57; expecting U+000000 2156s # Composing U+001e63 and U+000000; expecting U+000000 2156s # Composing U+001e63 and U+0113c2; expecting U+000000 2156s # Composing U+001f01 and U+0113c2; expecting U+000000 2156s # Composing U+00006e and U+000302; expecting U+000000 2156s # Composing U+001e63 and U+01611f; expecting U+000000 2156s # Composing U+01138e and U+0113b8; expecting U+000000 2156s # Composing U+01611e and U+000000; expecting U+000000 2156s # Composing U+000000 and U+01611f; expecting U+000000 2156s # Composing U+011390 and U+0113c2; expecting U+000000 2156s ok 11 /unicode/compose 2156s ok 12 /unicode/decompose 2156s ok 13 /unicode/decompose-tail 2156s ok 14 /unicode/defined 2156s ok 15 /unicode/digit 2156s ok 16 /unicode/digit-value 2156s # Fully decomposing U+000041; expecting 1 codepoints 2156s # Fully decomposing U+00fb01; expecting 1 codepoints 2156s # Fully decomposing U+00212b; expecting 2 codepoints 2156s # Fully decomposing U+002126; expecting 1 codepoints 2156s # Fully decomposing U+000344; expecting 2 codepoints 2156s # Fully decomposing U+000f73; expecting 2 codepoints 2156s # Fully decomposing U+0000c5; expecting 2 codepoints 2156s # Fully decomposing U+0000f4; expecting 2 codepoints 2156s # Fully decomposing U+001e69; expecting 3 codepoints 2156s # Fully decomposing U+001e63; expecting 2 codepoints 2156s # Fully decomposing U+001e0b; expecting 2 codepoints 2156s # Fully decomposing U+001e0d; expecting 2 codepoints 2156s # Fully decomposing U+00d4db; expecting 3 codepoints 2156s # Fully decomposing U+00d4cc; expecting 2 codepoints 2156s # Fully decomposing U+00ce31; expecting 3 codepoints 2156s # Fully decomposing U+00ce20; expecting 2 codepoints 2156s ok 17 /unicode/fully-decompose-canonical 2156s ok 18 /unicode/fully-decompose-len 2156s ok 19 /unicode/normalization 2157s ok 20 /unicode/graph 2157s # Testing script Zyyy (code 1517910393) 2157s # Testing script Zinh (code 1516858984) 2157s # Testing script Zmth (code 1517122664) 2157s # Testing script Arab (code 1098015074) 2157s # Testing script Armn (code 1098018158) 2157s # Testing script Beng (code 1113943655) 2157s # Testing script Bopo (code 1114599535) 2157s # Testing script Cher (code 1130915186) 2157s # Testing script Copt (code 1131376756) 2157s # Testing script Cyrl (code 1132032620) 2157s # Testing script Dsrt (code 1148416628) 2157s # Testing script Deva (code 1147500129) 2157s # Testing script Ethi (code 1165256809) 2157s # Testing script Geor (code 1197830002) 2157s # Testing script Goth (code 1198486632) 2157s # Testing script Grek (code 1198679403) 2157s # Testing script Gujr (code 1198877298) 2157s # Testing script Guru (code 1198879349) 2157s # Testing script Hani (code 1214344809) 2157s # Testing script Hang (code 1214344807) 2157s # Testing script Hebr (code 1214603890) 2157s # Testing script Hira (code 1214870113) 2157s # Testing script Knda (code 1265525857) 2157s # Testing script Kana (code 1264676449) 2157s # Testing script Khmr (code 1265134962) 2157s # Testing script Laoo (code 1281453935) 2157s # Testing script Latn (code 1281455214) 2157s # Testing script Mlym (code 1298954605) 2157s # Testing script Mong (code 1299148391) 2157s # Testing script Mymr (code 1299803506) 2157s # Testing script Ogam (code 1332175213) 2157s # Testing script Ital (code 1232363884) 2157s # Testing script Orya (code 1332902241) 2157s # Testing script Runr (code 1383427698) 2157s # Testing script Sinh (code 1399418472) 2157s # Testing script Syrc (code 1400468067) 2157s # Testing script Taml (code 1415671148) 2157s # Testing script Telu (code 1415933045) 2157s # Testing script Thaa (code 1416126817) 2157s # Testing script Thai (code 1416126825) 2157s # Testing script Tibt (code 1416192628) 2157s # Testing script Cans (code 1130458739) 2157s # Testing script Yiii (code 1500080489) 2157s # Testing script Tglg (code 1416064103) 2157s # Testing script Hano (code 1214344815) 2157s # Testing script Buhd (code 1114990692) 2157s # Testing script Tagb (code 1415669602) 2157s # Testing script Brai (code 1114792297) 2157s # Testing script Cprt (code 1131442804) 2157s # Testing script Limb (code 1281977698) 2157s # Testing script Osma (code 1332964705) 2157s # Testing script Shaw (code 1399349623) 2157s # Testing script Linb (code 1281977954) 2157s # Testing script Tale (code 1415670885) 2157s # Testing script Ugar (code 1432838514) 2157s # Testing script Talu (code 1415670901) 2157s # Testing script Bugi (code 1114990441) 2157s # Testing script Glag (code 1198285159) 2157s # Testing script Tfng (code 1415999079) 2157s # Testing script Sylo (code 1400466543) 2157s # Testing script Xpeo (code 1483761007) 2157s # Testing script Khar (code 1265131890) 2157s # Testing script Zzzz (code 1517976186) 2157s # Testing script Bali (code 1113681001) 2157s # Testing script Xsux (code 1483961720) 2157s # Testing script Phnx (code 1349021304) 2157s # Testing script Phag (code 1349017959) 2157s # Testing script Nkoo (code 1315663727) 2157s # Testing script Kali (code 1264675945) 2157s # Testing script Lepc (code 1281716323) 2157s # Testing script Rjng (code 1382706791) 2157s # Testing script Sund (code 1400204900) 2157s # Testing script Saur (code 1398895986) 2157s # Testing script Cham (code 1130914157) 2157s # Testing script Olck (code 1332503403) 2157s # Testing script Vaii (code 1449224553) 2157s # Testing script Cari (code 1130459753) 2157s # Testing script Lyci (code 1283023721) 2157s # Testing script Lydi (code 1283023977) 2157s # Testing script Avst (code 1098281844) 2157s # Testing script Bamu (code 1113681269) 2157s # Testing script Egyp (code 1164409200) 2157s # Testing script Armi (code 1098018153) 2157s # Testing script Phli (code 1349020777) 2157s # Testing script Prti (code 1349678185) 2157s # Testing script Java (code 1247901281) 2157s # Testing script Kthi (code 1265920105) 2157s # Testing script Lisu (code 1281979253) 2157s # Testing script Mtei (code 1299473769) 2157s # Testing script Sarb (code 1398895202) 2157s # Testing script Orkh (code 1332898664) 2157s # Testing script Samr (code 1398893938) 2157s # Testing script Lana (code 1281453665) 2157s # Testing script Tavt (code 1415673460) 2157s # Testing script Batk (code 1113683051) 2157s # Testing script Brah (code 1114792296) 2157s # Testing script Mand (code 1298230884) 2157s # Testing script Cakm (code 1130457965) 2157s # Testing script Merc (code 1298494051) 2157s # Testing script Mero (code 1298494063) 2157s # Testing script Plrd (code 1349284452) 2157s # Testing script Shrd (code 1399353956) 2157s # Testing script Sora (code 1399812705) 2157s # Testing script Takr (code 1415670642) 2157s # Testing script Bass (code 1113682803) 2157s # Testing script Aghb (code 1097295970) 2157s # Testing script Dupl (code 1148547180) 2157s # Testing script Elba (code 1164730977) 2157s # Testing script Gran (code 1198678382) 2157s # Testing script Khoj (code 1265135466) 2157s # Testing script Sind (code 1399418468) 2157s # Testing script Lina (code 1281977953) 2157s # Testing script Mahj (code 1298229354) 2157s # Testing script Mani (code 1298230889) 2157s # Testing script Mend (code 1298493028) 2157s # Testing script Modi (code 1299145833) 2157s # Testing script Mroo (code 1299345263) 2157s # Testing script Nbat (code 1315070324) 2157s # Testing script Narb (code 1315009122) 2157s # Testing script Perm (code 1348825709) 2157s # Testing script Hmng (code 1215131239) 2157s # Testing script Palm (code 1348562029) 2157s # Testing script Pauc (code 1348564323) 2157s # Testing script Phlp (code 1349020784) 2157s # Testing script Sidd (code 1399415908) 2157s # Testing script Tirh (code 1416196712) 2157s # Testing script Wara (code 1466004065) 2157s # Testing script Ahom (code 1097363309) 2157s # Testing script Hluw (code 1215067511) 2157s # Testing script Hatr (code 1214346354) 2157s # Testing script Mult (code 1299541108) 2157s # Testing script Hung (code 1215655527) 2157s # Testing script Sgnw (code 1399287415) 2157s # Testing script Adlm (code 1097100397) 2157s # Testing script Bhks (code 1114139507) 2157s # Testing script Marc (code 1298231907) 2157s # Testing script Newa (code 1315272545) 2157s # Testing script Osge (code 1332963173) 2157s # Testing script Tang (code 1415671399) 2157s # Testing script Gonm (code 1198485101) 2157s # Testing script Nshu (code 1316186229) 2157s # Testing script Soyo (code 1399814511) 2157s # Testing script Zanb (code 1516334690) 2157s # Testing script Dogr (code 1148151666) 2157s # Testing script Gong (code 1198485095) 2157s # Testing script Rohg (code 1383032935) 2157s # Testing script Maka (code 1298230113) 2157s # Testing script Medf (code 1298490470) 2157s # Testing script Sogo (code 1399809903) 2157s # Testing script Sogd (code 1399809892) 2157s # Testing script Elym (code 1164736877) 2157s # Testing script Nand (code 1315008100) 2157s # Testing script Hmnp (code 1215131248) 2157s # Testing script Wcho (code 1466132591) 2157s # Testing script Chrs (code 1130918515) 2157s # Testing script Diak (code 1147756907) 2157s # Testing script Kits (code 1265202291) 2157s # Testing script Yezi (code 1499822697) 2157s # Testing script Cpmn (code 1131441518) 2157s # Testing script Ougr (code 1333094258) 2157s # Testing script Tnsa (code 1416524641) 2157s # Testing script Toto (code 1416590447) 2157s # Testing script Vith (code 1449751656) 2157s # Testing script Kawi (code 1264678761) 2157s # Testing script Nagm (code 1315006317) 2157s # Testing script Todr (code 1416586354) 2157s # Testing script Gara (code 1197568609) 2157s # Testing script Tutg (code 1416983655) 2157s # Testing script Sunu (code 1400204917) 2157s # Testing script Gukh (code 1198877544) 2157s # Testing script Krai (code 1265787241) 2157s # Testing script Onao (code 1332633967) 2157s ok 21 /unicode/iso15924 2157s ok 22 /unicode/lower 2157s ok 23 /unicode/mark 2157s ok 24 /unicode/mirror 2157s ok 25 /unicode/print 2157s ok - glib/unicode.test 2157s # Running test: glib/cxx-17.test 2157s ok - glib/cxx-17.test 2157s # Running test: glib/print.test 2157s ok - glib/print.test 2157s # Running test: glib/convert.test 2157s ok 26 /unicode/punctuation 2157s ok 27 /unicode/script 2157s ok 28 /unicode/space 2157s ok 29 /unicode/strdown 2157s ok 30 /unicode/strup 2157s ok 31 /unicode/turkish-strupdown 2157s ok 32 /unicode/title 2157s ok 33 /unicode/upper 2157s ok 34 /unicode/validate 2157s ok 35 /unicode/wide 2157s ok 36 /unicode/xdigit 2157s ok 37 /unicode/xdigit-value 2157s ok 38 /unicode/zero-width 2157s ok 39 /unicode/normalize 2157s # End of unicode tests 2157s TAP version 14 2157s # random seed: R02S134c8836182a03a5b38278ed71b51334 2157s 1..2 2157s # Start of gtask tests 2157s # 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. 2157s ok 1 /gtask/name 2157s # Start of name tests 2157s # 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. 2157s ok 2 /gtask/name/macro-wrapper 2157s # End of name tests 2157s # End of gtask tests 2157s TAP version 14 2157s # random seed: R02S3cf22b2b0d38dca129271030acdf773a 2157s 1..1 2157s ok 1 /print-console # SKIP Testing console output only supported on Windows 2157s TAP version 14 2157s # random seed: R02Sda3fb527746b5d3aac423870773c971d 2157s 1..14 2157s # Start of conversion tests 2157s ok 1 /conversion/no-conv 2157s ok 2 /conversion/iconv-state 2157s ok 3 /conversion/illegal-sequence 2157s ok - glib/convert.test 2157s # Running test: glib/cxx.test 2157s ok - glib/cxx.test 2157s # Running test: glib/file-enumerator.test 2157s ok - glib/file-enumerator.test 2157s # Running test: glib/hook.test 2157s ok - glib/hook.test 2157s # Running test: glib/environment.test 2157s ok - glib/environment.test 2157s # Running test: glib/thread-pool.test 2157s ok - glib/thread-pool.test 2157s # Running test: glib/fileattributematcher.test 2157s ok - glib/fileattributematcher.test 2157s # Running test: glib/socket-service.test 2157s ok - glib/socket-service.test 2157s # Running test: glib/protocol.test 2157s ok - glib/protocol.test 2157s # Running test: glib/closure-refcount.test 2157s ok 4 /conversion/byte-order 2157s ok 5 /conversion/unicode 2157s ok 6 /conversion/filename-utf8 2157s ok 7 /conversion/filename-display 2157s ok 8 /conversion/convert-embedded-nul 2157s # Start of locale-to-utf8 tests 2157s ok 9 /conversion/locale-to-utf8/embedded-nul 2157s # Start of embedded-nul tests 2157s # Start of subprocess tests 2157s # End of subprocess tests 2157s # End of embedded-nul tests 2157s # End of locale-to-utf8 tests 2157s # Start of locale-from-utf8 tests 2157s ok 10 /conversion/locale-from-utf8/embedded-nul 2157s # Start of embedded-nul tests 2157s # Start of subprocess tests 2157s # End of subprocess tests 2157s # End of embedded-nul tests 2157s # End of locale-from-utf8 tests 2157s # Start of filename-to-utf8 tests 2157s ok 11 /conversion/filename-to-utf8/embedded-nul 2157s # Start of embedded-nul tests 2157s # Start of subprocess tests 2157s # End of subprocess tests 2157s # End of embedded-nul tests 2157s # End of filename-to-utf8 tests 2157s # Start of filename-from-utf8 tests 2157s ok 12 /conversion/filename-from-utf8/embedded-nul 2157s # Start of embedded-nul tests 2157s # Start of subprocess tests 2157s # End of subprocess tests 2157s # End of embedded-nul tests 2157s # End of filename-from-utf8 tests 2157s # Start of filename-from-uri tests 2157s ok 13 /conversion/filename-from-uri/query-is-ignored 2157s ok 14 /conversion/filename-from-uri/fragment-is-ignored 2157s # End of filename-from-uri tests 2157s # End of conversion tests 2157s TAP version 14 2157s # random seed: R02Sf1c9adac7709047f9b68b6f391cdb510 2157s 1..2 2157s # Start of gtask tests 2157s # 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. 2157s ok 1 /gtask/name 2157s # Start of name tests 2157s # 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. 2157s ok 2 /gtask/name/macro-wrapper 2157s # End of name tests 2157s # End of gtask tests 2157s TAP version 14 2157s # random seed: R02Sfd506542c81c0e379ec89bb84517d8f3 2157s 1..1 2157s # Start of file-enumerator tests 2157s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 2157s ok 1 /file-enumerator/close-on-dispose 2157s # End of file-enumerator tests 2157s TAP version 14 2157s # random seed: R02S0f99ccddd3edbeb5c5343da42e2482fe 2157s 1..2 2157s # Start of hook tests 2157s ok 1 /hook/basics 2157s ok 2 /hook/corner-cases 2157s # End of hook tests 2157s TAP version 14 2157s # random seed: R02Sf96ac860260d85d69b578722ceccd3fa 2157s 1..7 2157s # Start of environ tests 2157s # /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. 2157s ok 1 /environ/listenv 2157s # /environ/getenv summary: Test setting an environment variable using g_setenv(), and that the updated value is queryable using g_getenv(). 2157s ok 2 /environ/getenv 2157s ok 3 /environ/setenv 2157s # /environ/array summary: Test getting and setting variables on a local envp array (rather than the global envp). 2157s ok 4 /environ/array 2157s # /environ/null summary: Test getting and setting variables on a NULL envp array. 2157s ok 5 /environ/null 2157s # /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. 2157s ok 6 /environ/case 2157s # /environ/expansion summary: Test expansion of environment variable references. 2157s ok 7 /environ/expansion # SKIP Environment variable expansion is only supported on Windows 2157s # End of environ tests 2157s TAP version 14 2157s # random seed: R02S187cad97a26c08564e504a7b9b62cb60 2157s 1..6 2157s # Start of thread_pool tests 2157s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3712 2157s ok 1 /thread_pool/pool_fail 2157s # /thread_pool/shared summary: Tests that a shared, non-exclusive thread pool generally works. 2157s ok 2 /thread_pool/shared 2157s # /thread_pool/exclusive summary: Tests that an exclusive thread pool generally works. 2157s ok 3 /thread_pool/exclusive 2157s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 2157s # /thread_pool/create_shared_after_exclusive summary: Tests that creating a shared pool after an exclusive one works. 2157s ok 4 /thread_pool/create_shared_after_exclusive 2157s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/121 2157s ok 5 /thread_pool/create_full 2157s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 2157s # /thread_pool/create_exclusive_after_shared summary: Tests that creating an exclusive pool after a shared one works. 2157s ok 6 /thread_pool/create_exclusive_after_shared 2157s # End of thread_pool tests 2157s TAP version 14 2157s # random seed: R02S5249567aee4515b7cc64861312d7f804 2157s 1..3 2157s # Start of fileattributematcher tests 2157s ok 1 /fileattributematcher/exact 2157s ok 2 /fileattributematcher/equality 2157s ok 3 /fileattributematcher/subtract 2157s # End of fileattributematcher tests 2157s TAP version 14 2157s # random seed: R02Sb7476ba7d8b4329f747e0acf5b757969 2157s 1..4 2157s # Start of socket-service tests 2157s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 2157s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa051fd240 and GSocketClientAsyncConnectData 0x2aa051f7f00 2157s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2157s ok 1 /socket-service/start-stop 2157s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa052012d0 and GSocketClientAsyncConnectData 0x2aa05200f30 2157s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2157s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2157s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa05201250 for GSocketClientAsyncConnectData 0x2aa051f7f00 2157s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2157s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2157s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2157s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 2157s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2157s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa05201250 for GSocketClientAsyncConnectData 0x2aa05200f30 2157s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2157s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2157s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2157s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 2157s ok 2 /socket-service/read_write_async 2157s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa052012d0 and GSocketClientAsyncConnectData 0x2aa052049f0 2157s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2157s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2157s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa05203e20 for GSocketClientAsyncConnectData 0x2aa052049f0 2157s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2157s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2157s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2157s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 2157s ok 3 /socket-service/read_writev_async 2157s # Start of threaded tests 2157s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=712570 2157s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa051f5a70 and GSocketClientAsyncConnectData 0x2aa05200f30 2157s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2157s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2157s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa05205240 for GSocketClientAsyncConnectData 0x2aa05200f30 2157s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2157s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2157s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2157s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 2157s ok 4 /socket-service/threaded/712570 2157s # End of threaded tests 2157s # End of socket-service tests 2157s TAP version 14 2157s # random seed: R02S900107bf3b95c5f1d060077f122b609e 2157s 1..9 2157s # Start of glib tests 2157s # Start of testing tests 2157s # Start of protocol tests 2157s ok 1 /glib/testing/protocol/debug 2157s ok 2 /glib/testing/protocol/info 2157s ok 3 /glib/testing/protocol/message 2157s ok 4 /glib/testing/protocol/warning 2157s ok 5 /glib/testing/protocol/critical 2157s ok 6 /glib/testing/protocol/error 2157s ok 7 /glib/testing/protocol/gtest-message 2157s ok 8 /glib/testing/protocol/test-message 2157s ok 9 /glib/testing/protocol/test-error 2157s # End of protocol tests 2157s # End of testing tests 2157s # End of glib tests 2157s TAP version 14 2157s # random seed: R02S18801a9b419289bfb7f956fe7c12cc61 2157s 1..1 2157s # Start of closure tests 2157s # Init 0x2aa0e552db0 2157s # Yielding from main thread 2157s # Yielding from thread1 2158s # Yielding from main thread 2158s # Yielding from main thread 2158s # Yielding from main thread 2158s # Yielding from main thread 2158s # Yielding from main thread 2158s # Yielding from thread2 2158s # Yielding from main thread 2158s # Yielding from main thread 2158s # Yielding from thread1 2158s # Yielding from thread2 2158s # Yielding from main thread 2158s # Yielding from thread2 2158s # Yielding from thread2 2158s # Yielding from thread2 2158s # Yielding from main thread 2158s # Yielding from main thread 2158s # Yielding from main thread 2158s # Executing: glib/closure-refcount.test 2158s # Yielding from main thread 2158s # Yielding from thread2 2159s # Yielding from main thread 2159s # Yielding from main thread 2159s # Yielding from thread1 2159s # Yielding from main thread 2159s # Yielding from main thread 2159s # Yielding from main thread 2159s # Yielding from thread2 2159s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from thread1 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from thread1 2160s # Yielding from thread2 2160s # Yielding from main thread 2160s # Yielding from thread1 2160s # Yielding from thread1 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from main thread 2160s # Yielding from thread2 2160s # Yielding from thread2 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from thread1 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from thread1 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from thread1 2161s # Yielding from thread1 2161s # Yielding from thread1 2161s # Yielding from main thread 2161s # Yielding from main thread 2161s # Yielding from main thread 2162s # Yielding from main thread 2162s # Yielding from thread2 2162s # Yielding from thread2 2162s # Yielding from thread2 2162s # Yielding from thread1 2162s # Yielding from thread1 2162s # Yielding from thread1 2162s # Yielding from main thread 2162s # Yielding from main thread 2162s # Yielding from thread2 2162s # Yielding from main thread 2162s # Yielding from main thread 2162s # Yielding from main thread 2162s # Yielding from main thread 2162s # Yielding from main thread 2162s # Yielding from main thread 2162s # Yielding from main thread 2162s # Yielding from main thread 2162s # Yielding from thread2 2163s # Yielding from thread2 2163s # Yielding from thread1 2163s # Yielding from thread2 2163s # Yielding from thread1 2163s # Yielding from thread2 2163s # Yielding from main thread 2163s # Yielding from main thread 2163s # Yielding from main thread 2163s # Yielding from main thread 2163s # Yielding from main thread 2163s # Yielding from main thread 2163s # Stopping 2163s # Stopped 2163s ok 1 /closure/refcount 2163s # slow test /closure/refcount executed in 6.19 secs 2163s # End of closure tests 2163s ok - glib/closure-refcount.test 2163s # Running test: glib/utf8-misc.test 2163s TAP version 14 2163s # random seed: R02S6646afa49527d1370bbb051887b3ec31 2163s 1..7 2163s # Start of utf8 tests 2163s ok 1 /utf8/strlen 2163s ok 2 /utf8/strncpy 2163s ok 3 /utf8/strrchr 2163s ok 4 /utf8/reverse 2163s ok 5 /utf8/substring 2163s ok 6 /utf8/make-valid 2163s ok 7 /utf8/truncate-middle 2163s # End of utf8 tests 2163s ok - glib/utf8-misc.test 2163s # Running test: glib/portal-support-none.test 2163s ok - glib/portal-support-none.test 2163s # Running test: glib/option-argv0.test 2163s ok - glib/option-argv0.test 2163s # Running test: glib/pollable.test 2163s TAP version 14 2163s # random seed: R02S4dc67d23775a822e7a878c78535faefd 2163s 1..1 2163s # Start of portal-support tests 2163s ok 1 /portal-support/none 2163s # End of portal-support tests 2163s TAP version 14 2163s # random seed: R02S7999b2063559e5dd601b8f88e7b535ac 2163s 1..1 2163s # Start of option tests 2163s ok 1 /option/argv0 2163s # End of option tests 2163s TAP version 14 2163s # random seed: R02Se8500bfaabf9fa9b301c05f732b479b3 2163s 1..6 2163s # Start of pollable tests 2163s ok 1 /pollable/converter 2163s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 2163s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa22b97890 and GSocketClientAsyncConnectData 0x2aa22b99710 2163s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2163s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2163s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa22ba5220 for GSocketClientAsyncConnectData 0x2aa22b99710 2163s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2163s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2163s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2163s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 2163s ok 2 /pollable/socket 2163s # Start of unix tests 2163s # /pollable/unix/pipe summary: Test that pipes are considered pollable, just like sockets 2163s ok 3 /pollable/unix/pipe 2163s # /pollable/unix/pty summary: Test that PTYs are considered pollable 2163s ok 4 /pollable/unix/pty 2163s # /pollable/unix/file summary: Test that regular files are not considered pollable 2163s ok 5 /pollable/unix/file 2163s # /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 2163s ok 6 /pollable/unix/nulldev 2163s # End of unix tests 2163s # End of pollable tests 2163s ok - glib/pollable.test 2163s # Running test: glib/once.test 2163s TAP version 14 2163s # random seed: R02S5510b3ae492ef61a3d18a6235a42c6a0 2163s 1..5 2163s # Start of once tests 2163s # /once/single-threaded summary: Test g_once() usage from a single thread 2163s ok 1 /once/single-threaded 2163s # /once/multi-threaded summary: Test g_once() usage from multiple threads 2163s # Executing: glib/once.test 2163s ok 2 /once/multi-threaded 2163s # End of once tests 2163s # Start of once-init tests 2163s # /once-init/single-threaded summary: Test g_once_init_{enter,leave}() usage from a single thread 2163s ok 3 /once-init/single-threaded 2163s # /once-init/multi-threaded summary: Test g_once_init_{enter,leave}() usage from multiple threads 2163s ok 4 /once-init/multi-threaded 2163s # /once-init/string summary: Test g_once_init_{enter,leave}() usage with a string 2163s ok 5 /once-init/string 2163s # End of once-init tests 2163s ok - glib/once.test 2163s # Running test: glib/markup-parse.test 2163s TAP version 14 2163s # random seed: R02S00ca8847a4bbaf144850feea2d623c3a 2163s 1..71 2163s # Start of markup tests 2163s # Start of parse tests 2163s ok 1 /markup/parse/fail-46.gmarkup 2163s ok 2 /markup/parse/fail-26.gmarkup 2163s ok 3 /markup/parse/fail-39.gmarkup 2163s ok 4 /markup/parse/fail-6.gmarkup 2163s ok 5 /markup/parse/valid-14.gmarkup 2163s ok 6 /markup/parse/fail-51.gmarkup 2163s ok 7 /markup/parse/valid-15.gmarkup 2163s ok 8 /markup/parse/valid-1.gmarkup 2163s ok 9 /markup/parse/fail-17.gmarkup 2163s ok 10 /markup/parse/fail-14.gmarkup 2163s ok 11 /markup/parse/fail-16.gmarkup 2163s ok 12 /markup/parse/fail-32.gmarkup 2163s ok 13 /markup/parse/fail-21.gmarkup 2163s ok 14 /markup/parse/fail-42.gmarkup 2163s ok 15 /markup/parse/fail-43.gmarkup 2163s ok 16 /markup/parse/fail-47.gmarkup 2163s ok 17 /markup/parse/fail-11.gmarkup 2163s ok 18 /markup/parse/fail-5.gmarkup 2163s ok 19 /markup/parse/fail-24.gmarkup 2163s ok 20 /markup/parse/valid-16.gmarkup 2163s ok 21 /markup/parse/fail-29.gmarkup 2163s ok 22 /markup/parse/fail-8.gmarkup 2163s ok 23 /markup/parse/fail-41.gmarkup 2163s ok 24 /markup/parse/valid-8.gmarkup 2163s ok 25 /markup/parse/valid-5.gmarkup 2163s ok 26 /markup/parse/fail-20.gmarkup 2163s ok 27 /markup/parse/fail-27.gmarkup 2163s ok 28 /markup/parse/fail-13.gmarkup 2163s ok 29 /markup/parse/fail-35.gmarkup 2163s ok 30 /markup/parse/fail-36.gmarkup 2163s ok 31 /markup/parse/fail-28.gmarkup 2163s ok 32 /markup/parse/valid-11.gmarkup 2163s ok 33 /markup/parse/fail-53.gmarkup 2163s ok 34 /markup/parse/fail-18.gmarkup 2163s ok 35 /markup/parse/fail-52.gmarkup 2163s ok 36 /markup/parse/fail-34.gmarkup 2163s ok 37 /markup/parse/fail-3.gmarkup 2163s ok 38 /markup/parse/fail-49.gmarkup 2163s ok 39 /markup/parse/fail-48.gmarkup 2163s ok 40 /markup/parse/valid-4.gmarkup 2163s ok 41 /markup/parse/valid-9.gmarkup 2163s ok 42 /markup/parse/fail-12.gmarkup 2163s ok 43 /markup/parse/valid-13.gmarkup 2163s ok 44 /markup/parse/fail-25.gmarkup 2163s ok 45 /markup/parse/valid-12.gmarkup 2163s ok 46 /markup/parse/fail-37.gmarkup 2163s ok 47 /markup/parse/fail-7.gmarkup 2163s ok 48 /markup/parse/fail-38.gmarkup 2163s ok 49 /markup/parse/fail-33.gmarkup 2163s ok 50 /markup/parse/fail-4.gmarkup 2163s ok 51 /markup/parse/valid-10.gmarkup 2163s ok 52 /markup/parse/valid-7.gmarkup 2163s ok 53 /markup/parse/fail-31.gmarkup 2163s ok 54 /markup/parse/fail-40.gmarkup 2163s ok 55 /markup/parse/valid-6.gmarkup 2163s ok 56 /markup/parse/fail-30.gmarkup 2163s ok 57 /markup/parse/fail-50.gmarkup 2163s ok 58 /markup/parse/fail-2.gmarkup 2163s ok 59 /markup/parse/fail-1.gmarkup 2163s ok 60 /markup/parse/fail-19.gmarkup 2163s ok 61 /markup/parse/fail-15.gmarkup 2163s ok 62 /markup/parse/fail-44.gmarkup 2163s ok 63 /markup/parse/fail-9.gmarkup 2163s ok - glib/markup-parse.test 2163s ok 64 /markup/parse/fail-54.gmarkup 2163s ok 65 /markup/parse/valid-3.gmarkup 2163s ok 66 /markup/parse/valid-17.gmarkup 2163s ok 67 /markup/parse/fail-45.gmarkup 2163s ok 68 /markup/parse/valid-2.gmarkup 2163s ok 69 /markup/parse/fail-10.gmarkup 2163s ok 70 /markup/parse/fail-22.gmarkup 2163s ok 71 /markup/parse/fail-23.gmarkup 2163s # End of parse tests 2163s # End of markup tests 2163s # Running test: glib/macros-c-11.test 2163s ok - glib/macros-c-11.test 2163s TAP version 14 2163s # random seed: R02Sc56da7f57541c381ba13b4279fb32122 2163s 1..4 2163s # Start of C tests 2163s ok 1 /C/standard-11 2163s # End of C tests 2163s # Start of alignof tests 2163s ok 2 /alignof/fallback 2163s # End of alignof tests 2163s # Start of assert tests 2163s ok 3 /assert/static 2163s # End of assert tests 2163s # Start of struct tests 2163s ok 4 /struct/sizeof_member 2163s # End of struct tests 2163s # Running test: glib/boxed.test 2163s ok - glib/boxed.test 2163s TAP version 14 2163s # random seed: R02S6b137277798cf1a4466e32ebce198cc4 2163s 1..27 2163s # Start of boxed tests 2163s ok 1 /boxed/define 2163s ok 2 /boxed/ownership 2163s ok 3 /boxed/closure 2163s ok 4 /boxed/date 2163s ok 5 /boxed/value 2163s ok 6 /boxed/string 2163s ok 7 /boxed/hashtable 2163s ok 8 /boxed/array 2163s ok 9 /boxed/ptrarray 2163s ok 10 /boxed/regex 2163s ok 11 /boxed/varianttype 2163s ok 12 /boxed/error 2163s ok 13 /boxed/datetime 2163s ok 14 /boxed/matchinfo 2163s ok 15 /boxed/keyfile 2163s ok 16 /boxed/mainloop 2163s ok 17 /boxed/maincontext 2163s ok 18 /boxed/source 2163s ok 19 /boxed/variantbuilder 2163s ok 20 /boxed/timezone 2163s ok 21 /boxed/pollfd 2163s ok 22 /boxed/markup 2163s ok 23 /boxed/thread 2163s ok 24 /boxed/checksum 2163s ok 25 /boxed/tree 2163s ok 26 /boxed/patternspec 2163s ok 27 /boxed/rand 2163s # End of boxed tests 2164s # Running test: glib/genmarshal.py.test 2164s TAP version 13 2164s ok 1 __main__.TestGenmarshal.test_empty_list 2164s # glib-genmarshal: /usr/bin/glib-genmarshal 2164s # tmpdir: /tmp/tmpbp0_cyv5 2164s # /tmp/tmpbp0_cyv5/tmp5b7k9ipp.list: 2164s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpbp0_cyv5/tmp5b7k9ipp.list', '--header', '--quiet'] 2164s # Return code: 0 2164s # Output: 2164s # /* 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. */ 2164s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 2164s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 2164s # 2164s # #include 2164s # 2164s # G_BEGIN_DECLS 2164s # 2164s # 2164s # G_END_DECLS 2164s # 2164s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 2164s # Error: 2164s # 2164s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpbp0_cyv5/tmp5b7k9ipp.list', '--body', '--quiet'] 2164s # Return code: 0 2164s # Output: 2164s # /* 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. */ 2164s # #include 2164s # 2164s # #ifdef G_ENABLE_DEBUG 2164s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2164s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2164s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2164s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2164s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2164s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2164s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2164s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2164s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2164s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2164s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2164s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2164s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2164s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2164s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2164s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2164s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2164s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2164s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2164s # #else /* !G_ENABLE_DEBUG */ 2164s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2164s # * Do not access GValues directly in your code. Instead, use the 2164s # * g_value_get_*() functions 2164s # */ 2164s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2164s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2164s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2164s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2164s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2164s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2164s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2164s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2164s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2164s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2164s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2164s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2164s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2164s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2164s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2164s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2164s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2164s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2164s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2164s # #endif /* !G_ENABLE_DEBUG */ 2164s # Error: 2165s ok 2 __main__.TestGenmarshal.test_help 2165s # glib-genmarshal: /usr/bin/glib-genmarshal 2165s # tmpdir: /tmp/tmpc16wpngz 2165s # Running: ['/usr/bin/glib-genmarshal', '--help'] 2165s # Return code: 0 2165s # Output: 2165s # usage: glib-genmarshal [-h] [--prefix STRING] [--output FILE] [--skip-source] 2165s # [--internal] [--valist-marshallers] [-v] 2165s # [--g-fatal-warnings] [--include-header [HEADER]] 2165s # [--pragma-once] [-D CPP_DEFINES] [-U CPP_UNDEFINES] 2165s # [--prototypes] [--header] [--body] [--stdinc | 2165s # --nostdinc] [--quiet | --verbose] 2165s # [FILE ...] 2165s # 2165s # Generate signal marshallers for GObject 2165s # 2165s # positional arguments: 2165s # FILE Files with lists of marshallers to generate, or "-" 2165s # for standard input 2165s # 2165s # options: 2165s # -h, --help show this help message and exit 2165s # --prefix STRING Specify marshaller prefix 2165s # --output FILE Write output into the specified file 2165s # --skip-source Skip source location comments 2165s # --internal Mark generated functions as internal 2165s # --valist-marshallers Generate va_list marshallers 2165s # -v, --version Print version information, and exit 2165s # --g-fatal-warnings Make warnings fatal 2165s # --include-header [HEADER] 2165s # Include the specified header in the body 2165s # --pragma-once Use "pragma once" as the inclusion guard 2165s # -D CPP_DEFINES Pre-processor define 2165s # -U CPP_UNDEFINES Pre-processor undefine 2165s # --prototypes Generate the marshallers prototype in the C code 2165s # --header Generate C headers 2165s # --body Generate C code 2165s # --stdinc Include standard marshallers 2165s # --nostdinc Use standard marshallers 2165s # --quiet Only print warnings and errors 2165s # --verbose Be verbose, and include debugging information 2165s # Error: 2165s ok 3 __main__.TestGenmarshal.test_no_args 2165s # glib-genmarshal: /usr/bin/glib-genmarshal 2165s # tmpdir: /tmp/tmpnp_t_50q 2165s # Running: ['/usr/bin/glib-genmarshal'] 2165s # Return code: 0 2165s # Output: 2165s # 2165s # Error: 2165s ok 4 __main__.TestGenmarshal.test_void_boolean 2165s # glib-genmarshal: /usr/bin/glib-genmarshal 2165s # tmpdir: /tmp/tmptfqs0_9f 2165s # /tmp/tmptfqs0_9f/tmpme2o5yqh.list: VOID:BOOLEAN 2165s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmptfqs0_9f/tmpme2o5yqh.list', '--header', '--quiet'] 2165s # Return code: 0 2165s # Output: 2165s # /* 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. */ 2165s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 2165s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 2165s # 2165s # #include 2165s # 2165s # G_BEGIN_DECLS 2165s # 2165s # /* VOID:BOOLEAN (/tmp/tmptfqs0_9f/tmpme2o5yqh.list:1) */ 2165s # #define g_cclosure_user_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN 2165s # 2165s # 2165s # G_END_DECLS 2165s # 2165s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 2165s # Error: 2165s # 2165s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmptfqs0_9f/tmpme2o5yqh.list', '--body', '--quiet'] 2165s # Return code: 0 2165s # Output: 2165s # /* 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. */ 2165s # #include 2165s # 2165s # #ifdef G_ENABLE_DEBUG 2165s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2165s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2165s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2165s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2165s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2165s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2165s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2165s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2165s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2165s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2165s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2165s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2165s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2165s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2165s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2165s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2165s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2165s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2165s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2165s # #else /* !G_ENABLE_DEBUG */ 2165s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2165s # * Do not access GValues directly in your code. Instead, use the 2165s # * g_value_get_*() functions 2165s # */ 2165s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2165s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2165s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2165s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2165s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2165s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2165s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2165s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2165s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2165s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2165s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2165s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2165s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2165s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2165s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2165s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2165s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2165s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2165s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2165s # #endif /* !G_ENABLE_DEBUG */ 2165s # Error: 2166s ok 5 __main__.TestGenmarshal.test_void_boolean_int64 2166s # glib-genmarshal: /usr/bin/glib-genmarshal 2166s # tmpdir: /tmp/tmp87b82nol 2166s # /tmp/tmp87b82nol/tmpuupygxxp.list: VOID:BOOLEAN,INT64 2166s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp87b82nol/tmpuupygxxp.list', '--header', '--quiet'] 2166s # Return code: 0 2166s # Output: 2166s # /* 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. */ 2166s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 2166s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 2166s # 2166s # #include 2166s # 2166s # G_BEGIN_DECLS 2166s # 2166s # /* VOID:BOOLEAN,INT64 (/tmp/tmp87b82nol/tmpuupygxxp.list:1) */ 2166s # extern 2166s # void g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 2166s # GValue *return_value, 2166s # guint n_param_values, 2166s # const GValue *param_values, 2166s # gpointer invocation_hint, 2166s # gpointer marshal_data); 2166s # 2166s # 2166s # G_END_DECLS 2166s # 2166s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 2166s # Error: 2166s # 2166s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp87b82nol/tmpuupygxxp.list', '--body', '--quiet'] 2166s # Return code: 0 2166s # Output: 2166s # /* 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. */ 2166s # #include 2166s # 2166s # #ifdef G_ENABLE_DEBUG 2166s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2166s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2166s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2166s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2166s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2166s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2166s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2166s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2166s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2166s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2166s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2166s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2166s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2166s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2166s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2166s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2166s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2166s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2166s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2166s # #else /* !G_ENABLE_DEBUG */ 2166s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2166s # * Do not access GValues directly in your code. Instead, use the 2166s # * g_value_get_*() functions 2166s # */ 2166s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2166s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2166s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2166s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2166s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2166s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2166s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2166s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2166s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2166s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2166s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2166s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2166s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2166s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2166s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2166s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2166s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2166s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2166s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2166s # #endif /* !G_ENABLE_DEBUG */ 2166s # 2166s # /* VOID:BOOLEAN,INT64 (/tmp/tmp87b82nol/tmpuupygxxp.list:1) */ 2166s # void 2166s # g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 2166s # GValue *return_value G_GNUC_UNUSED, 2166s # guint n_param_values, 2166s # const GValue *param_values, 2166s # gpointer invocation_hint G_GNUC_UNUSED, 2166s # gpointer marshal_data) 2166s # { 2166s # typedef void (*GMarshalFunc_VOID__BOOLEAN_INT64) (gpointer data1, 2166s # gboolean arg1, 2166s # gint64 arg2, 2166s # gpointer data2); 2166s # GCClosure *cc = (GCClosure *) closure; 2166s # gpointer data1, data2; 2166s # GMarshalFunc_VOID__BOOLEAN_INT64 callback; 2166s # 2166s # g_return_if_fail (n_param_values == 3); 2166s # 2166s # if (G_CCLOSURE_SWAP_DATA (closure)) 2166s # { 2166s # data1 = closure->data; 2166s # data2 = g_value_peek_pointer (param_values + 0); 2166s # } 2166s # else 2166s # { 2166s # data1 = g_value_peek_pointer (param_values + 0); 2166s # data2 = closure->data; 2166s # } 2166s # callback = (GMarshalFunc_VOID__BOOLEAN_INT64) (marshal_data ? marshal_data : cc->callback); 2166s # 2166s # callback (data1, 2166s # g_marshal_value_peek_boolean (param_values + 1), 2166s # g_marshal_value_peek_int64 (param_values + 2), 2166s # data2); 2166s # } 2166s # Error: 2167s ok 6 __main__.TestGenmarshal.test_void_param_nostdinc 2167s # glib-genmarshal: /usr/bin/glib-genmarshal 2167s # tmpdir: /tmp/tmplc46n6e8 2167s # /tmp/tmplc46n6e8/tmpqknn7srx.list: VOID:PARAM 2167s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmplc46n6e8/tmpqknn7srx.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 2167s # Return code: 0 2167s # Output: 2167s # /* 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. */ 2167s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 2167s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 2167s # 2167s # G_BEGIN_DECLS 2167s # 2167s # /* VOID:PARAM (/tmp/tmplc46n6e8/tmpqknn7srx.list:1) */ 2167s # extern 2167s # void g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 2167s # GValue *return_value, 2167s # guint n_param_values, 2167s # const GValue *param_values, 2167s # gpointer invocation_hint, 2167s # gpointer marshal_data); 2167s # extern 2167s # void g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 2167s # GValue *return_value, 2167s # gpointer instance, 2167s # va_list args, 2167s # gpointer marshal_data, 2167s # int n_params, 2167s # GType *param_types); 2167s # 2167s # 2167s # G_END_DECLS 2167s # 2167s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 2167s # Error: 2167s # 2167s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmplc46n6e8/tmpqknn7srx.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 2167s # Return code: 0 2167s # Output: 2167s # /* 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. */ 2167s # #ifdef G_ENABLE_DEBUG 2167s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2167s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2167s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2167s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2167s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2167s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2167s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2167s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2167s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2167s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2167s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2167s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2167s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2167s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2167s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2167s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2167s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2167s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2167s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2167s # #else /* !G_ENABLE_DEBUG */ 2167s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2167s # * Do not access GValues directly in your code. Instead, use the 2167s # * g_value_get_*() functions 2167s # */ 2167s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2167s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2167s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2167s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2167s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2167s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2167s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2167s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2167s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2167s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2167s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2167s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2167s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2167s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2167s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2167s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2167s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2167s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2167s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2167s # #endif /* !G_ENABLE_DEBUG */ 2167s # 2167s # /* VOID:PARAM (/tmp/tmplc46n6e8/tmpqknn7srx.list:1) */ 2167s # void 2167s # g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 2167s # GValue *return_value G_GNUC_UNUSED, 2167s # guint n_param_values, 2167s # const GValue *param_values, 2167s # gpointer invocation_hint G_GNUC_UNUSED, 2167s # gpointer marshal_data) 2167s # { 2167s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 2167s # gpointer arg1, 2167s # gpointer data2); 2167s # GCClosure *cc = (GCClosure *) closure; 2167s # gpointer data1, data2; 2167s # GMarshalFunc_VOID__PARAM callback; 2167s # 2167s # g_return_if_fail (n_param_values == 2); 2167s # 2167s # if (G_CCLOSURE_SWAP_DATA (closure)) 2167s # { 2167s # data1 = closure->data; 2167s # data2 = g_value_peek_pointer (param_values + 0); 2167s # } 2167s # else 2167s # { 2167s # data1 = g_value_peek_pointer (param_values + 0); 2167s # data2 = closure->data; 2167s # } 2167s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 2167s # 2167s # callback (data1, 2167s # g_marshal_value_peek_param (param_values + 1), 2167s # data2); 2167s # } 2167s # 2167s # void 2167s # g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 2167s # GValue *return_value G_GNUC_UNUSED, 2167s # gpointer instance, 2167s # va_list args, 2167s # gpointer marshal_data, 2167s # int n_params, 2167s # GType *param_types) 2167s # { 2167s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 2167s # gpointer arg1, 2167s # gpointer data2); 2167s # GCClosure *cc = (GCClosure *) closure; 2167s # gpointer data1, data2; 2167s # GMarshalFunc_VOID__PARAM callback; 2167s # gpointer arg0; 2167s # va_list args_copy; 2167s # 2167s # va_copy (args_copy, args); 2167s # arg0 = (gpointer) va_arg (args_copy, gpointer); 2167s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 2167s # arg0 = g_param_spec_ref (arg0); 2167s # va_end (args_copy); 2167s # 2167s # 2167s # if (G_CCLOSURE_SWAP_DATA (closure)) 2167s # { 2167s # data1 = closure->data; 2167s # data2 = instance; 2167s # } 2167s # else 2167s # { 2167s # data1 = instance; 2167s # data2 = closure->data; 2167s # } 2167s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 2167s # 2167s # callback (data1, 2167s # arg0, 2167s # data2); 2167s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 2167s # g_param_spec_unref (arg0); 2167s # } 2167s # Error: 2168s ok 7 __main__.TestGenmarshal.test_void_string_nostdinc 2168s # glib-genmarshal: /usr/bin/glib-genmarshal 2168s # tmpdir: /tmp/tmplncjx5vq 2168s # /tmp/tmplncjx5vq/tmp0hbpim4k.list: VOID:STRING 2168s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmplncjx5vq/tmp0hbpim4k.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 2168s # Return code: 0 2168s # Output: 2168s # /* 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. */ 2168s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 2168s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 2168s # 2168s # G_BEGIN_DECLS 2168s # 2168s # /* VOID:STRING (/tmp/tmplncjx5vq/tmp0hbpim4k.list:1) */ 2168s # extern 2168s # void g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 2168s # GValue *return_value, 2168s # guint n_param_values, 2168s # const GValue *param_values, 2168s # gpointer invocation_hint, 2168s # gpointer marshal_data); 2168s # extern 2168s # void g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 2168s # GValue *return_value, 2168s # gpointer instance, 2168s # va_list args, 2168s # gpointer marshal_data, 2168s # int n_params, 2168s # GType *param_types); 2168s # 2168s # 2168s # G_END_DECLS 2168s # 2168s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 2168s # Error: 2168s # 2168s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmplncjx5vq/tmp0hbpim4k.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 2168s # Return code: 0 2168s # Output: 2168s # /* 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. */ 2168s # #ifdef G_ENABLE_DEBUG 2168s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2168s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2168s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2168s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2168s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2168s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2168s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2168s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2168s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2168s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2168s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2168s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2168s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2168s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2168s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2168s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2168s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2168s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2168s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2168s # #else /* !G_ENABLE_DEBUG */ 2168s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2168s # * Do not access GValues directly in your code. Instead, use the 2168s # * g_value_get_*() functions 2168s # */ 2168s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2168s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2168s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2168s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2168s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2168s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2168s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2168s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2168s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2168s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2168s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2168s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2168s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2168s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2168s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2168s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2168s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2168s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2168s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2168s # #endif /* !G_ENABLE_DEBUG */ 2168s # 2168s # /* VOID:STRING (/tmp/tmplncjx5vq/tmp0hbpim4k.list:1) */ 2168s # void 2168s # g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 2168s # GValue *return_value G_GNUC_UNUSED, 2168s # guint n_param_values, 2168s # const GValue *param_values, 2168s # gpointer invocation_hint G_GNUC_UNUSED, 2168s # gpointer marshal_data) 2168s # { 2168s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 2168s # gpointer arg1, 2168s # gpointer data2); 2168s # GCClosure *cc = (GCClosure *) closure; 2168s # gpointer data1, data2; 2168s # GMarshalFunc_VOID__STRING callback; 2168s # 2168s # g_return_if_fail (n_param_values == 2); 2168s # 2168s # if (G_CCLOSURE_SWAP_DATA (closure)) 2168s # { 2168s # data1 = closure->data; 2168s # data2 = g_value_peek_pointer (param_values + 0); 2168s # } 2168s # else 2168s # { 2168s # data1 = g_value_peek_pointer (param_values + 0); 2168s # data2 = closure->data; 2168s # } 2168s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 2168s # 2168s # callback (data1, 2168s # g_marshal_value_peek_string (param_values + 1), 2168s # data2); 2168s # } 2168s # 2168s # void 2168s # g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 2168s # GValue *return_value G_GNUC_UNUSED, 2168s # gpointer instance, 2168s # va_list args, 2168s # gpointer marshal_data, 2168s # int n_params, 2168s # GType *param_types) 2168s # { 2168s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 2168s # gpointer arg1, 2168s # gpointer data2); 2168s # GCClosure *cc = (GCClosure *) closure; 2168s # gpointer data1, data2; 2168s # GMarshalFunc_VOID__STRING callback; 2168s # gpointer arg0; 2168s # va_list args_copy; 2168s # 2168s # va_copy (args_copy, args); 2168s # arg0 = (gpointer) va_arg (args_copy, gpointer); 2168s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 2168s # arg0 = g_strdup (arg0); 2168s # va_end (args_copy); 2168s # 2168s # 2168s # if (G_CCLOSURE_SWAP_DATA (closure)) 2168s # { 2168s # data1 = closure->data; 2168s # data2 = instance; 2168s # } 2168s # else 2168s # { 2168s # data1 = instance; 2168s # data2 = closure->data; 2168s # } 2168s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 2168s # 2168s # callback (data1, 2168s # arg0, 2168s # data2); 2168s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 2168s # g_free (arg0); 2168s # } 2168s # Error: 2168s # Executing: glib/genmarshal.py.test 2168s ok 8 __main__.TestGenmarshal.test_void_variant_nostdinc_valist_marshaller 2168s # glib-genmarshal: /usr/bin/glib-genmarshal 2168s # tmpdir: /tmp/tmpidn4le_0 2168s # /tmp/tmpidn4le_0/tmp8jiwp6l2.list: VOID:VARIANT 2168s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpidn4le_0/tmp8jiwp6l2.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 2168s # Return code: 0 2168s # Output: 2168s # /* 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. */ 2168s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 2168s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 2168s # 2168s # G_BEGIN_DECLS 2168s # 2168s # /* VOID:VARIANT (/tmp/tmpidn4le_0/tmp8jiwp6l2.list:1) */ 2168s # extern 2168s # void g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 2168s # GValue *return_value, 2168s # guint n_param_values, 2168s # const GValue *param_values, 2168s # gpointer invocation_hint, 2168s # gpointer marshal_data); 2168s # extern 2168s # void g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 2168s # GValue *return_value, 2168s # gpointer instance, 2168s # va_list args, 2168s # gpointer marshal_data, 2168s # int n_params, 2168s # GType *param_types); 2168s # 2168s # 2168s # G_END_DECLS 2168s # 2168s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 2168s # Error: 2168s # 2168s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpidn4le_0/tmp8jiwp6l2.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 2168s # Return code: 0 2168s # Output: 2168s # /* 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. */ 2168s # #ifdef G_ENABLE_DEBUG 2168s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2168s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2168s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2168s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2168s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2168s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2168s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2168s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2168s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2168s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2168s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2168s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2168s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2168s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2168s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2168s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2168s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2168s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2168s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2168s # #else /* !G_ENABLE_DEBUG */ 2168s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2168s # * Do not access GValues directly in your code. Instead, use the 2168s # * g_value_get_*() functions 2168s # */ 2168s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2168s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2168s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2168s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2168s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2168s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2168s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2168s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2168s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2168s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2168s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2168s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2168s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2168s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2168s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2168s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2168s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2168s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2168s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2168s # #endif /* !G_ENABLE_DEBUG */ 2168s # 2168s # /* VOID:VARIANT (/tmp/tmpidn4le_0/tmp8jiwp6l2.list:1) */ 2168s # void 2168s # g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 2168s # GValue *return_value G_GNUC_UNUSED, 2168s # guint n_param_values, 2168s # const GValue *param_values, 2168s # gpointer invocation_hint G_GNUC_UNUSED, 2168s # gpointer marshal_data) 2168s # { 2168s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 2168s # gpointer arg1, 2168s # gpointer data2); 2168s # GCClosure *cc = (GCClosure *) closure; 2168s # gpointer data1, data2; 2168s # GMarshalFunc_VOID__VARIANT callback; 2168s # 2168s # g_return_if_fail (n_param_values == 2); 2168s # 2168s # if (G_CCLOSURE_SWAP_DATA (closure)) 2168s # { 2168s # data1 = closure->data; 2168s # data2 = g_value_peek_pointer (param_values + 0); 2168s # } 2168s # else 2168s # { 2168s # data1 = g_value_peek_pointer (param_values + 0); 2168s # data2 = closure->data; 2168s # } 2168s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 2168s # 2168s # callback (data1, 2168s # g_marshal_value_peek_variant (param_values + 1), 2168s # data2); 2168s # } 2168s # 2168s # void 2168s # g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 2168s # GValue *return_value G_GNUC_UNUSED, 2168s # gpointer instance, 2168s # va_list args, 2168s # gpointer marshal_data, 2168s # int n_params, 2168s # GType *param_types) 2168s # { 2168s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 2168s # gpointer arg1, 2168s # gpointer data2); 2168s # GCClosure *cc = (GCClosure *) closure; 2168s # gpointer data1, data2; 2168s # GMarshalFunc_VOID__VARIANT callback; 2168s # gpointer arg0; 2168s # va_list args_copy; 2168s # 2168s # va_copy (args_copy, args); 2168s # arg0 = (gpointer) va_arg (args_copy, gpointer); 2168s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 2168s # arg0 = g_variant_ref_sink (arg0); 2168s # va_end (args_copy); 2168s # 2168s # 2168s # if (G_CCLOSURE_SWAP_DATA (closure)) 2168s # { 2168s # data1 = closure->data; 2168s # data2 = instance; 2168s # } 2168s # else 2168s # { 2168s # data1 = instance; 2168s # data2 = closure->data; 2168s # } 2168s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 2168s # 2168s # callback (data1, 2168s # arg0, 2168s # data2); 2168s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 2168s # g_variant_unref (arg0); 2168s # } 2168s # Error: 2169s 1..8 2169s ok - glib/genmarshal.py.test 2169s # Running test: glib/mappedfile.test 2169s TAP version 14 2169s # random seed: R02Sd6aad19f3c460ea84deda5f4d31cb3ef 2169s 1..7 2169s # Start of mappedfile tests 2169s ok 1 /mappedfile/basic 2169s ok 2 /mappedfile/empty 2169s ok 3 /mappedfile/device 2169s ok 4 /mappedfile/nonexisting 2169s ok 5 /mappedfile/writable 2170s ok 6 /mappedfile/writable_fd 2170s ok - glib/mappedfile.test 2170s # Running test: glib/sort.test 2170s # slow test /mappedfile/writable_fd executed in 1.05 secs 2170s ok 7 /mappedfile/gbytes 2170s # End of mappedfile tests 2170s TAP version 14 2170s # random seed: R02S9223f4b3f7f70a2bf8a8b5a150f43cab 2170s 1..5 2170s # Start of sort tests 2170s ok - glib/sort.test 2170s # Running test: glib/slist.test 2170s ok - glib/slist.test 2170s # Running test: glib/union-info.test 2170s ok 1 /sort/basic 2170s ok 2 /sort/zero-elements 2170s ok 3 /sort/stable 2170s ok 4 /sort/big 2170s ok 5 /sort/deprecated 2170s # End of sort tests 2170s TAP version 14 2170s # random seed: R02S4dac7772d0dc2712413c6684c548df12 2170s 1..14 2170s # Start of slist tests 2170s ok 1 /slist/sort 2170s ok 2 /slist/sort-with-data 2170s ok 3 /slist/insert-sorted 2170s ok 4 /slist/insert-sorted-with-data 2170s ok 5 /slist/reverse 2170s ok 6 /slist/nth 2170s ok 7 /slist/remove 2170s ok 8 /slist/remove-all 2170s ok 9 /slist/insert 2170s ok 10 /slist/position 2170s ok 11 /slist/concat 2170s ok 12 /slist/copy 2170s # Start of sort tests 2170s ok 13 /slist/sort/stable 2170s # End of sort tests 2170s # Start of copy tests 2170s ok 14 /slist/copy/deep 2170s # End of copy tests 2170s # End of slist tests 2170s TAP version 14 2170s # random seed: R02Sfe02f4f92c81b1a49e00154f35fe4a4d 2170s 1..2 2170s # Start of union-info tests 2170s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_RZW6J3/union-info/basic/.dirs/home 2170s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_RZW6J3/union-info/basic/.dirs/cache 2170s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_RZW6J3/union-info/basic/.dirs/system-config1:/tmp/test_union-info_RZW6J3/union-info/basic/.dirs/system-config2 2170s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_RZW6J3/union-info/basic/.dirs/config 2170s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_RZW6J3/union-info/basic/.dirs/system-data1:/tmp/test_union-info_RZW6J3/union-info/basic/.dirs/system-data2 2170s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_RZW6J3/union-info/basic/.dirs/data 2170s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_RZW6J3/union-info/basic/.dirs/state 2170s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_RZW6J3/union-info/basic/.dirs/runtime 2170s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2170s # /union-info/basic summary: Test basic properties of GIUnionInfo 2170s ok 1 /union-info/basic 2170s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_RZW6J3/union-info/methods/.dirs/home 2170s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_RZW6J3/union-info/methods/.dirs/cache 2170s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_RZW6J3/union-info/methods/.dirs/system-config1:/tmp/test_union-info_RZW6J3/union-info/methods/.dirs/system-config2 2170s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_RZW6J3/union-info/methods/.dirs/config 2170s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_RZW6J3/union-info/methods/.dirs/system-data1:/tmp/test_union-info_RZW6J3/union-info/methods/.dirs/system-data2 2170s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_RZW6J3/union-info/methods/.dirs/data 2170s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_RZW6J3/union-info/methods/.dirs/state 2170s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_RZW6J3/union-info/methods/.dirs/runtime 2170s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2170s # /union-info/methods summary: Test retrieving methods from GIUnionInfo 2170s ok 2 /union-info/methods 2170s # End of union-info tests 2170s TAP version 14 2170s # random seed: R02Sd57818adad67e9364c417f5bf23b18c4 2170s 1..34 2170s # Start of hash tests 2170s ok 1 /hash/misc 2170s ok 2 /hash/one 2170s ok 3 /hash/honeyman 2170s ok 4 /hash/direct 2170s ok 5 /hash/direct2 2170s ok 6 /hash/int 2170s ok 7 /hash/int64 2170s ok 8 /hash/double 2170s ok 9 /hash/string 2170s ok 10 /hash/set 2170s ok 11 /hash/set-ref 2170s ok 12 /hash/ref 2170s ok 13 /hash/remove-all 2170s ok 14 /hash/recursive-remove-all 2170s ok 15 /hash/find 2170s ok 16 /hash/foreach 2170s ok 17 /hash/foreach-steal 2170s ok 18 /hash/steal-extended 2170s ok 19 /hash/steal-all-keys 2170s ok 20 /hash/steal-all-values 2170s ok 21 /hash/lookup-extended 2170s ok 22 /hash/new-similar 2170s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642944 2170s ok 23 /hash/lookup-null-key 2170s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=650459 2170s ok 24 /hash/destroy-modify 2170s ok 25 /hash/consistency 2170s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=662544 2170s ok 26 /hash/iter-replace 2170s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=692815 2170s ok 27 /hash/set-insert-corruption 2170s ok 28 /hash/set-to-strv 2170s ok 29 /hash/get-keys-as-ptr-array 2170s ok 30 /hash/get-values-as-ptr-array 2170s ok 31 /hash/primes 2170s # Start of int64 tests 2170s # /hash/int64/collisions summary: Check int64 Hash collisions caused by ignoring high word 2170s ok 32 /hash/int64/collisions 2170s # End of int64 tests 2170s # Start of double tests 2170s # /hash/double/collisions summary: Check double Hash collisions caused by int conversion and by numbers larger than 2^64-1 (G_MAXUINT64) 2170s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2771 2170s ok 33 /hash/double/collisions 2170s # End of double tests 2170s # Start of recursive-remove-all tests 2170s # End of recursive-remove-all tests 2170s # Start of steal-extended tests 2170s ok 34 /hash/steal-extended/optional 2170s # End of steal-extended tests 2170s # End of hash tests 2170s TAP version 14 2170s # random seed: R02Sbab0a1c956f46adc5c38c999cbdeb8f2 2170s 1..17 2170s # Start of thread tests 2170s ok 1 /thread/mutex1 2170s ok 2 /thread/mutex2 2170s ok 3 /thread/mutex3 2170s ok 4 /thread/mutex4 2170s ok - glib/union-info.test 2170s # Running test: glib/hash.test 2170s ok - glib/hash.test 2170s # Running test: glib/mutex.test 2173s # Executing: glib/mutex.test 2178s # Executing: glib/mutex.test 2183s # Executing: glib/mutex.test 2188s # Executing: glib/mutex.test 2193s # Executing: glib/mutex.test 2198s # Executing: glib/mutex.test 2199s ok 5 /thread/mutex5 2199s # slow test /thread/mutex5 executed in 29.05 secs 2199s # Start of mutex tests 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2199s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2200s # /thread/mutex/errno summary: Validates that errno is not touched upon return 2200s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 2201s ok 6 /thread/mutex/errno 2201s # slow test /thread/mutex/errno executed in 1.14 secs 2201s # Start of perf tests 2201s # max perf: inf mips 2201s ok 7 /thread/mutex/perf/uncontended 2201s # Start of contended tests 2201s # max perf: inf mips 2201s ok 8 /thread/mutex/perf/contended/1 2201s # max perf: inf mips 2201s ok 9 /thread/mutex/perf/contended/2 2201s # max perf: inf mips 2201s ok 10 /thread/mutex/perf/contended/3 2201s # max perf: 2.500000 mips 2201s ok 11 /thread/mutex/perf/contended/4 2201s # max perf: 6.000000 mips 2201s ok 12 /thread/mutex/perf/contended/5 2201s # max perf: 7.000000 mips 2201s ok 13 /thread/mutex/perf/contended/6 2201s # max perf: inf mips 2201s ok 14 /thread/mutex/perf/contended/7 2201s # max perf: inf mips 2201s ok 15 /thread/mutex/perf/contended/8 2201s # max perf: 10.000000 mips 2201s ok 16 /thread/mutex/perf/contended/9 2201s # max perf: 11.000000 mips 2201s ok 17 /thread/mutex/perf/contended/10 2201s # End of contended tests 2201s # End of perf tests 2201s # End of mutex tests 2201s # End of thread tests 2201s ok - glib/mutex.test 2201s # Running test: glib/resources.test 2201s TAP version 14 2201s # random seed: R02S110b55aa4fd57a2e82b4beaf311d255a 2201s 1..19 2201s # Start of resource tests 2201s ok 1 /resource/file 2201s ok - glib/resources.test 2201s # Running test: glib/cxx-14.test 2201s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 2201s ok 2 /resource/file-path 2201s ok 3 /resource/data 2201s ok 4 /resource/data_unaligned 2201s ok 5 /resource/data-corrupt 2201s # /resource/data-corrupt-compression summary: Test error handling for corrupt GResource files (specifically, corrupt zlib compression). 2201s ok 6 /resource/data-corrupt-compression 2201s ok 7 /resource/data-empty 2201s ok 8 /resource/registered 2201s ok 9 /resource/manual 2201s ok 10 /resource/manual2 2201s ok 11 /resource/automatic 2201s ok 12 /resource/module 2201s ok 13 /resource/binary-linked 2201s ok 14 /resource/64k 2201s GLib-GIO-Message: 10:02:54.741: Adding GResources overlay '/auto_loaded/test1.txt=/usr/libexec/installed-tests/glib/test1.overlay' 2201s GLib-GIO-Message: 10:02:54.742: Opened file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 2201s GLib-GIO-Message: 10:02:54.742: Mapped file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 2201s ok 15 /resource/overlay 2201s ok 16 /resource/digits 2201s ok 17 /resource/has-children 2201s # Start of uri tests 2201s ok 18 /resource/uri/query-info 2201s ok 19 /resource/uri/file 2201s # End of uri tests 2201s # End of resource tests 2201s ok - glib/cxx-14.test 2201s # Running test: glib/gdbus-test-codegen-min-required-2-64.test 2201s TAP version 14 2201s # random seed: R02Sf947c4b59c2c81995b266c53ceeb2e49 2201s 1..2 2201s # Start of gtask tests 2201s # 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. 2201s ok 1 /gtask/name 2201s # Start of name tests 2201s # 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. 2201s ok 2 /gtask/name/macro-wrapper 2201s # End of name tests 2201s # End of gtask tests 2201s TAP version 14 2201s # random seed: R02S604d14bfa584a19e923d4d675a78ca05 2201s 1..8 2201s # Start of gdbus tests 2201s # Start of codegen tests 2201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/annotations/.dirs/home 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/annotations/.dirs/cache 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/annotations/.dirs/system-config2 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/annotations/.dirs/config 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/annotations/.dirs/system-data2 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/annotations/.dirs/data 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/annotations/.dirs/state 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/annotations/.dirs/runtime 2201s ok 1 /gdbus/codegen/annotations 2201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/interface_stability/.dirs/home 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/interface_stability/.dirs/cache 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/interface_stability/.dirs/system-config2 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/interface_stability/.dirs/config 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/interface_stability/.dirs/system-data2 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/interface_stability/.dirs/data 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/interface_stability/.dirs/state 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/interface_stability/.dirs/runtime 2201s ok 2 /gdbus/codegen/interface_stability 2201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/object-manager/.dirs/home 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/object-manager/.dirs/cache 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/object-manager/.dirs/system-config2 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/object-manager/.dirs/config 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/object-manager/.dirs/system-data2 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/object-manager/.dirs/data 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/object-manager/.dirs/state 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/object-manager/.dirs/runtime 2201s ok 3 /gdbus/codegen/object-manager 2201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/property-naming/.dirs/home 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/property-naming/.dirs/cache 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/property-naming/.dirs/system-config2 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/property-naming/.dirs/config 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/property-naming/.dirs/system-data2 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/property-naming/.dirs/data 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/property-naming/.dirs/state 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/property-naming/.dirs/runtime 2201s ok 4 /gdbus/codegen/property-naming 2201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/autocleanups/.dirs/home 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/autocleanups/.dirs/cache 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/autocleanups/.dirs/system-config2 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/autocleanups/.dirs/config 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/autocleanups/.dirs/system-data2 2201s ok - glib/gdbus-test-codegen-min-required-2-64.test 2201s # Running test: glib/g-icon.test 2201s ok - glib/g-icon.test 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/autocleanups/.dirs/data 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/autocleanups/.dirs/state 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/autocleanups/.dirs/runtime 2201s ok 5 /gdbus/codegen/autocleanups 2201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/deprecations/.dirs/home 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/deprecations/.dirs/cache 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/deprecations/.dirs/system-config2 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/deprecations/.dirs/config 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/deprecations/.dirs/system-data2 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/deprecations/.dirs/data 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/deprecations/.dirs/state 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/deprecations/.dirs/runtime 2201s ok 6 /gdbus/codegen/deprecations 2201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/standalone-interface-info/.dirs/home 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/standalone-interface-info/.dirs/cache 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/standalone-interface-info/.dirs/config 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/standalone-interface-info/.dirs/data 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/standalone-interface-info/.dirs/state 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/standalone-interface-info/.dirs/runtime 2201s ok 7 /gdbus/codegen/standalone-interface-info 2201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/unix-fd-list/.dirs/home 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/unix-fd-list/.dirs/cache 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/unix-fd-list/.dirs/system-config2 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/unix-fd-list/.dirs/config 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/unix-fd-list/.dirs/system-data2 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/unix-fd-list/.dirs/data 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/unix-fd-list/.dirs/state 2201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_3A7DK3/gdbus/codegen/unix-fd-list/.dirs/runtime 2201s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 2201s ok 8 /gdbus/codegen/unix-fd-list 2201s # End of codegen tests 2201s # End of gdbus tests 2201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2201s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2201s TAP version 14 2201s # random seed: R02Sd848eda1ba7380b8419e6eb20c592508 2201s 1..6 2201s # Start of icons tests 2201s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 2201s ok 1 /icons/to-string 2201s ok 2 /icons/serialize 2201s ok 3 /icons/themed 2201s ok 4 /icons/emblemed 2201s ok 5 /icons/file 2201s ok 6 /icons/bytes 2201s # End of icons tests 2201s # Running test: glib/gio-tool.py.test 2202s TAP version 13 2202s ok 1 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_folder 2202s # gio: /usr/bin/gio 2202s # tmpdir: /tmp/tmp_ubog7ea 2202s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmp_ubog7ea/folder/desktop.entry'] 2202s # Working Directory: /tmp/tmp_ubog7ea/folder 2202s # Return code: 0 2202s # Output: 2202s # /tmp/tmp_ubog7ea/folder/desktop.entry 2202s # Error: 2202s ok 2 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_parent 2202s # gio: /usr/bin/gio 2202s # tmpdir: /tmp/tmpfo9lyj66 2202s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmpfo9lyj66/folder/desktop.entry'] 2202s # Working Directory: /tmp/tmpfo9lyj66 2202s # Return code: 0 2202s # Output: 2202s # /tmp/tmpfo9lyj66/folder/desktop.entry 2202s # Error: 2202s ok 3 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_sibling 2202s # gio: /usr/bin/gio 2202s # tmpdir: /tmp/tmpw4wrq024 2202s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmpw4wrq024/folder/desktop.entry'] 2202s # Working Directory: /tmp/tmpw4wrq024/sibling 2202s # Return code: 0 2202s # Output: 2202s # /tmp/tmpw4wrq024/folder/desktop.entry 2202s # Error: 2203s ok 4 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_folder 2203s # gio: /usr/bin/gio 2203s # tmpdir: /tmp/tmpozq808wu 2203s # Running: ['/usr/bin/gio', 'launch', 'desktop.entry'] 2203s # Working Directory: /tmp/tmpozq808wu/folder 2203s # Return code: 0 2203s # Output: 2203s # /tmp/tmpozq808wu/folder/desktop.entry 2203s # Error: 2203s ok 5 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_parent 2203s # gio: /usr/bin/gio 2203s # tmpdir: /tmp/tmpjrhyxzeq 2203s # Running: ['/usr/bin/gio', 'launch', 'folder/desktop.entry'] 2203s # Working Directory: /tmp/tmpjrhyxzeq 2203s # Return code: 0 2203s # Output: 2203s # /tmp/tmpjrhyxzeq/folder/desktop.entry 2203s # Error: 2203s # Executing: glib/gio-tool.py.test 2204s ok 6 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_sibling 2204s # gio: /usr/bin/gio 2204s # tmpdir: /tmp/tmpge1v5umx 2204s # Running: ['/usr/bin/gio', 'launch', '../folder/desktop.entry'] 2204s # Working Directory: /tmp/tmpge1v5umx/sibling 2204s # Return code: 0 2204s # Output: 2204s # /tmp/tmpge1v5umx/folder/desktop.entry 2204s # Error: 2204s ok 7 __main__.TestGioTool.test_help 2204s # gio: /usr/bin/gio 2204s # tmpdir: /tmp/tmpr5z2ti0o 2204s # Running: ['/usr/bin/gio', '--help'] 2204s # Return code: 0 2204s # Output: 2204s # Usage: 2204s # gio COMMAND [ARGS…] 2204s # 2204s # Commands: 2204s # help Print help 2204s # version Print version 2204s # cat Concatenate files to standard output 2204s # copy Copy one or more files 2204s # info Show information about locations 2204s # launch Launch an application from a desktop file 2204s # list List the contents of locations 2204s # mime Get or set the handler for a mimetype 2204s # mkdir Create directories 2204s # monitor Monitor files and directories for changes 2204s # mount Mount or unmount the locations 2204s # move Move one or more files 2204s # open Open files with the default application 2204s # rename Rename a file 2204s # remove Delete one or more files 2204s # save Read from standard input and save 2204s # set Set a file attribute 2204s # trash Move files or directories to the trash 2204s # tree Lists the contents of locations in a tree 2204s # 2204s # Use “gio help COMMAND” to get detailed help. 2204s # Error: 2204s # 2204s # Running: ['/usr/bin/gio', 'help'] 2204s # Return code: 0 2204s # Output: 2204s # Usage: 2204s # gio COMMAND [ARGS…] 2204s # 2204s # Commands: 2204s # help Print help 2204s # version Print version 2204s # cat Concatenate files to standard output 2204s # copy Copy one or more files 2204s # info Show information about locations 2204s # launch Launch an application from a desktop file 2204s # list List the contents of locations 2204s # mime Get or set the handler for a mimetype 2204s # mkdir Create directories 2204s # monitor Monitor files and directories for changes 2204s # mount Mount or unmount the locations 2204s # move Move one or more files 2204s # open Open files with the default application 2204s # rename Rename a file 2204s # remove Delete one or more files 2204s # save Read from standard input and save 2204s # set Set a file attribute 2204s # trash Move files or directories to the trash 2204s # tree Lists the contents of locations in a tree 2204s # 2204s # Use “gio help COMMAND” to get detailed help. 2204s # Error: 2204s ok 8 __main__.TestGioTool.test_info_non_default_attributes 2204s # gio: /usr/bin/gio 2204s # tmpdir: /tmp/tmpllyxc_1y 2204s # Running: ['/usr/bin/gio', 'info', '--attributes=standard::content-type', '/tmp/tmpllyxc_1y/tmpdhqb9qsd'] 2204s # Return code: 0 2204s # Output: 2204s # uri: file:///tmp/tmpllyxc_1y/tmpdhqb9qsd 2204s # local path: /tmp/tmpllyxc_1y/tmpdhqb9qsd 2204s # unix mount: /dev/vda1 / ext4 rw,relatime,discard,errors=remount-ro,commit=30 2204s # attributes: 2204s # standard::content-type: application/x-zerosize 2204s # Error: 2204s ok 9 __main__.TestGioTool.test_no_args 2204s # gio: /usr/bin/gio 2204s # tmpdir: /tmp/tmpf7jjq4ci 2204s # Running: ['/usr/bin/gio'] 2204s # Return code: 1 2204s # Output: 2204s # 2204s # Error: 2204s # Usage: 2204s # gio COMMAND [ARGS…] 2204s # 2204s # Commands: 2204s # help Print help 2204s # version Print version 2204s # cat Concatenate files to standard output 2204s # copy Copy one or more files 2204s # info Show information about locations 2204s # launch Launch an application from a desktop file 2204s # list List the contents of locations 2204s # mime Get or set the handler for a mimetype 2204s # mkdir Create directories 2204s # monitor Monitor files and directories for changes 2204s # mount Mount or unmount the locations 2204s # move Move one or more files 2204s # open Open files with the default application 2204s # rename Rename a file 2204s # remove Delete one or more files 2204s # save Read from standard input and save 2204s # set Set a file attribute 2204s # trash Move files or directories to the trash 2204s # tree Lists the contents of locations in a tree 2204s # 2204s # Use “gio help COMMAND” to get detailed help. 2204s 1..9 2204s ok - glib/gio-tool.py.test 2204s # Running test: glib/testfilemonitor.test 2204s ok - glib/testfilemonitor.test 2204s TAP version 14 2204s # random seed: R02S9010af971c0cd354104d2912f138b63f 2204s 1..8 2204s # Start of monitor tests 2204s ok 1 /monitor/atomic-replace # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 2204s ok 2 /monitor/file-changes # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 2204s ok 3 /monitor/dir-monitor # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 2204s ok 4 /monitor/dir-not-existent # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 2204s ok 5 /monitor/cross-dir-moves # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 2204s ok 6 /monitor/finalize-in-callback # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 2204s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 2204s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 2204s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 2204s ok 7 /monitor/root # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 2204s # Start of file tests 2204s ok 8 /monitor/file/hard-links # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 2204s # End of file tests 2204s # End of monitor tests 2204s # Running test: glib/converter-stream.test 2204s TAP version 14 2204s # random seed: R02S0350a4b0b79b63494153a76bc1f2646c 2204s 1..17 2204s # Start of converter tests 2204s ok 1 /converter/basics 2204s # End of converter tests 2204s # Start of converter-input-stream tests 2204s ok 2 /converter-input-stream/expander 2204s ok 3 /converter-input-stream/compressor 2204s # Start of truncation tests 2206s ok 4 /converter-input-stream/truncation/zlib 2206s # slow test /converter-input-stream/truncation/zlib executed in 1.29 secs 2207s ok 5 /converter-input-stream/truncation/gzip 2207s # slow test /converter-input-stream/truncation/gzip executed in 1.07 secs 2208s ok 6 /converter-input-stream/truncation/raw 2208s # slow test /converter-input-stream/truncation/raw executed in 1.48 secs 2208s # End of truncation tests 2208s # Start of charset tests 2208s ok 7 /converter-input-stream/charset/utf8->latin1 2208s ok 8 /converter-input-stream/charset/latin1->utf8 2208s ok 9 /converter-input-stream/charset/fallbacks 2208s # End of charset tests 2208s # End of converter-input-stream tests 2208s # Start of converter-output-stream tests 2208s # Start of roundtrip tests 2208s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 2208s ok 10 /converter-output-stream/roundtrip/zlib-0 2208s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 2208s # Executing: glib/converter-stream.test 2209s ok 11 /converter-output-stream/roundtrip/zlib-9 2209s # slow test /converter-output-stream/roundtrip/zlib-9 executed in 1.19 secs 2209s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 2210s ok 12 /converter-output-stream/roundtrip/gzip-0 2210s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 2211s ok 13 /converter-output-stream/roundtrip/gzip-9 2211s # slow test /converter-output-stream/roundtrip/gzip-9 executed in 1.47 secs 2211s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 2211s ok 14 /converter-output-stream/roundtrip/raw-0 2211s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 2212s ok 15 /converter-output-stream/roundtrip/raw-9 2212s # slow test /converter-output-stream/roundtrip/raw-9 executed in 0.97 secs 2212s # End of roundtrip tests 2212s # End of converter-output-stream tests 2212s # Start of converter-stream tests 2212s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 2212s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa007fa820 and GSocketClientAsyncConnectData 0x2aa007f2f80 2212s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2212s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2212s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa007fbdc0 for GSocketClientAsyncConnectData 0x2aa007f2f80 2212s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2212s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2212s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2212s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 2212s ok 16 /converter-stream/pollable 2212s ok 17 /converter-stream/leftover 2212s # End of converter-stream tests 2212s ok - glib/converter-stream.test 2213s # Running test: glib/bookmarkfile.test 2213s TAP version 14 2213s # random seed: R02S18095ef03a6a6b8a27b9ebe275b70dc9 2213s 1..96 2213s # Start of bookmarks tests 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/load-from-data-dirs/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/load-from-data-dirs/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/load-from-data-dirs/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/load-from-data-dirs/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/load-from-data-dirs/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/load-from-data-dirs/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/load-from-data-dirs/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/load-from-data-dirs/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/load-from-data-dirs/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/load-from-data-dirs/.dirs/runtime 2213s ok 1 /bookmarks/load-from-data-dirs 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/to-file/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/to-file/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/to-file/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/to-file/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/to-file/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/to-file/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/to-file/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/to-file/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/to-file/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/to-file/.dirs/runtime 2213s # Roundtrip from newly created bookmark file /tmp/test_bookmarkfile_5XFLK3/bookmarkfile-test-5LELK3.xbel 2213s # Roundtrip from a valid bookmark file 2213s ok 2 /bookmarks/to-file 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/move-item/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/move-item/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/move-item/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/move-item/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/move-item/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/move-item/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/move-item/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/move-item/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/move-item/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/move-item/.dirs/runtime 2213s ok 3 /bookmarks/move-item 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/corner-cases/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/corner-cases/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/corner-cases/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/corner-cases/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/corner-cases/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/corner-cases/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/corner-cases/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/corner-cases/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/corner-cases/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/corner-cases/.dirs/runtime 2213s ok 4 /bookmarks/corner-cases 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/misc/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/misc/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/misc/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/misc/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/misc/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/misc/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/misc/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/misc/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/misc/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/misc/.dirs/runtime 2213s ok 5 /bookmarks/misc 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/deprecated/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/deprecated/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/deprecated/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/deprecated/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/deprecated/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/deprecated/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/deprecated/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/deprecated/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/deprecated/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/deprecated/.dirs/runtime 2213s ok 6 /bookmarks/deprecated 2213s # Start of parse tests 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-29.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-29.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-29.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-29.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-29.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-29.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-29.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-29.xbel/.dirs/runtime 2213s ok 7 /bookmarks/parse/fail-29.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-01.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-01.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-01.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-01.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-01.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-01.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-01.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-01.xbel/.dirs/runtime 2213s ok 8 /bookmarks/parse/fail-01.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-25.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-25.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-25.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-25.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-25.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-25.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-25.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-25.xbel/.dirs/runtime 2213s ok 9 /bookmarks/parse/fail-25.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-36.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-36.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-36.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-36.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-36.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-36.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-36.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-36.xbel/.dirs/runtime 2213s ok 10 /bookmarks/parse/fail-36.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-30.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-30.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-30.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-30.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-30.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-30.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-30.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-30.xbel/.dirs/runtime 2213s ok 11 /bookmarks/parse/fail-30.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-42.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-42.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-42.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-42.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-42.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-42.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-42.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-42.xbel/.dirs/runtime 2213s ok 12 /bookmarks/parse/fail-42.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-17.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-17.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-17.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-17.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-17.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-17.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-17.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-17.xbel/.dirs/runtime 2213s ok 13 /bookmarks/parse/fail-17.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-41.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-41.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-41.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-41.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-41.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-41.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-41.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-41.xbel/.dirs/runtime 2213s ok 14 /bookmarks/parse/fail-41.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-23.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-23.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-23.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-23.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-23.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-23.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-23.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-23.xbel/.dirs/runtime 2213s ok 15 /bookmarks/parse/fail-23.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-33.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-33.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-33.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-33.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-33.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-33.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-33.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-33.xbel/.dirs/runtime 2213s ok 16 /bookmarks/parse/fail-33.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-02.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-02.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-02.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-02.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-02.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-02.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-02.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-02.xbel/.dirs/runtime 2213s ok 17 /bookmarks/parse/fail-02.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-21.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-21.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-21.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-21.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-21.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-21.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-21.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-21.xbel/.dirs/runtime 2213s ok 18 /bookmarks/parse/fail-21.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-10.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-10.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-10.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-10.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-10.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-10.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-10.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-10.xbel/.dirs/runtime 2213s ok 19 /bookmarks/parse/fail-10.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-32.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-32.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-32.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-32.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-32.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-32.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-32.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-32.xbel/.dirs/runtime 2213s ok 20 /bookmarks/parse/fail-32.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-05.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-05.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-05.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-05.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-05.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-05.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-05.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-05.xbel/.dirs/runtime 2213s ok 21 /bookmarks/parse/fail-05.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-07.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-07.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-07.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-07.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-07.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-07.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-07.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-07.xbel/.dirs/runtime 2213s ok 22 /bookmarks/parse/fail-07.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-13.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-13.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-13.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-13.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-13.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-13.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-13.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-13.xbel/.dirs/runtime 2213s ok 23 /bookmarks/parse/fail-13.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-02.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-02.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-02.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-02.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-02.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-02.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-02.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-02.xbel/.dirs/runtime 2213s ok 24 /bookmarks/parse/valid-02.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-26.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-26.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-26.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-26.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-26.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-26.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-26.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-26.xbel/.dirs/runtime 2213s ok 25 /bookmarks/parse/fail-26.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-04.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-04.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-04.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-04.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-04.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-04.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-04.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-04.xbel/.dirs/runtime 2213s ok 26 /bookmarks/parse/fail-04.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-28.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-28.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-28.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-28.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-28.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-28.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-28.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-28.xbel/.dirs/runtime 2213s ok 27 /bookmarks/parse/fail-28.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-15.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-15.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-15.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-15.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-15.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-15.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-15.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-15.xbel/.dirs/runtime 2213s ok 28 /bookmarks/parse/fail-15.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-01.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-01.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-01.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-01.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-01.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-01.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-01.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-01.xbel/.dirs/runtime 2213s ok 29 /bookmarks/parse/valid-01.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-19.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-19.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-19.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-19.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-19.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-19.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-19.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-19.xbel/.dirs/runtime 2213s ok 30 /bookmarks/parse/fail-19.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-14.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-14.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-14.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-14.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-14.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-14.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-14.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-14.xbel/.dirs/runtime 2213s ok 31 /bookmarks/parse/fail-14.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-24.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-24.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-24.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-24.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-24.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-24.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-24.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-24.xbel/.dirs/runtime 2213s ok 32 /bookmarks/parse/fail-24.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-08.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-08.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-08.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-08.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-08.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-08.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-08.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-08.xbel/.dirs/runtime 2213s ok 33 /bookmarks/parse/fail-08.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-18.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-18.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-18.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-18.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-18.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-18.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-18.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-18.xbel/.dirs/runtime 2213s ok 34 /bookmarks/parse/fail-18.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-22.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-22.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-22.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-22.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-22.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-22.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-22.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-22.xbel/.dirs/runtime 2213s ok 35 /bookmarks/parse/fail-22.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-39.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-39.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-39.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-39.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-39.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-39.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-39.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-39.xbel/.dirs/runtime 2213s ok 36 /bookmarks/parse/fail-39.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-03.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-03.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-03.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-03.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-03.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-03.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-03.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-03.xbel/.dirs/runtime 2213s ok 37 /bookmarks/parse/fail-03.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-16.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-16.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-16.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-16.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-16.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-16.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-16.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-16.xbel/.dirs/runtime 2213s ok 38 /bookmarks/parse/fail-16.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-03.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-03.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-03.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-03.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-03.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-03.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-03.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/valid-03.xbel/.dirs/runtime 2213s ok 39 /bookmarks/parse/valid-03.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-06.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-06.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-06.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-06.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-06.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-06.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-06.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-06.xbel/.dirs/runtime 2213s ok 40 /bookmarks/parse/fail-06.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-35.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-35.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-35.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-35.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-35.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-35.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-35.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-35.xbel/.dirs/runtime 2213s ok 41 /bookmarks/parse/fail-35.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-34.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-34.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-34.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-34.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-34.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-34.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-34.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-34.xbel/.dirs/runtime 2213s ok 42 /bookmarks/parse/fail-34.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-40.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-40.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-40.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-40.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-40.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-40.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-40.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-40.xbel/.dirs/runtime 2213s ok 43 /bookmarks/parse/fail-40.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-11.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-11.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-11.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-11.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-11.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-11.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-11.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-11.xbel/.dirs/runtime 2213s ok 44 /bookmarks/parse/fail-11.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-37.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-37.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-37.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-37.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-37.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-37.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-37.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-37.xbel/.dirs/runtime 2213s ok 45 /bookmarks/parse/fail-37.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-38.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-38.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-38.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-38.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-38.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-38.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-38.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-38.xbel/.dirs/runtime 2213s ok 46 /bookmarks/parse/fail-38.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-31.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-31.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-31.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-31.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-31.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-31.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-31.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-31.xbel/.dirs/runtime 2213s ok 47 /bookmarks/parse/fail-31.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-20.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-20.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-20.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-20.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-20.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-20.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-20.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-20.xbel/.dirs/runtime 2213s ok 48 /bookmarks/parse/fail-20.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-27.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-27.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-27.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-27.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-27.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-27.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-27.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-27.xbel/.dirs/runtime 2213s ok 49 /bookmarks/parse/fail-27.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-12.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-12.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-12.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-12.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-12.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-12.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-12.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-12.xbel/.dirs/runtime 2213s ok 50 /bookmarks/parse/fail-12.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-09.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-09.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-09.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-09.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-09.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-09.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-09.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/parse/fail-09.xbel/.dirs/runtime 2213s ok 51 /bookmarks/parse/fail-09.xbel 2213s # End of parse tests 2213s # Start of copy tests 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-29.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-29.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-29.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-29.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-29.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-29.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-29.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-29.xbel/.dirs/runtime 2213s ok 52 /bookmarks/copy/fail-29.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-01.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-01.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-01.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-01.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-01.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-01.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-01.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-01.xbel/.dirs/runtime 2213s ok 53 /bookmarks/copy/fail-01.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-25.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-25.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-25.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-25.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-25.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-25.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-25.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-25.xbel/.dirs/runtime 2213s ok 54 /bookmarks/copy/fail-25.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-36.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-36.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-36.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-36.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-36.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-36.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-36.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-36.xbel/.dirs/runtime 2213s ok 55 /bookmarks/copy/fail-36.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-30.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-30.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-30.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-30.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-30.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-30.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-30.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-30.xbel/.dirs/runtime 2213s ok 56 /bookmarks/copy/fail-30.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-42.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-42.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-42.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-42.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-42.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-42.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-42.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-42.xbel/.dirs/runtime 2213s ok 57 /bookmarks/copy/fail-42.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-17.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-17.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-17.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-17.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-17.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-17.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-17.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-17.xbel/.dirs/runtime 2213s ok 58 /bookmarks/copy/fail-17.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-41.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-41.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-41.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-41.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-41.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-41.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-41.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-41.xbel/.dirs/runtime 2213s ok 59 /bookmarks/copy/fail-41.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-23.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-23.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-23.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-23.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-23.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-23.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-23.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-23.xbel/.dirs/runtime 2213s ok 60 /bookmarks/copy/fail-23.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-33.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-33.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-33.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-33.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-33.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-33.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-33.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-33.xbel/.dirs/runtime 2213s ok 61 /bookmarks/copy/fail-33.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-02.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-02.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-02.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-02.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-02.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-02.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-02.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-02.xbel/.dirs/runtime 2213s ok 62 /bookmarks/copy/fail-02.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-21.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-21.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-21.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-21.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-21.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-21.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-21.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-21.xbel/.dirs/runtime 2213s ok 63 /bookmarks/copy/fail-21.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-10.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-10.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-10.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-10.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-10.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-10.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-10.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-10.xbel/.dirs/runtime 2213s ok 64 /bookmarks/copy/fail-10.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-32.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-32.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-32.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-32.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-32.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-32.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-32.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-32.xbel/.dirs/runtime 2213s ok 65 /bookmarks/copy/fail-32.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-05.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-05.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-05.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-05.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-05.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-05.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-05.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-05.xbel/.dirs/runtime 2213s ok 66 /bookmarks/copy/fail-05.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-07.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-07.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-07.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-07.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-07.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-07.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-07.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-07.xbel/.dirs/runtime 2213s ok 67 /bookmarks/copy/fail-07.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-13.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-13.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-13.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-13.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-13.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-13.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-13.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-13.xbel/.dirs/runtime 2213s ok 68 /bookmarks/copy/fail-13.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-02.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-02.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-02.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-02.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-02.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-02.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-02.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-02.xbel/.dirs/runtime 2213s ok 69 /bookmarks/copy/valid-02.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-26.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-26.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-26.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-26.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-26.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-26.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-26.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-26.xbel/.dirs/runtime 2213s ok 70 /bookmarks/copy/fail-26.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-04.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-04.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-04.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-04.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-04.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-04.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-04.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-04.xbel/.dirs/runtime 2213s ok 71 /bookmarks/copy/fail-04.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-28.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-28.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-28.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-28.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-28.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-28.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-28.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-28.xbel/.dirs/runtime 2213s ok 72 /bookmarks/copy/fail-28.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-15.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-15.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-15.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-15.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-15.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-15.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-15.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-15.xbel/.dirs/runtime 2213s ok 73 /bookmarks/copy/fail-15.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-01.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-01.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-01.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-01.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-01.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-01.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-01.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-01.xbel/.dirs/runtime 2213s ok 74 /bookmarks/copy/valid-01.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-19.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-19.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-19.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-19.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-19.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-19.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-19.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-19.xbel/.dirs/runtime 2213s ok 75 /bookmarks/copy/fail-19.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-14.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-14.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-14.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-14.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-14.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-14.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-14.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-14.xbel/.dirs/runtime 2213s ok 76 /bookmarks/copy/fail-14.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-24.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-24.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-24.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-24.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-24.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-24.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-24.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-24.xbel/.dirs/runtime 2213s ok 77 /bookmarks/copy/fail-24.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-08.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-08.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-08.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-08.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-08.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-08.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-08.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-08.xbel/.dirs/runtime 2213s ok 78 /bookmarks/copy/fail-08.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-18.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-18.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-18.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-18.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-18.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-18.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-18.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-18.xbel/.dirs/runtime 2213s ok 79 /bookmarks/copy/fail-18.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-22.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-22.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-22.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-22.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-22.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-22.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-22.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-22.xbel/.dirs/runtime 2213s ok 80 /bookmarks/copy/fail-22.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-39.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-39.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-39.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-39.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-39.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-39.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-39.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-39.xbel/.dirs/runtime 2213s ok 81 /bookmarks/copy/fail-39.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-03.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-03.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-03.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-03.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-03.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-03.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-03.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-03.xbel/.dirs/runtime 2213s ok 82 /bookmarks/copy/fail-03.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-16.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-16.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-16.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-16.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-16.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-16.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-16.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-16.xbel/.dirs/runtime 2213s ok 83 /bookmarks/copy/fail-16.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-03.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-03.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-03.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-03.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-03.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-03.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-03.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/valid-03.xbel/.dirs/runtime 2213s ok 84 /bookmarks/copy/valid-03.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-06.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-06.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-06.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-06.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-06.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-06.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-06.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-06.xbel/.dirs/runtime 2213s ok 85 /bookmarks/copy/fail-06.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-35.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-35.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-35.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-35.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-35.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-35.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-35.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-35.xbel/.dirs/runtime 2213s ok 86 /bookmarks/copy/fail-35.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-34.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-34.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-34.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-34.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-34.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-34.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-34.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-34.xbel/.dirs/runtime 2213s ok 87 /bookmarks/copy/fail-34.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-40.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-40.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-40.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-40.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-40.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-40.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-40.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-40.xbel/.dirs/runtime 2213s ok 88 /bookmarks/copy/fail-40.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-11.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-11.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-11.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-11.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-11.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-11.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-11.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-11.xbel/.dirs/runtime 2213s ok 89 /bookmarks/copy/fail-11.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-37.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-37.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-37.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-37.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-37.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-37.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-37.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-37.xbel/.dirs/runtime 2213s ok 90 /bookmarks/copy/fail-37.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-38.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-38.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-38.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-38.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-38.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-38.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-38.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-38.xbel/.dirs/runtime 2213s ok 91 /bookmarks/copy/fail-38.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-31.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-31.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-31.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-31.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-31.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-31.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-31.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-31.xbel/.dirs/runtime 2213s ok 92 /bookmarks/copy/fail-31.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-20.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-20.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-20.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-20.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-20.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-20.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-20.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-20.xbel/.dirs/runtime 2213s ok 93 /bookmarks/copy/fail-20.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-27.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-27.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-27.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-27.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-27.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-27.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-27.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-27.xbel/.dirs/runtime 2213s ok 94 /bookmarks/copy/fail-27.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-12.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-12.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-12.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-12.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-12.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-12.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-12.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-12.xbel/.dirs/runtime 2213s ok 95 /bookmarks/copy/fail-12.xbel 2213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-09.xbel/.dirs/home 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-09.xbel/.dirs/cache 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-09.xbel/.dirs/system-config2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-09.xbel/.dirs/config 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-09.xbel/.dirs/system-data2 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-09.xbel/.dirs/data 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-09.xbel/.dirs/state 2213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_5XFLK3/bookmarks/copy/fail-09.xbel/.dirs/runtime 2213s ok 96 /bookmarks/copy/fail-09.xbel 2213s # End of copy tests 2213s # End of bookmarks tests 2213s ok - glib/bookmarkfile.test 2213s # Running test: glib/gdbus-bz627724.test 2213s # Executing: glib/gdbus-bz627724.test 2213s TAP version 14 2213s # random seed: R02Sa12e4f6d3a1ad559ef3a98c94ed7efa6 2214s 1..1 2214s # Start of gdbus tests 2214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-bz627724_LTANK3/gdbus/bz627724/.dirs/home 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-bz627724_LTANK3/gdbus/bz627724/.dirs/cache 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-bz627724_LTANK3/gdbus/bz627724/.dirs/system-config1:/tmp/test_gdbus-bz627724_LTANK3/gdbus/bz627724/.dirs/system-config2 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-bz627724_LTANK3/gdbus/bz627724/.dirs/config 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-bz627724_LTANK3/gdbus/bz627724/.dirs/system-data1:/tmp/test_gdbus-bz627724_LTANK3/gdbus/bz627724/.dirs/system-data2 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-bz627724_LTANK3/gdbus/bz627724/.dirs/data 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-bz627724_LTANK3/gdbus/bz627724/.dirs/state 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-bz627724_LTANK3/gdbus/bz627724/.dirs/runtime 2214s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2214s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2214s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2214s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2214s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2214s ok 1 /gdbus/bz627724 2214s # End of gdbus tests 2214s TAP version 14 2214s # random seed: R02S7c6160f5f91bbcc1e45030bf1ee90f5d 2214s 1..7 2214s # Start of tree tests 2214s ok 1 /tree/search 2214s ok 2 /tree/remove 2214s ok 3 /tree/destroy 2214s ok 4 /tree/traverse 2214s ok 5 /tree/insert 2214s ok 6 /tree/bounds 2214s ok 7 /tree/remove-all 2214s # End of tree tests 2214s TAP version 14 2214s # random seed: R02S838242bdd3a6459e20a7555bd02964a5 2214s 1..14 2214s # Start of glib tests 2214s # Start of markup tests 2214s # Start of subparser tests 2214s # Start of success tests 2214s ok 1 /glib/markup/subparser/success/0 2214s ok 2 /glib/markup/subparser/success/1 2214s ok 3 /glib/markup/subparser/success/2 2214s ok 4 /glib/markup/subparser/success/3 2214s ok 5 /glib/markup/subparser/success/4 2214s ok 6 /glib/markup/subparser/success/5 2214s ok 7 /glib/markup/subparser/success/6 2214s # End of success tests 2214s # Start of failure tests 2214s ok 8 /glib/markup/subparser/failure/0 2214s ok 9 /glib/markup/subparser/failure/1 2214s ok 10 /glib/markup/subparser/failure/2 2214s ok 11 /glib/markup/subparser/failure/3 2214s ok 12 /glib/markup/subparser/failure/4 2214s ok 13 /glib/markup/subparser/failure/5 2214s ok 14 /glib/markup/subparser/failure/6 2214s # End of failure tests 2214s # End of subparser tests 2214s # End of markup tests 2214s # End of glib tests 2214s ok - glib/gdbus-bz627724.test 2214s # Running test: glib/tree.test 2214s ok - glib/tree.test 2214s # Running test: glib/markup-subparser.test 2214s ok - glib/markup-subparser.test 2214s # Running test: glib/gdbus-server-auth.test 2214s TAP version 14 2214s # random seed: R02S6ebaeccd523b4937db6adb0e8d02257e 2214s 1..9 2214s # Start of gdbus tests 2214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/.dirs/home 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/.dirs/cache 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/.dirs/system-config2 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/.dirs/config 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/.dirs/system-data2 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/.dirs/data 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/.dirs/state 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/.dirs/runtime 2214s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_YH9NK3/gdbus-server-auth-BB9NK3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 2214s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_YH9NK3/gdbus-server-auth-BB9NK3/dbus-FRmXuUWt 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 8633 2214s ok 1 /gdbus/server-auth 2214s # Start of server-auth tests 2214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/abstract/.dirs/home 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/abstract/.dirs/cache 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/abstract/.dirs/system-config2 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/abstract/.dirs/config 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/abstract/.dirs/system-data2 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/abstract/.dirs/data 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/abstract/.dirs/state 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/abstract/.dirs/runtime 2214s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_YH9NK3/gdbus-server-auth-35GOK3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 2214s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_YH9NK3/gdbus-server-auth-35GOK3/dbus-RCNVwB6h 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2214s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2214s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 8633 2214s ok 2 /gdbus/server-auth/abstract 2214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/tcp/.dirs/home 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/tcp/.dirs/cache 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/tcp/.dirs/system-config2 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/tcp/.dirs/config 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/tcp/.dirs/system-data2 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/tcp/.dirs/data 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/tcp/.dirs/state 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/tcp/.dirs/runtime 2214s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 2214s ok 3 /gdbus/server-auth/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 2214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/.dirs/home 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/.dirs/cache 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/.dirs/system-config2 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/.dirs/config 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/.dirs/system-data2 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/.dirs/data 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/.dirs/state 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/.dirs/runtime 2214s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_YH9NK3/gdbus-server-auth-1HTLK3 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 2214s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_YH9NK3/gdbus-server-auth-1HTLK3/dbus-ofxN98Aa 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 8633 2214s ok 4 /gdbus/server-auth/anonymous 2214s # slow test /gdbus/server-auth/anonymous executed in 0.70 secs 2214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/.dirs/home 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/.dirs/cache 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/.dirs/system-config2 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/.dirs/config 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/.dirs/system-data2 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/.dirs/data 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/.dirs/state 2214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/.dirs/runtime 2214s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_YH9NK3/gdbus-server-auth-I5V6J3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 2214s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_YH9NK3/gdbus-server-auth-I5V6J3/dbus-jtSaEDnS 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 8633 2214s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2214s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2214s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2214s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2214s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 8633 2215s ok 5 /gdbus/server-auth/external 2215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/.dirs/home 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/.dirs/cache 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/.dirs/system-config2 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/.dirs/config 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/.dirs/system-data2 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/.dirs/data 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/.dirs/state 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/.dirs/runtime 2215s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_YH9NK3/gdbus-server-auth-BV5OK3 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 2215s ok 6 /gdbus/server-auth/sha1 # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 2215s # Start of anonymous tests 2215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/tcp/.dirs/home 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/tcp/.dirs/cache 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/tcp/.dirs/config 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/tcp/.dirs/data 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/tcp/.dirs/state 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/anonymous/tcp/.dirs/runtime 2215s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 2215s ok 7 /gdbus/server-auth/anonymous/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 2215s # End of anonymous tests 2215s # Start of external tests 2215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/require-same-user/.dirs/home 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/require-same-user/.dirs/cache 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/require-same-user/.dirs/system-config2 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/require-same-user/.dirs/config 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/require-same-user/.dirs/system-data2 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/require-same-user/.dirs/data 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/require-same-user/.dirs/state 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/external/require-same-user/.dirs/runtime 2215s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_YH9NK3/gdbus-server-auth-MD6OK3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 2215s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_YH9NK3/gdbus-server-auth-MD6OK3/dbus-dN2xJ5aF 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 8633 2215s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2215s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2215s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2215s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=8633,uid=1000,gid=1000 2215s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 8633 2215s ok 8 /gdbus/server-auth/external/require-same-user 2215s # End of external tests 2215s # Start of sha1 tests 2215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/tcp/.dirs/home 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/tcp/.dirs/cache 2215s ok - glib/gdbus-server-auth.test 2215s # Running test: glib/testing.test 2215s ok - glib/testing.test 2215s # Running test: glib/autoptr.test 2215s ok - glib/autoptr.test 2215s # Running test: glib/memory-monitor-psi.test 2215s ok - glib/memory-monitor-psi.test 2215s # Running test: glib/signals.test 2215s ok - glib/signals.test 2215s # Running test: glib/macros-c-17.test 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/tcp/.dirs/system-config2 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/tcp/.dirs/config 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/tcp/.dirs/system-data2 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/tcp/.dirs/data 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/tcp/.dirs/state 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_YH9NK3/gdbus/server-auth/sha1/tcp/.dirs/runtime 2215s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 2215s ok 9 /gdbus/server-auth/sha1/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 2215s # End of sha1 tests 2215s # End of server-auth tests 2215s # End of gdbus tests 2215s TAP version 14 2215s # random seed: R02S19c22a3af78063819208d6cf920981df 2215s 1..1 2215s # Start of assert tests 2215s ok 1 /assert/finalize_object 2215s # Start of finalize_object tests 2215s # Start of subprocess tests 2215s # End of subprocess tests 2215s # End of finalize_object tests 2215s # End of assert tests 2215s TAP version 14 2215s # random seed: R02S43d0278e1f0b266d2517a320fc8b127b 2215s 1..6 2215s # Start of autoptr tests 2215s ok 1 /autoptr/autoptr 2215s ok 2 /autoptr/autoptr_steal 2215s ok 3 /autoptr/autolist 2215s ok 4 /autoptr/autoslist 2215s ok 5 /autoptr/autoqueue 2215s ok 6 /autoptr/autoclass 2215s # End of autoptr tests 2215s TAP version 14 2215s # random seed: R02S3bc4ec5c9c620b32fdbbcda38183be77 2215s 1..1 2215s # Start of memory-monitor-psi tests 2215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_memory-monitor-psi_BECMK3/memory-monitor-psi/receive-signal/.dirs/home 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_memory-monitor-psi_BECMK3/memory-monitor-psi/receive-signal/.dirs/cache 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_memory-monitor-psi_BECMK3/memory-monitor-psi/receive-signal/.dirs/system-config1:/tmp/test_memory-monitor-psi_BECMK3/memory-monitor-psi/receive-signal/.dirs/system-config2 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_memory-monitor-psi_BECMK3/memory-monitor-psi/receive-signal/.dirs/config 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_memory-monitor-psi_BECMK3/memory-monitor-psi/receive-signal/.dirs/system-data1:/tmp/test_memory-monitor-psi_BECMK3/memory-monitor-psi/receive-signal/.dirs/system-data2 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_memory-monitor-psi_BECMK3/memory-monitor-psi/receive-signal/.dirs/data 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_memory-monitor-psi_BECMK3/memory-monitor-psi/receive-signal/.dirs/state 2215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_memory-monitor-psi_BECMK3/memory-monitor-psi/receive-signal/.dirs/runtime 2215s # GLib-GIO-DEBUG: Write trigger some 70000 2000000 2215s # GLib-GIO-DEBUG: Write trigger some 100000 2000000 2215s # GLib-GIO-DEBUG: Write trigger full 100000 2000000 2215s # GLib-GIO-DEBUG: Send low memory signal with warning level 0 2215s # GLib-GIO-DEBUG: Send low memory signal with warning level 1 2215s ok 1 /memory-monitor-psi/receive-signal 2215s # End of memory-monitor-psi tests 2215s TAP version 14 2215s # random seed: R02S4e56978ac8be2290b331a4412180398d 2215s 1..31 2215s # Start of gobject tests 2215s # Start of signals tests 2215s ok 1 /gobject/signals/all-types 2215s ok 2 /gobject/signals/variant 2215s ok 3 /gobject/signals/destroy-target-object 2215s ok 4 /gobject/signals/generic-marshaller-1 2215s ok 5 /gobject/signals/generic-marshaller-2 2215s ok 6 /gobject/signals/generic-marshaller-enum-return-signed 2215s ok 7 /gobject/signals/generic-marshaller-enum-return-unsigned 2215s ok 8 /gobject/signals/generic-marshaller-int-return 2215s ok 9 /gobject/signals/generic-marshaller-uint-return 2215s ok 10 /gobject/signals/generic-marshaller-interface-return 2215s ok 11 /gobject/signals/custom-marshaller 2215s ok 12 /gobject/signals/connect 2215s ok 13 /gobject/signals/emission-hook 2215s ok 14 /gobject/signals/emitv 2215s ok 15 /gobject/signals/accumulator 2215s # Signal: accumulator-class-first 2215s # Signal: accumulator-class-last 2215s # Signal: accumulator-class-cleanup 2215s # Signal: accumulator-class-first-last 2215s # Signal: accumulator-class-first-last-cleanup 2215s # Signal: accumulator-class-last-cleanup 2215s ok 16 /gobject/signals/accumulator-class 2215s ok 17 /gobject/signals/introspection 2215s ok 18 /gobject/signals/block-handler 2215s ok 19 /gobject/signals/stop-emission 2215s ok 20 /gobject/signals/invocation-hint 2215s ok 21 /gobject/signals/test-disconnection-wrong-object 2215s ok 22 /gobject/signals/clear-signal-handler 2215s # /gobject/signals/lookup summary: Test that g_signal_lookup() works with a variety of inputs. 2215s ok 23 /gobject/signals/lookup 2215s # /gobject/signals/parse-name summary: Test that g_signal_parse_name() works with a variety of inputs. 2215s ok 24 /gobject/signals/parse-name 2215s ok 25 /gobject/signals/is-valid-name 2215s ok 26 /gobject/signals/weak-ref-disconnect 2215s # Start of lookup tests 2215s # /gobject/signals/lookup/invalid summary: Test that g_signal_lookup() emits a warning if looking up an invalid signal name. 2215s ok 27 /gobject/signals/lookup/invalid 2215s # End of lookup tests 2215s # Start of parse-name tests 2215s # /gobject/signals/parse-name/invalid summary: Test that g_signal_parse_name() ignores a variety of invalid inputs. 2215s # Parser input: 2215s # Parser input: 7zip 2215s # Parser input: invalid:signal 2215s # Parser input: simple-detailed:: 2215s # Parser input: simple-detailed: 2215s # Parser input: : 2215s # Parser input: :: 2215s # Parser input: :valid-detail 2215s # Parser input: ::valid-detail 2215s ok 28 /gobject/signals/parse-name/invalid 2215s # End of parse-name tests 2215s # Start of invalid-name tests 2215s # /gobject/signals/invalid-name/colon summary: Check that g_signal_new() rejects invalid signal names. 2215s ok 29 /gobject/signals/invalid-name/colon 2215s # /gobject/signals/invalid-name/first-char summary: Check that g_signal_new() rejects invalid signal names. 2215s ok 30 /gobject/signals/invalid-name/first-char 2215s # /gobject/signals/invalid-name/empty summary: Check that g_signal_new() rejects invalid signal names. 2215s ok 31 /gobject/signals/invalid-name/empty 2215s # End of invalid-name tests 2215s # End of signals tests 2215s # End of gobject tests 2215s TAP version 14 2215s # random seed: R02S91d799656f2c5131b26a76611cd9bdef 2215s 1..4 2215s # Start of C tests 2215s ok 1 /C/standard-17 2215s # End of C tests 2215s # Start of alignof tests 2215s ok 2 /alignof/fallback 2215s # End of alignof tests 2215s # Start of assert tests 2215s ok 3 /assert/static 2215s # End of assert tests 2215s # Start of struct tests 2215s ok 4 /struct/sizeof_member 2215s # End of struct tests 2215s ok - glib/macros-c-17.test 2215s # Running test: glib/codegen.py.test 2216s TAP version 13 2216s ok 1 __main__.TestCodegen.test_call_flags_and_timeout_method_args 2216s # gdbus-codegen: /usr/bin/gdbus-codegen 2216s # tmpdir: /tmp/tmp98fevqxa 2216s # /tmp/tmp98fevqxa/tmpkryivr8q.xml: 2216s # 2216s # 2216s # 2216s # 2216s # 2216s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp98fevqxa/tmpkryivr8q.xml', '--output', '-', '--header'] 2216s # Return code: 0 2216s # Output: 2216s # /* 2216s # * This file is generated by gdbus-codegen, do not modify it. 2216s # * 2216s # * The license of this code is the same as for the D-Bus interface description 2216s # * it was derived from. Note that it links to GLib, so must comply with the 2216s # * LGPL linking clauses. 2216s # */ 2216s # 2216s # #ifndef __STDOUT__ 2216s # #define __STDOUT__ 2216s # 2216s # #include 2216s # 2216s # G_BEGIN_DECLS 2216s # 2216s # 2216s # /* ------------------------------------------------------------------------ */ 2216s # /* Declarations for org.project.UsefulInterface */ 2216s # 2216s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 2216s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 2216s # 2216s # struct _OrgProjectUsefulInterface; 2216s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 2216s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 2216s # 2216s # struct _OrgProjectUsefulInterfaceIface 2216s # { 2216s # GTypeInterface parent_iface; 2216s # 2216s # gboolean (*handle_useful_method) ( 2216s # OrgProjectUsefulInterface *object, 2216s # GDBusMethodInvocation *invocation); 2216s # 2216s # }; 2216s # 2216s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 2216s # 2216s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 2216s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 2216s # 2216s # 2216s # /* D-Bus method call completion functions: */ 2216s # void org_project_useful_interface_complete_useful_method ( 2216s # OrgProjectUsefulInterface *object, 2216s # GDBusMethodInvocation *invocation); 2216s # 2216s # 2216s # 2216s # /* D-Bus method calls: */ 2216s # void org_project_useful_interface_call_useful_method ( 2216s # OrgProjectUsefulInterface *proxy, 2216s # GCancellable *cancellable, 2216s # GAsyncReadyCallback callback, 2216s # gpointer user_data); 2216s # 2216s # gboolean org_project_useful_interface_call_useful_method_finish ( 2216s # OrgProjectUsefulInterface *proxy, 2216s # GAsyncResult *res, 2216s # GError **error); 2216s # 2216s # gboolean org_project_useful_interface_call_useful_method_sync ( 2216s # OrgProjectUsefulInterface *proxy, 2216s # GCancellable *cancellable, 2216s # GError **error); 2216s # 2216s # 2216s # 2216s # /* ---- */ 2216s # 2216s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 2216s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 2216s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 2216s # 2216s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 2216s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 2216s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 2216s # 2216s # struct _OrgProjectUsefulInterfaceProxy 2216s # { 2216s # /*< private >*/ 2216s # GDBusProxy parent_instance; 2216s # OrgProjectUsefulInterfaceProxyPrivate *priv; 2216s # }; 2216s # 2216s # struct _OrgProjectUsefulInterfaceProxyClass 2216s # { 2216s # GDBusProxyClass parent_class; 2216s # }; 2216s # 2216s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 2216s # 2216s # #if GLIB_CHECK_VERSION(2, 44, 0) 2216s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 2216s # #endif 2216s # 2216s # void org_project_useful_interface_proxy_new ( 2216s # GDBusConnection *connection, 2216s # GDBusProxyFlags flags, 2216s # const gchar *name, 2216s # const gchar *object_path, 2216s # GCancellable *cancellable, 2216s # GAsyncReadyCallback callback, 2216s # gpointer user_data); 2216s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 2216s # GAsyncResult *res, 2216s # GError **error); 2216s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 2216s # GDBusConnection *connection, 2216s # GDBusProxyFlags flags, 2216s # const gchar *name, 2216s # const gchar *object_path, 2216s # GCancellable *cancellable, 2216s # GError **error); 2216s # 2216s # void org_project_useful_interface_proxy_new_for_bus ( 2216s # GBusType bus_type, 2216s # GDBusProxyFlags flags, 2216s # const gchar *name, 2216s # const gchar *object_path, 2216s # GCancellable *cancellable, 2216s # GAsyncReadyCallback callback, 2216s # gpointer user_data); 2216s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 2216s # GAsyncResult *res, 2216s # GError **error); 2216s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 2216s # GBusType bus_type, 2216s # GDBusProxyFlags flags, 2216s # const gchar *name, 2216s # const gchar *object_path, 2216s # GCancellable *cancellable, 2216s # GError **error); 2216s # 2216s # 2216s # /* ---- */ 2216s # 2216s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 2216s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 2216s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 2216s # 2216s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 2216s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 2216s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 2216s # 2216s # struct _OrgProjectUsefulInterfaceSkeleton 2216s # { 2216s # /*< private >*/ 2216s # GDBusInterfaceSkeleton parent_instance; 2216s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 2216s # }; 2216s # 2216s # struct _OrgProjectUsefulInterfaceSkeletonClass 2216s # { 2216s # GDBusInterfaceSkeletonClass parent_class; 2216s # }; 2216s # 2216s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 2216s # 2216s # #if GLIB_CHECK_VERSION(2, 44, 0) 2216s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 2216s # #endif 2216s # 2216s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 2216s # 2216s # 2216s # G_END_DECLS 2216s # 2216s # #endif /* __STDOUT__ */ 2216s # Error: 2216s # 2216s # /tmp/tmp98fevqxa/tmpa6iic_5d.xml: 2216s # 2216s # 2216s # 2216s # 2216s # 2216s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp98fevqxa/tmpa6iic_5d.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 2216s # Return code: 0 2216s # Output: 2216s # /* 2216s # * This file is generated by gdbus-codegen, do not modify it. 2216s # * 2216s # * The license of this code is the same as for the D-Bus interface description 2216s # * it was derived from. Note that it links to GLib, so must comply with the 2216s # * LGPL linking clauses. 2216s # */ 2216s # 2216s # #ifndef __STDOUT__ 2216s # #define __STDOUT__ 2216s # 2216s # #include 2216s # 2216s # G_BEGIN_DECLS 2216s # 2216s # 2216s # /* ------------------------------------------------------------------------ */ 2216s # /* Declarations for org.project.UsefulInterface */ 2216s # 2216s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 2216s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 2216s # 2216s # struct _OrgProjectUsefulInterface; 2216s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 2216s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 2216s # 2216s # struct _OrgProjectUsefulInterfaceIface 2216s # { 2216s # GTypeInterface parent_iface; 2216s # 2216s # gboolean (*handle_useful_method) ( 2216s # OrgProjectUsefulInterface *object, 2216s # GDBusMethodInvocation *invocation); 2216s # 2216s # }; 2216s # 2216s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 2216s # 2216s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 2216s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 2216s # 2216s # 2216s # /* D-Bus method call completion functions: */ 2216s # void org_project_useful_interface_complete_useful_method ( 2216s # OrgProjectUsefulInterface *object, 2216s # GDBusMethodInvocation *invocation); 2216s # 2216s # 2216s # 2216s # /* D-Bus method calls: */ 2216s # void org_project_useful_interface_call_useful_method ( 2216s # OrgProjectUsefulInterface *proxy, 2216s # GCancellable *cancellable, 2216s # GAsyncReadyCallback callback, 2216s # gpointer user_data); 2216s # 2216s # gboolean org_project_useful_interface_call_useful_method_finish ( 2216s # OrgProjectUsefulInterface *proxy, 2216s # GAsyncResult *res, 2216s # GError **error); 2216s # 2216s # gboolean org_project_useful_interface_call_useful_method_sync ( 2216s # OrgProjectUsefulInterface *proxy, 2216s # GCancellable *cancellable, 2216s # GError **error); 2216s # 2216s # 2216s # 2216s # /* ---- */ 2216s # 2216s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 2216s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 2216s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 2216s # 2216s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 2216s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 2216s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 2216s # 2216s # struct _OrgProjectUsefulInterfaceProxy 2216s # { 2216s # /*< private >*/ 2216s # GDBusProxy parent_instance; 2216s # OrgProjectUsefulInterfaceProxyPrivate *priv; 2216s # }; 2216s # 2216s # struct _OrgProjectUsefulInterfaceProxyClass 2216s # { 2216s # GDBusProxyClass parent_class; 2216s # }; 2216s # 2216s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 2216s # 2216s # #if GLIB_CHECK_VERSION(2, 44, 0) 2216s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 2216s # #endif 2216s # 2216s # void org_project_useful_interface_proxy_new ( 2216s # GDBusConnection *connection, 2216s # GDBusProxyFlags flags, 2216s # const gchar *name, 2216s # const gchar *object_path, 2216s # GCancellable *cancellable, 2216s # GAsyncReadyCallback callback, 2216s # gpointer user_data); 2216s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 2216s # GAsyncResult *res, 2216s # GError **error); 2216s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 2216s # GDBusConnection *connection, 2216s # GDBusProxyFlags flags, 2216s # const gchar *name, 2216s # const gchar *object_path, 2216s # GCancellable *cancellable, 2216s # GError **error); 2216s # 2216s # void org_project_useful_interface_proxy_new_for_bus ( 2216s # GBusType bus_type, 2216s # GDBusProxyFlags flags, 2216s # const gchar *name, 2216s # const gchar *object_path, 2216s # GCancellable *cancellable, 2216s # GAsyncReadyCallback callback, 2216s # gpointer user_data); 2216s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 2216s # GAsyncResult *res, 2216s # GError **error); 2216s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 2216s # GBusType bus_type, 2216s # GDBusProxyFlags flags, 2216s # const gchar *name, 2216s # const gchar *object_path, 2216s # GCancellable *cancellable, 2216s # GError **error); 2216s # 2216s # 2216s # /* ---- */ 2216s # 2216s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 2216s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 2216s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 2216s # 2216s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 2216s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 2216s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 2216s # 2216s # struct _OrgProjectUsefulInterfaceSkeleton 2216s # { 2216s # /*< private >*/ 2216s # GDBusInterfaceSkeleton parent_instance; 2216s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 2216s # }; 2216s # 2216s # struct _OrgProjectUsefulInterfaceSkeletonClass 2216s # { 2216s # GDBusInterfaceSkeletonClass parent_class; 2216s # }; 2216s # 2216s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 2216s # 2216s # #if GLIB_CHECK_VERSION(2, 44, 0) 2216s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 2216s # #endif 2216s # 2216s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 2216s # 2216s # 2216s # G_END_DECLS 2216s # 2216s # #endif /* __STDOUT__ */ 2216s # Error: 2216s # 2216s # /tmp/tmp98fevqxa/tmppgz6v6qh.xml: 2216s # 2216s # 2216s # 2216s # 2216s # 2216s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp98fevqxa/tmppgz6v6qh.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 2216s # Return code: 0 2216s # Output: 2216s # /* 2216s # * This file is generated by gdbus-codegen, do not modify it. 2216s # * 2216s # * The license of this code is the same as for the D-Bus interface description 2216s # * it was derived from. Note that it links to GLib, so must comply with the 2216s # * LGPL linking clauses. 2216s # */ 2216s # 2216s # #ifndef __STDOUT__ 2216s # #define __STDOUT__ 2216s # 2216s # #include 2216s # 2216s # G_BEGIN_DECLS 2216s # 2216s # 2216s # /* ------------------------------------------------------------------------ */ 2216s # /* Declarations for org.project.UsefulInterface */ 2216s # 2216s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 2216s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 2216s # 2216s # struct _OrgProjectUsefulInterface; 2216s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 2216s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 2216s # 2216s # struct _OrgProjectUsefulInterfaceIface 2216s # { 2216s # GTypeInterface parent_iface; 2216s # 2216s # gboolean (*handle_useful_method) ( 2216s # OrgProjectUsefulInterface *object, 2216s # GDBusMethodInvocation *invocation); 2216s # 2216s # }; 2216s # 2216s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 2216s # 2216s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 2216s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 2216s # 2216s # 2216s # /* D-Bus method call completion functions: */ 2216s # void org_project_useful_interface_complete_useful_method ( 2216s # OrgProjectUsefulInterface *object, 2216s # GDBusMethodInvocation *invocation); 2216s # 2216s # 2216s # 2216s # /* D-Bus method calls: */ 2216s # void org_project_useful_interface_call_useful_method ( 2216s # OrgProjectUsefulInterface *proxy, 2216s # GDBusCallFlags call_flags, 2216s # gint timeout_msec, 2216s # GCancellable *cancellable, 2216s # GAsyncReadyCallback callback, 2216s # gpointer user_data); 2216s # 2216s # gboolean org_project_useful_interface_call_useful_method_finish ( 2216s # OrgProjectUsefulInterface *proxy, 2216s # GAsyncResult *res, 2216s # GError **error); 2216s # 2216s # gboolean org_project_useful_interface_call_useful_method_sync ( 2216s # OrgProjectUsefulInterface *proxy, 2216s # GDBusCallFlags call_flags, 2216s # gint timeout_msec, 2216s # GCancellable *cancellable, 2216s # GError **error); 2216s # 2216s # 2216s # 2216s # /* ---- */ 2216s # 2216s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 2216s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 2216s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 2216s # 2216s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 2216s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 2216s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 2216s # 2216s # struct _OrgProjectUsefulInterfaceProxy 2216s # { 2216s # /*< private >*/ 2216s # GDBusProxy parent_instance; 2216s # OrgProjectUsefulInterfaceProxyPrivate *priv; 2216s # }; 2216s # 2216s # struct _OrgProjectUsefulInterfaceProxyClass 2216s # { 2216s # GDBusProxyClass parent_class; 2216s # }; 2216s # 2216s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 2216s # 2216s # #if GLIB_CHECK_VERSION(2, 44, 0) 2216s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 2216s # #endif 2216s # 2216s # void org_project_useful_interface_proxy_new ( 2216s # GDBusConnection *connection, 2216s # GDBusProxyFlags flags, 2216s # const gchar *name, 2216s # const gchar *object_path, 2216s # GCancellable *cancellable, 2216s # GAsyncReadyCallback callback, 2216s # gpointer user_data); 2216s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 2216s # GAsyncResult *res, 2216s # GError **error); 2216s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 2216s # GDBusConnection *connection, 2216s # GDBusProxyFlags flags, 2216s # const gchar *name, 2216s # const gchar *object_path, 2216s # GCancellable *cancellable, 2216s # GError **error); 2216s # 2216s # void org_project_useful_interface_proxy_new_for_bus ( 2216s # GBusType bus_type, 2216s # GDBusProxyFlags flags, 2216s # const gchar *name, 2216s # const gchar *object_path, 2216s # GCancellable *cancellable, 2216s # GAsyncReadyCallback callback, 2216s # gpointer user_data); 2216s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 2216s # GAsyncResult *res, 2216s # GError **error); 2216s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 2216s # GBusType bus_type, 2216s # GDBusProxyFlags flags, 2216s # const gchar *name, 2216s # const gchar *object_path, 2216s # GCancellable *cancellable, 2216s # GError **error); 2216s # 2216s # 2216s # /* ---- */ 2216s # 2216s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 2216s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 2216s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 2216s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 2216s # 2216s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 2216s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 2216s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 2216s # 2216s # struct _OrgProjectUsefulInterfaceSkeleton 2216s # { 2216s # /*< private >*/ 2216s # GDBusInterfaceSkeleton parent_instance; 2216s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 2216s # }; 2216s # 2216s # struct _OrgProjectUsefulInterfaceSkeletonClass 2216s # { 2216s # GDBusInterfaceSkeletonClass parent_class; 2216s # }; 2216s # 2216s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 2216s # 2216s # #if GLIB_CHECK_VERSION(2, 44, 0) 2216s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 2216s # #endif 2216s # 2216s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 2216s # 2216s # 2216s # G_END_DECLS 2216s # 2216s # #endif /* __STDOUT__ */ 2216s # Error: 2218s # Executing: glib/codegen.py.test 2221s ok 2 __main__.TestCodegen.test_dbus_types 2221s # gdbus-codegen: /usr/bin/gdbus-codegen 2221s # tmpdir: /tmp/tmpxn2yyp8f 2221s # /tmp/tmpxn2yyp8f/tmpz4dypb42.xml: 2221s # 2221s # 2221s # 2221s # 2221s # 2221s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxn2yyp8f/tmpz4dypb42.xml', '--output', '-', '--body'] 2221s # Return code: 1 2221s # Output: 2221s # 2221s # Error: 2221s # ERROR: Bad signature "{vs}". "v" is not a valid type for dictionary keys at position 1. 2221s # /tmp/tmpxn2yyp8f/tmpez32qpko.xml: 2221s # 2221s # 2221s # 2221s # 2221s # 2221s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxn2yyp8f/tmpez32qpko.xml', '--output', '-', '--body'] 2221s # Return code: 1 2221s # Output: 2221s # 2221s # Error: 2221s # ERROR: Bad signature "(ss(s{{sv}s}))". "{" is not a valid type for dictionary keys at position 6. 2221s # /tmp/tmpxn2yyp8f/tmphf31571r.xml: 2221s # 2221s # 2221s # 2221s # 2221s # 2221s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxn2yyp8f/tmphf31571r.xml', '--output', '-', '--body'] 2221s # Return code: 1 2221s # Output: 2221s # 2221s # Error: 2221s # ERROR: Bad signature "{s". Error parsing string or brackets not closed. 2221s # /tmp/tmpxn2yyp8f/tmpxkzs1mnd.xml: 2221s # 2221s # 2221s # 2221s # 2221s # 2221s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxn2yyp8f/tmpxkzs1mnd.xml', '--output', '-', '--body'] 2221s # Return code: 1 2221s # Output: 2221s # 2221s # Error: 2221s # ERROR: Bad signature "(s{sss})". Dict must end with "}" at position 5. 2221s # /tmp/tmpxn2yyp8f/tmpgc2e1_6z.xml: 2221s # 2221s # 2221s # 2221s # 2221s # 2221s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxn2yyp8f/tmpgc2e1_6z.xml', '--output', '-', '--body'] 2221s # Return code: 1 2221s # Output: 2221s # 2221s # Error: 2221s # ERROR: Bad signature "z". "z" is not a valid D-Bus type. 2221s # /tmp/tmpxn2yyp8f/tmp2o8bw776.xml: 2221s # 2221s # 2221s # 2221s # 2221s # 2221s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxn2yyp8f/tmp2o8bw776.xml', '--output', '-', '--body'] 2221s # Return code: 1 2221s # Output: 2221s # 2221s # Error: 2221s # ERROR: Bad signature "(ssms)". "m" is not a valid D-Bus type. 2221s # /tmp/tmpxn2yyp8f/tmp31yyfee_.xml: 2221s # 2221s # 2221s # 2221s # 2221s # 2221s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxn2yyp8f/tmp31yyfee_.xml', '--output', '-', '--body'] 2221s # Return code: 1 2221s # Output: 2221s # 2221s # Error: 2221s # ERROR: Bad signature "(". Error parsing string or brackets not closed. 2221s # /tmp/tmpxn2yyp8f/tmpl16bdzc2.xml: 2221s # 2221s # 2221s # 2221s # 2221s # 2221s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxn2yyp8f/tmpl16bdzc2.xml', '--output', '-', '--body'] 2221s # Return code: 1 2221s # Output: 2221s # 2221s # Error: 2221s # ERROR: Bad signature "(((ss))". Error parsing string or brackets not closed. 2221s # /tmp/tmpxn2yyp8f/tmpo8j_y4zy.xml: 2221s # 2221s # 2221s # 2221s # 2221s # 2221s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxn2yyp8f/tmpo8j_y4zy.xml', '--output', '-', '--body'] 2221s # Return code: 1 2221s # Output: 2221s # 2221s # Error: 2221s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas". Too much recursion beginning at 129. 2221s # /tmp/tmpxn2yyp8f/tmp2cmvomao.xml: 2221s # 2221s # 2221s # 2221s # 2221s # 2221s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxn2yyp8f/tmp2cmvomao.xml', '--output', '-', '--body'] 2221s # Return code: 1 2221s # Output: 2221s # 2221s # Error: 2221s # ERROR: D-Bus maximum signature length of 255 exceeded. 2221s # /tmp/tmpxn2yyp8f/tmplf6t835i.xml: 2221s # 2221s # 2221s # 2221s # 2221s # 2221s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxn2yyp8f/tmplf6t835i.xml', '--output', '-', '--body'] 2221s # Return code: 1 2221s # Output: 2221s # 2221s # Error: 2221s # ERROR: D-Bus maximum signature length of 255 exceeded. 2221s # /tmp/tmpxn2yyp8f/tmps3hfstdl.xml: 2221s # 2221s # 2221s # 2221s # 2221s # 2221s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxn2yyp8f/tmps3hfstdl.xml', '--output', '-', '--body'] 2221s # Return code: 1 2221s # Output: 2221s # 2221s # Error: 2221s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaa{sv})". Too much recursion beginning at 129. 2221s # /tmp/tmpxn2yyp8f/tmpsm0_rf76.xml: 2221s # 2221s # 2221s # 2221s # 2221s # 2221s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxn2yyp8f/tmpsm0_rf76.xml', '--output', '-', '--body'] 2221s # Return code: 1 2221s # Output: 2221s # 2221s # Error: 2221s # ERROR: D-Bus maximum signature length of 255 exceeded. 2221s # /tmp/tmpxn2yyp8f/tmp17qcafrb.xml: 2221s # 2221s # 2221s # 2221s # 2221s # 2221s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxn2yyp8f/tmp17qcafrb.xml', '--output', '-', '--body'] 2221s # Return code: 0 2221s # Output: 2221s # /* 2221s # * This file is generated by gdbus-codegen, do not modify it. 2221s # * 2221s # * The license of this code is the same as for the D-Bus interface description 2221s # * it was derived from. Note that it links to GLib, so must comply with the 2221s # * LGPL linking clauses. 2221s # */ 2221s # 2221s # #ifdef HAVE_CONFIG_H 2221s # # include "config.h" 2221s # #endif 2221s # 2221s # #include 2221s # #ifdef G_OS_UNIX 2221s # # include 2221s # #endif 2221s # 2221s # #ifdef G_ENABLE_DEBUG 2221s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2221s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2221s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2221s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2221s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2221s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2221s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2221s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2221s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2221s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2221s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2221s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2221s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2221s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2221s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2221s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2221s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2221s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2221s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2221s # #else /* !G_ENABLE_DEBUG */ 2221s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2221s # * Do not access GValues directly in your code. Instead, use the 2221s # * g_value_get_*() functions 2221s # */ 2221s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2221s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2221s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2221s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2221s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2221s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2221s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2221s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2221s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2221s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2221s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2221s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2221s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2221s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2221s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2221s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2221s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2221s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2221s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2221s # #endif /* !G_ENABLE_DEBUG */ 2221s # 2221s # typedef struct 2221s # { 2221s # GDBusArgInfo parent_struct; 2221s # gboolean use_gvariant; 2221s # } _ExtendedGDBusArgInfo; 2221s # 2221s # typedef struct 2221s # { 2221s # GDBusMethodInfo parent_struct; 2221s # const gchar *signal_name; 2221s # gboolean pass_fdlist; 2221s # } _ExtendedGDBusMethodInfo; 2221s # 2221s # typedef struct 2221s # { 2221s # GDBusSignalInfo parent_struct; 2221s # const gchar *signal_name; 2221s # } _ExtendedGDBusSignalInfo; 2221s # 2221s # typedef struct 2221s # { 2221s # GDBusPropertyInfo parent_struct; 2221s # const gchar *hyphen_name; 2221s # guint use_gvariant : 1; 2221s # guint emits_changed_signal : 1; 2221s # } _ExtendedGDBusPropertyInfo; 2221s # 2221s # typedef struct 2221s # { 2221s # GDBusInterfaceInfo parent_struct; 2221s # const gchar *hyphen_name; 2221s # } _ExtendedGDBusInterfaceInfo; 2221s # 2221s # typedef struct 2221s # { 2221s # const _ExtendedGDBusPropertyInfo *info; 2221s # guint prop_id; 2221s # GValue orig_value; /* the value before the change */ 2221s # } ChangedProperty; 2221s # 2221s # static void 2221s # _changed_property_free (ChangedProperty *data) 2221s # { 2221s # g_value_unset (&data->orig_value); 2221s # g_free (data); 2221s # } 2221s # 2221s # static gboolean 2221s # _g_strv_equal0 (gchar **a, gchar **b) 2221s # { 2221s # gboolean ret = FALSE; 2221s # guint n; 2221s # if (a == NULL && b == NULL) 2221s # { 2221s # ret = TRUE; 2221s # goto out; 2221s # } 2221s # if (a == NULL || b == NULL) 2221s # goto out; 2221s # if (g_strv_length (a) != g_strv_length (b)) 2221s # goto out; 2221s # for (n = 0; a[n] != NULL; n++) 2221s # if (g_strcmp0 (a[n], b[n]) != 0) 2221s # goto out; 2221s # ret = TRUE; 2221s # out: 2221s # return ret; 2221s # } 2221s # 2221s # static gboolean 2221s # _g_variant_equal0 (GVariant *a, GVariant *b) 2221s # { 2221s # gboolean ret = FALSE; 2221s # if (a == NULL && b == NULL) 2221s # { 2221s # ret = TRUE; 2221s # goto out; 2221s # } 2221s # if (a == NULL || b == NULL) 2221s # goto out; 2221s # ret = g_variant_equal (a, b); 2221s # out: 2221s # return ret; 2221s # } 2221s # 2221s # G_GNUC_UNUSED static gboolean 2221s # _g_value_equal (const GValue *a, const GValue *b) 2221s # { 2221s # gboolean ret = FALSE; 2221s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2221s # switch (G_VALUE_TYPE (a)) 2221s # { 2221s # case G_TYPE_BOOLEAN: 2221s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2221s # break; 2221s # case G_TYPE_UCHAR: 2221s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2221s # break; 2221s # case G_TYPE_INT: 2221s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2221s # break; 2221s # case G_TYPE_UINT: 2221s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2221s # break; 2221s # case G_TYPE_INT64: 2221s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2221s # break; 2221s # case G_TYPE_UINT64: 2221s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2221s # break; 2221s # case G_TYPE_DOUBLE: 2221s # { 2221s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2221s # gdouble da = g_value_get_double (a); 2221s # gdouble db = g_value_get_double (b); 2221s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2221s # } 2221s # break; 2221s # case G_TYPE_STRING: 2221s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2221s # break; 2221s # case G_TYPE_VARIANT: 2221s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2221s # break; 2221s # default: 2221s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2221s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2221s # else 2221s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2221s # break; 2221s # } 2221s # return ret; 2221s # } 2221s # 2221s # /* ------------------------------------------------------------------------ 2221s # * Code for interface GoodTypes 2221s # * ------------------------------------------------------------------------ 2221s # */ 2221s # 2221s # /** 2221s # * SECTION:GoodTypes 2221s # * @title: GoodTypes 2221s # * @short_description: Generated C code for the GoodTypes D-Bus interface 2221s # * 2221s # * This section contains code for working with the GoodTypes D-Bus interface in C. 2221s # */ 2221s # 2221s # /* ---- Introspection data for GoodTypes ---- */ 2221s # 2221s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 2221s # { 2221s # { 2221s # -1, 2221s # (gchar *) "GoodPropertyType", 2221s # (gchar *) "si{s{b(ybnqiuxtdh)}}{yv}{nv}{dv}", 2221s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 2221s # NULL 2221s # }, 2221s # "good-property-type", 2221s # FALSE, 2221s # TRUE 2221s # }; 2221s # 2221s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 2221s # { 2221s # &_good_types_property_info_good_property_type.parent_struct, 2221s # NULL 2221s # }; 2221s # 2221s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 2221s # { 2221s # { 2221s # -1, 2221s # (gchar *) "GoodTypes", 2221s # NULL, 2221s # NULL, 2221s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 2221s # NULL 2221s # }, 2221s # "good-types", 2221s # }; 2221s # 2221s # 2221s # /** 2221s # * good_types_interface_info: 2221s # * 2221s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 2221s # * 2221s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2221s # */ 2221s # GDBusInterfaceInfo * 2221s # good_types_interface_info (void) 2221s # { 2221s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 2221s # } 2221s # 2221s # /** 2221s # * good_types_override_properties: 2221s # * @klass: The class structure for a #GObject derived class. 2221s # * @property_id_begin: The property id to assign to the first overridden property. 2221s # * 2221s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 2221s # * The properties are overridden in the order they are defined. 2221s # * 2221s # * Returns: The last property id. 2221s # */ 2221s # guint 2221s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 2221s # { 2221s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 2221s # return property_id_begin - 1; 2221s # } 2221s # 2221s # 2221s # 2221s # /** 2221s # * GoodTypes: 2221s # * 2221s # * Abstract interface type for the D-Bus interface GoodTypes. 2221s # */ 2221s # 2221s # /** 2221s # * GoodTypesIface: 2221s # * @parent_iface: The parent interface. 2221s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 2221s # * 2221s # * Virtual table for the D-Bus interface GoodTypes. 2221s # */ 2221s # 2221s # typedef GoodTypesIface GoodTypesInterface; 2221s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 2221s # 2221s # static void 2221s # good_types_default_init (GoodTypesIface *iface) 2221s # { 2221s # /* GObject properties for D-Bus properties: */ 2221s # /** 2221s # * GoodTypes:good-property-type: 2221s # * 2221s # * Represents the D-Bus property "GoodPropertyType". 2221s # * 2221s # * 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. 2221s # */ 2221s # g_object_interface_install_property (iface, 2221s # 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)); 2221s # } 2221s # 2221s # /** 2221s # * good_types_get_good_property_type: (skip) 2221s # * @object: A GoodTypes. 2221s # * 2221s # * Gets the value of the "GoodPropertyType" D-Bus property. 2221s # * 2221s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 2221s # * 2221s # * 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. 2221s # * 2221s # * 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. 2221s # */ 2221s # GVariant * 2221s # good_types_get_good_property_type (GoodTypes *object) 2221s # { 2221s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 2221s # 2221s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 2221s # } 2221s # 2221s # /** 2221s # * good_types_dup_good_property_type: (skip) 2221s # * @object: A GoodTypes. 2221s # * 2221s # * Gets a copy of the "GoodPropertyType" D-Bus property. 2221s # * 2221s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 2221s # * 2221s # * 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(). 2221s # */ 2221s # GVariant * 2221s # good_types_dup_good_property_type (GoodTypes *object) 2221s # { 2221s # GVariant *value; 2221s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 2221s # return value; 2221s # } 2221s # 2221s # /** 2221s # * good_types_set_good_property_type: (skip) 2221s # * @object: A GoodTypes. 2221s # * @value: The value to set. 2221s # * 2221s # * Sets the "GoodPropertyType" D-Bus property to @value. 2221s # * 2221s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 2221s # */ 2221s # void 2221s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 2221s # { 2221s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 2221s # } 2221s # 2221s # /* ------------------------------------------------------------------------ */ 2221s # 2221s # /** 2221s # * GoodTypesProxy: 2221s # * 2221s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 2221s # */ 2221s # 2221s # /** 2221s # * GoodTypesProxyClass: 2221s # * @parent_class: The parent class. 2221s # * 2221s # * Class structure for GoodTypesProxy. 2221s # */ 2221s # 2221s # struct _GoodTypesProxyPrivate 2221s # { 2221s # GData *qdata; 2221s # }; 2221s # 2221s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 2221s # 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2221s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 2221s # G_ADD_PRIVATE (GoodTypesProxy) 2221s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 2221s # 2221s # #else 2221s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 2221s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 2221s # 2221s # #endif 2221s # static void 2221s # good_types_proxy_finalize (GObject *object) 2221s # { 2221s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 2221s # g_datalist_clear (&proxy->priv->qdata); 2221s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_get_property (GObject *object, 2221s # guint prop_id, 2221s # GValue *value, 2221s # GParamSpec *pspec G_GNUC_UNUSED) 2221s # { 2221s # const _ExtendedGDBusPropertyInfo *info; 2221s # GVariant *variant; 2221s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2221s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 2221s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 2221s # if (info->use_gvariant) 2221s # { 2221s # g_value_set_variant (value, variant); 2221s # } 2221s # else 2221s # { 2221s # if (variant != NULL) 2221s # g_dbus_gvariant_to_gvalue (variant, value); 2221s # } 2221s # if (variant != NULL) 2221s # g_variant_unref (variant); 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 2221s # GAsyncResult *res, 2221s # gpointer user_data) 2221s # { 2221s # const _ExtendedGDBusPropertyInfo *info = user_data; 2221s # GError *error; 2221s # GVariant *_ret; 2221s # error = NULL; 2221s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 2221s # if (!_ret) 2221s # { 2221s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 2221s # info->parent_struct.name, 2221s # error->message, g_quark_to_string (error->domain), error->code); 2221s # g_error_free (error); 2221s # } 2221s # else 2221s # { 2221s # g_variant_unref (_ret); 2221s # } 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_set_property (GObject *object, 2221s # guint prop_id, 2221s # const GValue *value, 2221s # GParamSpec *pspec G_GNUC_UNUSED) 2221s # { 2221s # const _ExtendedGDBusPropertyInfo *info; 2221s # GVariant *variant; 2221s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2221s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 2221s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 2221s # g_dbus_proxy_call (G_DBUS_PROXY (object), 2221s # "org.freedesktop.DBus.Properties.Set", 2221s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 2221s # G_DBUS_CALL_FLAGS_NONE, 2221s # -1, 2221s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 2221s # g_variant_unref (variant); 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_g_signal (GDBusProxy *proxy, 2221s # const gchar *sender_name G_GNUC_UNUSED, 2221s # const gchar *signal_name, 2221s # GVariant *parameters) 2221s # { 2221s # _ExtendedGDBusSignalInfo *info; 2221s # GVariantIter iter; 2221s # GVariant *child; 2221s # GValue *paramv; 2221s # gsize num_params; 2221s # gsize n; 2221s # guint signal_id; 2221s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 2221s # if (info == NULL) 2221s # return; 2221s # num_params = g_variant_n_children (parameters); 2221s # paramv = g_new0 (GValue, num_params + 1); 2221s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 2221s # g_value_set_object (¶mv[0], proxy); 2221s # g_variant_iter_init (&iter, parameters); 2221s # n = 1; 2221s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2221s # { 2221s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2221s # if (arg_info->use_gvariant) 2221s # { 2221s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2221s # g_value_set_variant (¶mv[n], child); 2221s # n++; 2221s # } 2221s # else 2221s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2221s # g_variant_unref (child); 2221s # } 2221s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 2221s # g_signal_emitv (paramv, signal_id, 0, NULL); 2221s # for (n = 0; n < num_params + 1; n++) 2221s # g_value_unset (¶mv[n]); 2221s # g_free (paramv); 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 2221s # GVariant *changed_properties, 2221s # const gchar *const *invalidated_properties) 2221s # { 2221s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 2221s # guint n; 2221s # const gchar *key; 2221s # GVariantIter *iter; 2221s # _ExtendedGDBusPropertyInfo *info; 2221s # g_variant_get (changed_properties, "a{sv}", &iter); 2221s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2221s # { 2221s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 2221s # g_datalist_remove_data (&proxy->priv->qdata, key); 2221s # if (info != NULL) 2221s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2221s # } 2221s # g_variant_iter_free (iter); 2221s # for (n = 0; invalidated_properties[n] != NULL; n++) 2221s # { 2221s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 2221s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2221s # if (info != NULL) 2221s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2221s # } 2221s # } 2221s # 2221s # static GVariant * 2221s # good_types_proxy_get_good_property_type (GoodTypes *object) 2221s # { 2221s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 2221s # GVariant *variant; 2221s # GVariant *value = NULL; 2221s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 2221s # value = variant; 2221s # if (variant != NULL) 2221s # g_variant_unref (variant); 2221s # return value; 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_init (GoodTypesProxy *proxy) 2221s # { 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2221s # proxy->priv = good_types_proxy_get_instance_private (proxy); 2221s # #else 2221s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 2221s # #endif 2221s # 2221s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 2221s # { 2221s # GObjectClass *gobject_class; 2221s # GDBusProxyClass *proxy_class; 2221s # 2221s # gobject_class = G_OBJECT_CLASS (klass); 2221s # gobject_class->finalize = good_types_proxy_finalize; 2221s # gobject_class->get_property = good_types_proxy_get_property; 2221s # gobject_class->set_property = good_types_proxy_set_property; 2221s # 2221s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2221s # proxy_class->g_signal = good_types_proxy_g_signal; 2221s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 2221s # 2221s # good_types_override_properties (gobject_class, 1); 2221s # 2221s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2221s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 2221s # #endif 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_iface_init (GoodTypesIface *iface) 2221s # { 2221s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 2221s # } 2221s # 2221s # /** 2221s # * good_types_proxy_new: 2221s # * @connection: A #GDBusConnection. 2221s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2221s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2221s # * @object_path: An object path. 2221s # * @cancellable: (nullable): A #GCancellable or %NULL. 2221s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2221s # * @user_data: User data to pass to @callback. 2221s # * 2221s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 2221s # * 2221s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2221s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 2221s # * 2221s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 2221s # */ 2221s # void 2221s # good_types_proxy_new ( 2221s # GDBusConnection *connection, 2221s # GDBusProxyFlags flags, 2221s # const gchar *name, 2221s # const gchar *object_path, 2221s # GCancellable *cancellable, 2221s # GAsyncReadyCallback callback, 2221s # gpointer user_data) 2221s # { 2221s # 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); 2221s # } 2221s # 2221s # /** 2221s # * good_types_proxy_new_finish: 2221s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 2221s # * @error: Return location for error or %NULL 2221s # * 2221s # * Finishes an operation started with good_types_proxy_new(). 2221s # * 2221s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 2221s # */ 2221s # GoodTypes * 2221s # good_types_proxy_new_finish ( 2221s # GAsyncResult *res, 2221s # GError **error) 2221s # { 2221s # GObject *ret; 2221s # GObject *source_object; 2221s # source_object = g_async_result_get_source_object (res); 2221s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2221s # g_object_unref (source_object); 2221s # if (ret != NULL) 2221s # return GOOD_TYPES (ret); 2221s # else 2221s # return NULL; 2221s # } 2221s # 2221s # /** 2221s # * good_types_proxy_new_sync: 2221s # * @connection: A #GDBusConnection. 2221s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2221s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2221s # * @object_path: An object path. 2221s # * @cancellable: (nullable): A #GCancellable or %NULL. 2221s # * @error: Return location for error or %NULL 2221s # * 2221s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 2221s # * 2221s # * The calling thread is blocked until a reply is received. 2221s # * 2221s # * See good_types_proxy_new() for the asynchronous version of this constructor. 2221s # * 2221s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 2221s # */ 2221s # GoodTypes * 2221s # good_types_proxy_new_sync ( 2221s # GDBusConnection *connection, 2221s # GDBusProxyFlags flags, 2221s # const gchar *name, 2221s # const gchar *object_path, 2221s # GCancellable *cancellable, 2221s # GError **error) 2221s # { 2221s # GInitable *ret; 2221s # 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); 2221s # if (ret != NULL) 2221s # return GOOD_TYPES (ret); 2221s # else 2221s # return NULL; 2221s # } 2221s # 2221s # 2221s # /** 2221s # * good_types_proxy_new_for_bus: 2221s # * @bus_type: A #GBusType. 2221s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2221s # * @name: A bus name (well-known or unique). 2221s # * @object_path: An object path. 2221s # * @cancellable: (nullable): A #GCancellable or %NULL. 2221s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2221s # * @user_data: User data to pass to @callback. 2221s # * 2221s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2221s # * 2221s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2221s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 2221s # * 2221s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2221s # */ 2221s # void 2221s # good_types_proxy_new_for_bus ( 2221s # GBusType bus_type, 2221s # GDBusProxyFlags flags, 2221s # const gchar *name, 2221s # const gchar *object_path, 2221s # GCancellable *cancellable, 2221s # GAsyncReadyCallback callback, 2221s # gpointer user_data) 2221s # { 2221s # 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); 2221s # } 2221s # 2221s # /** 2221s # * good_types_proxy_new_for_bus_finish: 2221s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 2221s # * @error: Return location for error or %NULL 2221s # * 2221s # * Finishes an operation started with good_types_proxy_new_for_bus(). 2221s # * 2221s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 2221s # */ 2221s # GoodTypes * 2221s # good_types_proxy_new_for_bus_finish ( 2221s # GAsyncResult *res, 2221s # GError **error) 2221s # { 2221s # GObject *ret; 2221s # GObject *source_object; 2221s # source_object = g_async_result_get_source_object (res); 2221s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2221s # g_object_unref (source_object); 2221s # if (ret != NULL) 2221s # return GOOD_TYPES (ret); 2221s # else 2221s # return NULL; 2221s # } 2221s # 2221s # /** 2221s # * good_types_proxy_new_for_bus_sync: 2221s # * @bus_type: A #GBusType. 2221s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2221s # * @name: A bus name (well-known or unique). 2221s # * @object_path: An object path. 2221s # * @cancellable: (nullable): A #GCancellable or %NULL. 2221s # * @error: Return location for error or %NULL 2221s # * 2221s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2221s # * 2221s # * The calling thread is blocked until a reply is received. 2221s # * 2221s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 2221s # * 2221s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 2221s # */ 2221s # GoodTypes * 2221s # good_types_proxy_new_for_bus_sync ( 2221s # GBusType bus_type, 2221s # GDBusProxyFlags flags, 2221s # const gchar *name, 2221s # const gchar *object_path, 2221s # GCancellable *cancellable, 2221s # GError **error) 2221s # { 2221s # GInitable *ret; 2221s # 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); 2221s # if (ret != NULL) 2221s # return GOOD_TYPES (ret); 2221s # else 2221s # return NULL; 2221s # } 2221s # 2221s # 2221s # /* ------------------------------------------------------------------------ */ 2221s # 2221s # /** 2221s # * GoodTypesSkeleton: 2221s # * 2221s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 2221s # */ 2221s # 2221s # /** 2221s # * GoodTypesSkeletonClass: 2221s # * @parent_class: The parent class. 2221s # * 2221s # * Class structure for GoodTypesSkeleton. 2221s # */ 2221s # 2221s # struct _GoodTypesSkeletonPrivate 2221s # { 2221s # GValue *properties; 2221s # GList *changed_properties; 2221s # GSource *changed_properties_idle_source; 2221s # GMainContext *context; 2221s # GMutex lock; 2221s # }; 2221s # 2221s # static void 2221s # _good_types_skeleton_handle_method_call ( 2221s # GDBusConnection *connection G_GNUC_UNUSED, 2221s # const gchar *sender G_GNUC_UNUSED, 2221s # const gchar *object_path G_GNUC_UNUSED, 2221s # const gchar *interface_name, 2221s # const gchar *method_name, 2221s # GVariant *parameters, 2221s # GDBusMethodInvocation *invocation, 2221s # gpointer user_data) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 2221s # _ExtendedGDBusMethodInfo *info; 2221s # GVariantIter iter; 2221s # GVariant *child; 2221s # GValue *paramv; 2221s # gsize num_params; 2221s # guint num_extra; 2221s # gsize n; 2221s # guint signal_id; 2221s # GValue return_value = G_VALUE_INIT; 2221s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2221s # g_assert (info != NULL); 2221s # num_params = g_variant_n_children (parameters); 2221s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2221s # n = 0; 2221s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 2221s # g_value_set_object (¶mv[n++], skeleton); 2221s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2221s # g_value_set_object (¶mv[n++], invocation); 2221s # if (info->pass_fdlist) 2221s # { 2221s # #ifdef G_OS_UNIX 2221s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2221s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2221s # #else 2221s # g_assert_not_reached (); 2221s # #endif 2221s # } 2221s # g_variant_iter_init (&iter, parameters); 2221s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2221s # { 2221s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2221s # if (arg_info->use_gvariant) 2221s # { 2221s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2221s # g_value_set_variant (¶mv[n], child); 2221s # n++; 2221s # } 2221s # else 2221s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2221s # g_variant_unref (child); 2221s # } 2221s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 2221s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2221s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2221s # if (!g_value_get_boolean (&return_value)) 2221s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2221s # g_value_unset (&return_value); 2221s # for (n = 0; n < num_params + num_extra; n++) 2221s # g_value_unset (¶mv[n]); 2221s # g_free (paramv); 2221s # } 2221s # 2221s # static GVariant * 2221s # _good_types_skeleton_handle_get_property ( 2221s # GDBusConnection *connection G_GNUC_UNUSED, 2221s # const gchar *sender G_GNUC_UNUSED, 2221s # const gchar *object_path G_GNUC_UNUSED, 2221s # const gchar *interface_name G_GNUC_UNUSED, 2221s # const gchar *property_name, 2221s # GError **error, 2221s # gpointer user_data) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 2221s # GValue value = G_VALUE_INIT; 2221s # GParamSpec *pspec; 2221s # _ExtendedGDBusPropertyInfo *info; 2221s # GVariant *ret; 2221s # ret = NULL; 2221s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 2221s # g_assert (info != NULL); 2221s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2221s # if (pspec == NULL) 2221s # { 2221s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2221s # } 2221s # else 2221s # { 2221s # g_value_init (&value, pspec->value_type); 2221s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2221s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2221s # g_value_unset (&value); 2221s # } 2221s # return ret; 2221s # } 2221s # 2221s # static gboolean 2221s # _good_types_skeleton_handle_set_property ( 2221s # GDBusConnection *connection G_GNUC_UNUSED, 2221s # const gchar *sender G_GNUC_UNUSED, 2221s # const gchar *object_path G_GNUC_UNUSED, 2221s # const gchar *interface_name G_GNUC_UNUSED, 2221s # const gchar *property_name, 2221s # GVariant *variant, 2221s # GError **error, 2221s # gpointer user_data) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 2221s # GValue value = G_VALUE_INIT; 2221s # GParamSpec *pspec; 2221s # _ExtendedGDBusPropertyInfo *info; 2221s # gboolean ret; 2221s # ret = FALSE; 2221s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 2221s # g_assert (info != NULL); 2221s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2221s # if (pspec == NULL) 2221s # { 2221s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2221s # } 2221s # else 2221s # { 2221s # if (info->use_gvariant) 2221s # g_value_set_variant (&value, variant); 2221s # else 2221s # g_dbus_gvariant_to_gvalue (variant, &value); 2221s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2221s # g_value_unset (&value); 2221s # ret = TRUE; 2221s # } 2221s # return ret; 2221s # } 2221s # 2221s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 2221s # { 2221s # _good_types_skeleton_handle_method_call, 2221s # _good_types_skeleton_handle_get_property, 2221s # _good_types_skeleton_handle_set_property, 2221s # {NULL} 2221s # }; 2221s # 2221s # static GDBusInterfaceInfo * 2221s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2221s # { 2221s # return good_types_interface_info (); 2221s # } 2221s # 2221s # static GDBusInterfaceVTable * 2221s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2221s # { 2221s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 2221s # } 2221s # 2221s # static GVariant * 2221s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 2221s # 2221s # GVariantBuilder builder; 2221s # guint n; 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2221s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2221s # #else 2221s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2221s # #endif 2221s # if (_good_types_interface_info.parent_struct.properties == NULL) 2221s # goto out; 2221s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 2221s # { 2221s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 2221s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2221s # { 2221s # GVariant *value; 2221s # 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); 2221s # if (value != NULL) 2221s # { 2221s # g_variant_take_ref (value); 2221s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2221s # g_variant_unref (value); 2221s # } 2221s # } 2221s # } 2221s # out: 2221s # return g_variant_builder_end (&builder); 2221s # } 2221s # 2221s # static gboolean _good_types_emit_changed (gpointer user_data); 2221s # 2221s # static void 2221s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 2221s # gboolean emit_changed = FALSE; 2221s # 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # if (skeleton->priv->changed_properties_idle_source != NULL) 2221s # { 2221s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2221s # skeleton->priv->changed_properties_idle_source = NULL; 2221s # emit_changed = TRUE; 2221s # } 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # 2221s # if (emit_changed) 2221s # _good_types_emit_changed (skeleton); 2221s # } 2221s # 2221s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2221s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2221s # G_ADD_PRIVATE (GoodTypesSkeleton) 2221s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 2221s # 2221s # #else 2221s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2221s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 2221s # 2221s # #endif 2221s # static void 2221s # good_types_skeleton_finalize (GObject *object) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 2221s # guint n; 2221s # for (n = 0; n < 1; n++) 2221s # g_value_unset (&skeleton->priv->properties[n]); 2221s # g_free (skeleton->priv->properties); 2221s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2221s # if (skeleton->priv->changed_properties_idle_source != NULL) 2221s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2221s # g_main_context_unref (skeleton->priv->context); 2221s # g_mutex_clear (&skeleton->priv->lock); 2221s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_get_property (GObject *object, 2221s # guint prop_id, 2221s # GValue *value, 2221s # GParamSpec *pspec G_GNUC_UNUSED) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 2221s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # } 2221s # 2221s # static gboolean 2221s # _good_types_emit_changed (gpointer user_data) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 2221s # GList *l; 2221s # GVariantBuilder builder; 2221s # GVariantBuilder invalidated_builder; 2221s # guint num_changes; 2221s # 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2221s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2221s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 2221s # #else 2221s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 2221s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 2221s # #endif 2221s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 2221s # { 2221s # ChangedProperty *cp = l->data; 2221s # GVariant *variant; 2221s # const GValue *cur_value; 2221s # 2221s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 2221s # if (!_g_value_equal (cur_value, &cp->orig_value)) 2221s # { 2221s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 2221s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 2221s # g_variant_unref (variant); 2221s # num_changes++; 2221s # } 2221s # } 2221s # if (num_changes > 0) 2221s # { 2221s # GList *connections, *ll; 2221s # GVariant *signal_variant; 2221s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 2221s # &builder, &invalidated_builder)); 2221s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2221s # for (ll = connections; ll != NULL; ll = ll->next) 2221s # { 2221s # GDBusConnection *connection = ll->data; 2221s # 2221s # g_dbus_connection_emit_signal (connection, 2221s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 2221s # "org.freedesktop.DBus.Properties", 2221s # "PropertiesChanged", 2221s # signal_variant, 2221s # NULL); 2221s # } 2221s # g_variant_unref (signal_variant); 2221s # g_list_free_full (connections, g_object_unref); 2221s # } 2221s # else 2221s # { 2221s # g_variant_builder_clear (&builder); 2221s # g_variant_builder_clear (&invalidated_builder); 2221s # } 2221s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2221s # skeleton->priv->changed_properties = NULL; 2221s # skeleton->priv->changed_properties_idle_source = NULL; 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # return FALSE; 2221s # } 2221s # 2221s # static void 2221s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 2221s # { 2221s # ChangedProperty *cp; 2221s # GList *l; 2221s # cp = NULL; 2221s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 2221s # { 2221s # ChangedProperty *i_cp = l->data; 2221s # if (i_cp->info == info) 2221s # { 2221s # cp = i_cp; 2221s # break; 2221s # } 2221s # } 2221s # if (cp == NULL) 2221s # { 2221s # cp = g_new0 (ChangedProperty, 1); 2221s # cp->prop_id = prop_id; 2221s # cp->info = info; 2221s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 2221s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 2221s # g_value_copy (orig_value, &cp->orig_value); 2221s # } 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_notify (GObject *object, 2221s # GParamSpec *pspec G_GNUC_UNUSED) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # if (skeleton->priv->changed_properties != NULL && 2221s # skeleton->priv->changed_properties_idle_source == NULL) 2221s # { 2221s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 2221s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 2221s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 2221s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 2221s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 2221s # g_source_unref (skeleton->priv->changed_properties_idle_source); 2221s # } 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_set_property (GObject *object, 2221s # guint prop_id, 2221s # const GValue *value, 2221s # GParamSpec *pspec) 2221s # { 2221s # const _ExtendedGDBusPropertyInfo *info; 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 2221s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2221s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # g_object_freeze_notify (object); 2221s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 2221s # { 2221s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 2221s # info->emits_changed_signal) 2221s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 2221s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 2221s # g_object_notify_by_pspec (object, pspec); 2221s # } 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # g_object_thaw_notify (object); 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 2221s # { 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2221s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 2221s # #else 2221s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 2221s # #endif 2221s # 2221s # g_mutex_init (&skeleton->priv->lock); 2221s # skeleton->priv->context = g_main_context_ref_thread_default (); 2221s # skeleton->priv->properties = g_new0 (GValue, 1); 2221s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 2221s # } 2221s # 2221s # static GVariant * 2221s # good_types_skeleton_get_good_property_type (GoodTypes *object) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 2221s # GVariant *value; 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # return value; 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 2221s # { 2221s # GObjectClass *gobject_class; 2221s # GDBusInterfaceSkeletonClass *skeleton_class; 2221s # 2221s # gobject_class = G_OBJECT_CLASS (klass); 2221s # gobject_class->finalize = good_types_skeleton_finalize; 2221s # gobject_class->get_property = good_types_skeleton_get_property; 2221s # gobject_class->set_property = good_types_skeleton_set_property; 2221s # gobject_class->notify = good_types_skeleton_notify; 2221s # 2221s # 2221s # good_types_override_properties (gobject_class, 1); 2221s # 2221s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2221s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 2221s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 2221s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 2221s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 2221s # 2221s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2221s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 2221s # #endif 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_iface_init (GoodTypesIface *iface) 2221s # { 2221s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 2221s # } 2221s # 2221s # /** 2221s # * good_types_skeleton_new: 2221s # * 2221s # * Creates a skeleton object for the D-Bus interface GoodTypes. 2221s # * 2221s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 2221s # */ 2221s # GoodTypes * 2221s # good_types_skeleton_new (void) 2221s # { 2221s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 2221s # } 2221s # Error: 2221s # 2221s # /tmp/tmpxn2yyp8f/tmpgagjzpm8.xml: 2221s # 2221s # 2221s # 2221s # 2221s # 2221s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxn2yyp8f/tmpgagjzpm8.xml', '--output', '-', '--body'] 2221s # Return code: 0 2221s # Output: 2221s # /* 2221s # * This file is generated by gdbus-codegen, do not modify it. 2221s # * 2221s # * The license of this code is the same as for the D-Bus interface description 2221s # * it was derived from. Note that it links to GLib, so must comply with the 2221s # * LGPL linking clauses. 2221s # */ 2221s # 2221s # #ifdef HAVE_CONFIG_H 2221s # # include "config.h" 2221s # #endif 2221s # 2221s # #include 2221s # #ifdef G_OS_UNIX 2221s # # include 2221s # #endif 2221s # 2221s # #ifdef G_ENABLE_DEBUG 2221s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2221s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2221s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2221s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2221s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2221s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2221s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2221s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2221s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2221s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2221s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2221s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2221s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2221s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2221s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2221s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2221s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2221s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2221s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2221s # #else /* !G_ENABLE_DEBUG */ 2221s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2221s # * Do not access GValues directly in your code. Instead, use the 2221s # * g_value_get_*() functions 2221s # */ 2221s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2221s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2221s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2221s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2221s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2221s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2221s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2221s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2221s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2221s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2221s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2221s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2221s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2221s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2221s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2221s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2221s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2221s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2221s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2221s # #endif /* !G_ENABLE_DEBUG */ 2221s # 2221s # typedef struct 2221s # { 2221s # GDBusArgInfo parent_struct; 2221s # gboolean use_gvariant; 2221s # } _ExtendedGDBusArgInfo; 2221s # 2221s # typedef struct 2221s # { 2221s # GDBusMethodInfo parent_struct; 2221s # const gchar *signal_name; 2221s # gboolean pass_fdlist; 2221s # } _ExtendedGDBusMethodInfo; 2221s # 2221s # typedef struct 2221s # { 2221s # GDBusSignalInfo parent_struct; 2221s # const gchar *signal_name; 2221s # } _ExtendedGDBusSignalInfo; 2221s # 2221s # typedef struct 2221s # { 2221s # GDBusPropertyInfo parent_struct; 2221s # const gchar *hyphen_name; 2221s # guint use_gvariant : 1; 2221s # guint emits_changed_signal : 1; 2221s # } _ExtendedGDBusPropertyInfo; 2221s # 2221s # typedef struct 2221s # { 2221s # GDBusInterfaceInfo parent_struct; 2221s # const gchar *hyphen_name; 2221s # } _ExtendedGDBusInterfaceInfo; 2221s # 2221s # typedef struct 2221s # { 2221s # const _ExtendedGDBusPropertyInfo *info; 2221s # guint prop_id; 2221s # GValue orig_value; /* the value before the change */ 2221s # } ChangedProperty; 2221s # 2221s # static void 2221s # _changed_property_free (ChangedProperty *data) 2221s # { 2221s # g_value_unset (&data->orig_value); 2221s # g_free (data); 2221s # } 2221s # 2221s # static gboolean 2221s # _g_strv_equal0 (gchar **a, gchar **b) 2221s # { 2221s # gboolean ret = FALSE; 2221s # guint n; 2221s # if (a == NULL && b == NULL) 2221s # { 2221s # ret = TRUE; 2221s # goto out; 2221s # } 2221s # if (a == NULL || b == NULL) 2221s # goto out; 2221s # if (g_strv_length (a) != g_strv_length (b)) 2221s # goto out; 2221s # for (n = 0; a[n] != NULL; n++) 2221s # if (g_strcmp0 (a[n], b[n]) != 0) 2221s # goto out; 2221s # ret = TRUE; 2221s # out: 2221s # return ret; 2221s # } 2221s # 2221s # static gboolean 2221s # _g_variant_equal0 (GVariant *a, GVariant *b) 2221s # { 2221s # gboolean ret = FALSE; 2221s # if (a == NULL && b == NULL) 2221s # { 2221s # ret = TRUE; 2221s # goto out; 2221s # } 2221s # if (a == NULL || b == NULL) 2221s # goto out; 2221s # ret = g_variant_equal (a, b); 2221s # out: 2221s # return ret; 2221s # } 2221s # 2221s # G_GNUC_UNUSED static gboolean 2221s # _g_value_equal (const GValue *a, const GValue *b) 2221s # { 2221s # gboolean ret = FALSE; 2221s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2221s # switch (G_VALUE_TYPE (a)) 2221s # { 2221s # case G_TYPE_BOOLEAN: 2221s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2221s # break; 2221s # case G_TYPE_UCHAR: 2221s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2221s # break; 2221s # case G_TYPE_INT: 2221s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2221s # break; 2221s # case G_TYPE_UINT: 2221s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2221s # break; 2221s # case G_TYPE_INT64: 2221s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2221s # break; 2221s # case G_TYPE_UINT64: 2221s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2221s # break; 2221s # case G_TYPE_DOUBLE: 2221s # { 2221s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2221s # gdouble da = g_value_get_double (a); 2221s # gdouble db = g_value_get_double (b); 2221s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2221s # } 2221s # break; 2221s # case G_TYPE_STRING: 2221s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2221s # break; 2221s # case G_TYPE_VARIANT: 2221s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2221s # break; 2221s # default: 2221s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2221s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2221s # else 2221s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2221s # break; 2221s # } 2221s # return ret; 2221s # } 2221s # 2221s # /* ------------------------------------------------------------------------ 2221s # * Code for interface GoodTypes 2221s # * ------------------------------------------------------------------------ 2221s # */ 2221s # 2221s # /** 2221s # * SECTION:GoodTypes 2221s # * @title: GoodTypes 2221s # * @short_description: Generated C code for the GoodTypes D-Bus interface 2221s # * 2221s # * This section contains code for working with the GoodTypes D-Bus interface in C. 2221s # */ 2221s # 2221s # /* ---- Introspection data for GoodTypes ---- */ 2221s # 2221s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 2221s # { 2221s # { 2221s # -1, 2221s # (gchar *) "GoodPropertyType", 2221s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas", 2221s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 2221s # NULL 2221s # }, 2221s # "good-property-type", 2221s # FALSE, 2221s # TRUE 2221s # }; 2221s # 2221s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 2221s # { 2221s # &_good_types_property_info_good_property_type.parent_struct, 2221s # NULL 2221s # }; 2221s # 2221s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 2221s # { 2221s # { 2221s # -1, 2221s # (gchar *) "GoodTypes", 2221s # NULL, 2221s # NULL, 2221s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 2221s # NULL 2221s # }, 2221s # "good-types", 2221s # }; 2221s # 2221s # 2221s # /** 2221s # * good_types_interface_info: 2221s # * 2221s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 2221s # * 2221s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2221s # */ 2221s # GDBusInterfaceInfo * 2221s # good_types_interface_info (void) 2221s # { 2221s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 2221s # } 2221s # 2221s # /** 2221s # * good_types_override_properties: 2221s # * @klass: The class structure for a #GObject derived class. 2221s # * @property_id_begin: The property id to assign to the first overridden property. 2221s # * 2221s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 2221s # * The properties are overridden in the order they are defined. 2221s # * 2221s # * Returns: The last property id. 2221s # */ 2221s # guint 2221s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 2221s # { 2221s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 2221s # return property_id_begin - 1; 2221s # } 2221s # 2221s # 2221s # 2221s # /** 2221s # * GoodTypes: 2221s # * 2221s # * Abstract interface type for the D-Bus interface GoodTypes. 2221s # */ 2221s # 2221s # /** 2221s # * GoodTypesIface: 2221s # * @parent_iface: The parent interface. 2221s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 2221s # * 2221s # * Virtual table for the D-Bus interface GoodTypes. 2221s # */ 2221s # 2221s # typedef GoodTypesIface GoodTypesInterface; 2221s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 2221s # 2221s # static void 2221s # good_types_default_init (GoodTypesIface *iface) 2221s # { 2221s # /* GObject properties for D-Bus properties: */ 2221s # /** 2221s # * GoodTypes:good-property-type: 2221s # * 2221s # * Represents the D-Bus property "GoodPropertyType". 2221s # * 2221s # * 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. 2221s # */ 2221s # g_object_interface_install_property (iface, 2221s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 2221s # } 2221s # 2221s # /** 2221s # * good_types_get_good_property_type: (skip) 2221s # * @object: A GoodTypes. 2221s # * 2221s # * Gets the value of the "GoodPropertyType" D-Bus property. 2221s # * 2221s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 2221s # * 2221s # * 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. 2221s # * 2221s # * 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. 2221s # */ 2221s # GVariant * 2221s # good_types_get_good_property_type (GoodTypes *object) 2221s # { 2221s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 2221s # 2221s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 2221s # } 2221s # 2221s # /** 2221s # * good_types_dup_good_property_type: (skip) 2221s # * @object: A GoodTypes. 2221s # * 2221s # * Gets a copy of the "GoodPropertyType" D-Bus property. 2221s # * 2221s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 2221s # * 2221s # * 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(). 2221s # */ 2221s # GVariant * 2221s # good_types_dup_good_property_type (GoodTypes *object) 2221s # { 2221s # GVariant *value; 2221s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 2221s # return value; 2221s # } 2221s # 2221s # /** 2221s # * good_types_set_good_property_type: (skip) 2221s # * @object: A GoodTypes. 2221s # * @value: The value to set. 2221s # * 2221s # * Sets the "GoodPropertyType" D-Bus property to @value. 2221s # * 2221s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 2221s # */ 2221s # void 2221s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 2221s # { 2221s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 2221s # } 2221s # 2221s # /* ------------------------------------------------------------------------ */ 2221s # 2221s # /** 2221s # * GoodTypesProxy: 2221s # * 2221s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 2221s # */ 2221s # 2221s # /** 2221s # * GoodTypesProxyClass: 2221s # * @parent_class: The parent class. 2221s # * 2221s # * Class structure for GoodTypesProxy. 2221s # */ 2221s # 2221s # struct _GoodTypesProxyPrivate 2221s # { 2221s # GData *qdata; 2221s # }; 2221s # 2221s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 2221s # 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2221s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 2221s # G_ADD_PRIVATE (GoodTypesProxy) 2221s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 2221s # 2221s # #else 2221s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 2221s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 2221s # 2221s # #endif 2221s # static void 2221s # good_types_proxy_finalize (GObject *object) 2221s # { 2221s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 2221s # g_datalist_clear (&proxy->priv->qdata); 2221s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_get_property (GObject *object, 2221s # guint prop_id, 2221s # GValue *value, 2221s # GParamSpec *pspec G_GNUC_UNUSED) 2221s # { 2221s # const _ExtendedGDBusPropertyInfo *info; 2221s # GVariant *variant; 2221s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2221s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 2221s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 2221s # if (info->use_gvariant) 2221s # { 2221s # g_value_set_variant (value, variant); 2221s # } 2221s # else 2221s # { 2221s # if (variant != NULL) 2221s # g_dbus_gvariant_to_gvalue (variant, value); 2221s # } 2221s # if (variant != NULL) 2221s # g_variant_unref (variant); 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 2221s # GAsyncResult *res, 2221s # gpointer user_data) 2221s # { 2221s # const _ExtendedGDBusPropertyInfo *info = user_data; 2221s # GError *error; 2221s # GVariant *_ret; 2221s # error = NULL; 2221s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 2221s # if (!_ret) 2221s # { 2221s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 2221s # info->parent_struct.name, 2221s # error->message, g_quark_to_string (error->domain), error->code); 2221s # g_error_free (error); 2221s # } 2221s # else 2221s # { 2221s # g_variant_unref (_ret); 2221s # } 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_set_property (GObject *object, 2221s # guint prop_id, 2221s # const GValue *value, 2221s # GParamSpec *pspec G_GNUC_UNUSED) 2221s # { 2221s # const _ExtendedGDBusPropertyInfo *info; 2221s # GVariant *variant; 2221s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2221s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 2221s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 2221s # g_dbus_proxy_call (G_DBUS_PROXY (object), 2221s # "org.freedesktop.DBus.Properties.Set", 2221s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 2221s # G_DBUS_CALL_FLAGS_NONE, 2221s # -1, 2221s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 2221s # g_variant_unref (variant); 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_g_signal (GDBusProxy *proxy, 2221s # const gchar *sender_name G_GNUC_UNUSED, 2221s # const gchar *signal_name, 2221s # GVariant *parameters) 2221s # { 2221s # _ExtendedGDBusSignalInfo *info; 2221s # GVariantIter iter; 2221s # GVariant *child; 2221s # GValue *paramv; 2221s # gsize num_params; 2221s # gsize n; 2221s # guint signal_id; 2221s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 2221s # if (info == NULL) 2221s # return; 2221s # num_params = g_variant_n_children (parameters); 2221s # paramv = g_new0 (GValue, num_params + 1); 2221s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 2221s # g_value_set_object (¶mv[0], proxy); 2221s # g_variant_iter_init (&iter, parameters); 2221s # n = 1; 2221s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2221s # { 2221s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2221s # if (arg_info->use_gvariant) 2221s # { 2221s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2221s # g_value_set_variant (¶mv[n], child); 2221s # n++; 2221s # } 2221s # else 2221s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2221s # g_variant_unref (child); 2221s # } 2221s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 2221s # g_signal_emitv (paramv, signal_id, 0, NULL); 2221s # for (n = 0; n < num_params + 1; n++) 2221s # g_value_unset (¶mv[n]); 2221s # g_free (paramv); 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 2221s # GVariant *changed_properties, 2221s # const gchar *const *invalidated_properties) 2221s # { 2221s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 2221s # guint n; 2221s # const gchar *key; 2221s # GVariantIter *iter; 2221s # _ExtendedGDBusPropertyInfo *info; 2221s # g_variant_get (changed_properties, "a{sv}", &iter); 2221s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2221s # { 2221s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 2221s # g_datalist_remove_data (&proxy->priv->qdata, key); 2221s # if (info != NULL) 2221s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2221s # } 2221s # g_variant_iter_free (iter); 2221s # for (n = 0; invalidated_properties[n] != NULL; n++) 2221s # { 2221s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 2221s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2221s # if (info != NULL) 2221s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2221s # } 2221s # } 2221s # 2221s # static GVariant * 2221s # good_types_proxy_get_good_property_type (GoodTypes *object) 2221s # { 2221s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 2221s # GVariant *variant; 2221s # GVariant *value = NULL; 2221s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 2221s # value = variant; 2221s # if (variant != NULL) 2221s # g_variant_unref (variant); 2221s # return value; 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_init (GoodTypesProxy *proxy) 2221s # { 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2221s # proxy->priv = good_types_proxy_get_instance_private (proxy); 2221s # #else 2221s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 2221s # #endif 2221s # 2221s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 2221s # { 2221s # GObjectClass *gobject_class; 2221s # GDBusProxyClass *proxy_class; 2221s # 2221s # gobject_class = G_OBJECT_CLASS (klass); 2221s # gobject_class->finalize = good_types_proxy_finalize; 2221s # gobject_class->get_property = good_types_proxy_get_property; 2221s # gobject_class->set_property = good_types_proxy_set_property; 2221s # 2221s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2221s # proxy_class->g_signal = good_types_proxy_g_signal; 2221s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 2221s # 2221s # good_types_override_properties (gobject_class, 1); 2221s # 2221s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2221s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 2221s # #endif 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_iface_init (GoodTypesIface *iface) 2221s # { 2221s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 2221s # } 2221s # 2221s # /** 2221s # * good_types_proxy_new: 2221s # * @connection: A #GDBusConnection. 2221s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2221s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2221s # * @object_path: An object path. 2221s # * @cancellable: (nullable): A #GCancellable or %NULL. 2221s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2221s # * @user_data: User data to pass to @callback. 2221s # * 2221s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 2221s # * 2221s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2221s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 2221s # * 2221s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 2221s # */ 2221s # void 2221s # good_types_proxy_new ( 2221s # GDBusConnection *connection, 2221s # GDBusProxyFlags flags, 2221s # const gchar *name, 2221s # const gchar *object_path, 2221s # GCancellable *cancellable, 2221s # GAsyncReadyCallback callback, 2221s # gpointer user_data) 2221s # { 2221s # 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); 2221s # } 2221s # 2221s # /** 2221s # * good_types_proxy_new_finish: 2221s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 2221s # * @error: Return location for error or %NULL 2221s # * 2221s # * Finishes an operation started with good_types_proxy_new(). 2221s # * 2221s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 2221s # */ 2221s # GoodTypes * 2221s # good_types_proxy_new_finish ( 2221s # GAsyncResult *res, 2221s # GError **error) 2221s # { 2221s # GObject *ret; 2221s # GObject *source_object; 2221s # source_object = g_async_result_get_source_object (res); 2221s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2221s # g_object_unref (source_object); 2221s # if (ret != NULL) 2221s # return GOOD_TYPES (ret); 2221s # else 2221s # return NULL; 2221s # } 2221s # 2221s # /** 2221s # * good_types_proxy_new_sync: 2221s # * @connection: A #GDBusConnection. 2221s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2221s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2221s # * @object_path: An object path. 2221s # * @cancellable: (nullable): A #GCancellable or %NULL. 2221s # * @error: Return location for error or %NULL 2221s # * 2221s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 2221s # * 2221s # * The calling thread is blocked until a reply is received. 2221s # * 2221s # * See good_types_proxy_new() for the asynchronous version of this constructor. 2221s # * 2221s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 2221s # */ 2221s # GoodTypes * 2221s # good_types_proxy_new_sync ( 2221s # GDBusConnection *connection, 2221s # GDBusProxyFlags flags, 2221s # const gchar *name, 2221s # const gchar *object_path, 2221s # GCancellable *cancellable, 2221s # GError **error) 2221s # { 2221s # GInitable *ret; 2221s # 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); 2221s # if (ret != NULL) 2221s # return GOOD_TYPES (ret); 2221s # else 2221s # return NULL; 2221s # } 2221s # 2221s # 2221s # /** 2221s # * good_types_proxy_new_for_bus: 2221s # * @bus_type: A #GBusType. 2221s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2221s # * @name: A bus name (well-known or unique). 2221s # * @object_path: An object path. 2221s # * @cancellable: (nullable): A #GCancellable or %NULL. 2221s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2221s # * @user_data: User data to pass to @callback. 2221s # * 2221s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2221s # * 2221s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2221s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 2221s # * 2221s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2221s # */ 2221s # void 2221s # good_types_proxy_new_for_bus ( 2221s # GBusType bus_type, 2221s # GDBusProxyFlags flags, 2221s # const gchar *name, 2221s # const gchar *object_path, 2221s # GCancellable *cancellable, 2221s # GAsyncReadyCallback callback, 2221s # gpointer user_data) 2221s # { 2221s # 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); 2221s # } 2221s # 2221s # /** 2221s # * good_types_proxy_new_for_bus_finish: 2221s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 2221s # * @error: Return location for error or %NULL 2221s # * 2221s # * Finishes an operation started with good_types_proxy_new_for_bus(). 2221s # * 2221s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 2221s # */ 2221s # GoodTypes * 2221s # good_types_proxy_new_for_bus_finish ( 2221s # GAsyncResult *res, 2221s # GError **error) 2221s # { 2221s # GObject *ret; 2221s # GObject *source_object; 2221s # source_object = g_async_result_get_source_object (res); 2221s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2221s # g_object_unref (source_object); 2221s # if (ret != NULL) 2221s # return GOOD_TYPES (ret); 2221s # else 2221s # return NULL; 2221s # } 2221s # 2221s # /** 2221s # * good_types_proxy_new_for_bus_sync: 2221s # * @bus_type: A #GBusType. 2221s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2221s # * @name: A bus name (well-known or unique). 2221s # * @object_path: An object path. 2221s # * @cancellable: (nullable): A #GCancellable or %NULL. 2221s # * @error: Return location for error or %NULL 2221s # * 2221s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2221s # * 2221s # * The calling thread is blocked until a reply is received. 2221s # * 2221s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 2221s # * 2221s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 2221s # */ 2221s # GoodTypes * 2221s # good_types_proxy_new_for_bus_sync ( 2221s # GBusType bus_type, 2221s # GDBusProxyFlags flags, 2221s # const gchar *name, 2221s # const gchar *object_path, 2221s # GCancellable *cancellable, 2221s # GError **error) 2221s # { 2221s # GInitable *ret; 2221s # 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); 2221s # if (ret != NULL) 2221s # return GOOD_TYPES (ret); 2221s # else 2221s # return NULL; 2221s # } 2221s # 2221s # 2221s # /* ------------------------------------------------------------------------ */ 2221s # 2221s # /** 2221s # * GoodTypesSkeleton: 2221s # * 2221s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 2221s # */ 2221s # 2221s # /** 2221s # * GoodTypesSkeletonClass: 2221s # * @parent_class: The parent class. 2221s # * 2221s # * Class structure for GoodTypesSkeleton. 2221s # */ 2221s # 2221s # struct _GoodTypesSkeletonPrivate 2221s # { 2221s # GValue *properties; 2221s # GList *changed_properties; 2221s # GSource *changed_properties_idle_source; 2221s # GMainContext *context; 2221s # GMutex lock; 2221s # }; 2221s # 2221s # static void 2221s # _good_types_skeleton_handle_method_call ( 2221s # GDBusConnection *connection G_GNUC_UNUSED, 2221s # const gchar *sender G_GNUC_UNUSED, 2221s # const gchar *object_path G_GNUC_UNUSED, 2221s # const gchar *interface_name, 2221s # const gchar *method_name, 2221s # GVariant *parameters, 2221s # GDBusMethodInvocation *invocation, 2221s # gpointer user_data) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 2221s # _ExtendedGDBusMethodInfo *info; 2221s # GVariantIter iter; 2221s # GVariant *child; 2221s # GValue *paramv; 2221s # gsize num_params; 2221s # guint num_extra; 2221s # gsize n; 2221s # guint signal_id; 2221s # GValue return_value = G_VALUE_INIT; 2221s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2221s # g_assert (info != NULL); 2221s # num_params = g_variant_n_children (parameters); 2221s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2221s # n = 0; 2221s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 2221s # g_value_set_object (¶mv[n++], skeleton); 2221s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2221s # g_value_set_object (¶mv[n++], invocation); 2221s # if (info->pass_fdlist) 2221s # { 2221s # #ifdef G_OS_UNIX 2221s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2221s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2221s # #else 2221s # g_assert_not_reached (); 2221s # #endif 2221s # } 2221s # g_variant_iter_init (&iter, parameters); 2221s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2221s # { 2221s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2221s # if (arg_info->use_gvariant) 2221s # { 2221s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2221s # g_value_set_variant (¶mv[n], child); 2221s # n++; 2221s # } 2221s # else 2221s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2221s # g_variant_unref (child); 2221s # } 2221s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 2221s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2221s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2221s # if (!g_value_get_boolean (&return_value)) 2221s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2221s # g_value_unset (&return_value); 2221s # for (n = 0; n < num_params + num_extra; n++) 2221s # g_value_unset (¶mv[n]); 2221s # g_free (paramv); 2221s # } 2221s # 2221s # static GVariant * 2221s # _good_types_skeleton_handle_get_property ( 2221s # GDBusConnection *connection G_GNUC_UNUSED, 2221s # const gchar *sender G_GNUC_UNUSED, 2221s # const gchar *object_path G_GNUC_UNUSED, 2221s # const gchar *interface_name G_GNUC_UNUSED, 2221s # const gchar *property_name, 2221s # GError **error, 2221s # gpointer user_data) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 2221s # GValue value = G_VALUE_INIT; 2221s # GParamSpec *pspec; 2221s # _ExtendedGDBusPropertyInfo *info; 2221s # GVariant *ret; 2221s # ret = NULL; 2221s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 2221s # g_assert (info != NULL); 2221s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2221s # if (pspec == NULL) 2221s # { 2221s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2221s # } 2221s # else 2221s # { 2221s # g_value_init (&value, pspec->value_type); 2221s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2221s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2221s # g_value_unset (&value); 2221s # } 2221s # return ret; 2221s # } 2221s # 2221s # static gboolean 2221s # _good_types_skeleton_handle_set_property ( 2221s # GDBusConnection *connection G_GNUC_UNUSED, 2221s # const gchar *sender G_GNUC_UNUSED, 2221s # const gchar *object_path G_GNUC_UNUSED, 2221s # const gchar *interface_name G_GNUC_UNUSED, 2221s # const gchar *property_name, 2221s # GVariant *variant, 2221s # GError **error, 2221s # gpointer user_data) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 2221s # GValue value = G_VALUE_INIT; 2221s # GParamSpec *pspec; 2221s # _ExtendedGDBusPropertyInfo *info; 2221s # gboolean ret; 2221s # ret = FALSE; 2221s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 2221s # g_assert (info != NULL); 2221s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2221s # if (pspec == NULL) 2221s # { 2221s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2221s # } 2221s # else 2221s # { 2221s # if (info->use_gvariant) 2221s # g_value_set_variant (&value, variant); 2221s # else 2221s # g_dbus_gvariant_to_gvalue (variant, &value); 2221s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2221s # g_value_unset (&value); 2221s # ret = TRUE; 2221s # } 2221s # return ret; 2221s # } 2221s # 2221s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 2221s # { 2221s # _good_types_skeleton_handle_method_call, 2221s # _good_types_skeleton_handle_get_property, 2221s # _good_types_skeleton_handle_set_property, 2221s # {NULL} 2221s # }; 2221s # 2221s # static GDBusInterfaceInfo * 2221s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2221s # { 2221s # return good_types_interface_info (); 2221s # } 2221s # 2221s # static GDBusInterfaceVTable * 2221s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2221s # { 2221s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 2221s # } 2221s # 2221s # static GVariant * 2221s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 2221s # 2221s # GVariantBuilder builder; 2221s # guint n; 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2221s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2221s # #else 2221s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2221s # #endif 2221s # if (_good_types_interface_info.parent_struct.properties == NULL) 2221s # goto out; 2221s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 2221s # { 2221s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 2221s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2221s # { 2221s # GVariant *value; 2221s # 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); 2221s # if (value != NULL) 2221s # { 2221s # g_variant_take_ref (value); 2221s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2221s # g_variant_unref (value); 2221s # } 2221s # } 2221s # } 2221s # out: 2221s # return g_variant_builder_end (&builder); 2221s # } 2221s # 2221s # static gboolean _good_types_emit_changed (gpointer user_data); 2221s # 2221s # static void 2221s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 2221s # gboolean emit_changed = FALSE; 2221s # 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # if (skeleton->priv->changed_properties_idle_source != NULL) 2221s # { 2221s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2221s # skeleton->priv->changed_properties_idle_source = NULL; 2221s # emit_changed = TRUE; 2221s # } 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # 2221s # if (emit_changed) 2221s # _good_types_emit_changed (skeleton); 2221s # } 2221s # 2221s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2221s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2221s # G_ADD_PRIVATE (GoodTypesSkeleton) 2221s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 2221s # 2221s # #else 2221s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2221s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 2221s # 2221s # #endif 2221s # static void 2221s # good_types_skeleton_finalize (GObject *object) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 2221s # guint n; 2221s # for (n = 0; n < 1; n++) 2221s # g_value_unset (&skeleton->priv->properties[n]); 2221s # g_free (skeleton->priv->properties); 2221s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2221s # if (skeleton->priv->changed_properties_idle_source != NULL) 2221s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2221s # g_main_context_unref (skeleton->priv->context); 2221s # g_mutex_clear (&skeleton->priv->lock); 2221s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_get_property (GObject *object, 2221s # guint prop_id, 2221s # GValue *value, 2221s # GParamSpec *pspec G_GNUC_UNUSED) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 2221s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # } 2221s # 2221s # static gboolean 2221s # _good_types_emit_changed (gpointer user_data) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 2221s # GList *l; 2221s # GVariantBuilder builder; 2221s # GVariantBuilder invalidated_builder; 2221s # guint num_changes; 2221s # 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2221s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2221s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 2221s # #else 2221s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 2221s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 2221s # #endif 2221s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 2221s # { 2221s # ChangedProperty *cp = l->data; 2221s # GVariant *variant; 2221s # const GValue *cur_value; 2221s # 2221s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 2221s # if (!_g_value_equal (cur_value, &cp->orig_value)) 2221s # { 2221s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 2221s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 2221s # g_variant_unref (variant); 2221s # num_changes++; 2221s # } 2221s # } 2221s # if (num_changes > 0) 2221s # { 2221s # GList *connections, *ll; 2221s # GVariant *signal_variant; 2221s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 2221s # &builder, &invalidated_builder)); 2221s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2221s # for (ll = connections; ll != NULL; ll = ll->next) 2221s # { 2221s # GDBusConnection *connection = ll->data; 2221s # 2221s # g_dbus_connection_emit_signal (connection, 2221s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 2221s # "org.freedesktop.DBus.Properties", 2221s # "PropertiesChanged", 2221s # signal_variant, 2221s # NULL); 2221s # } 2221s # g_variant_unref (signal_variant); 2221s # g_list_free_full (connections, g_object_unref); 2221s # } 2221s # else 2221s # { 2221s # g_variant_builder_clear (&builder); 2221s # g_variant_builder_clear (&invalidated_builder); 2221s # } 2221s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2221s # skeleton->priv->changed_properties = NULL; 2221s # skeleton->priv->changed_properties_idle_source = NULL; 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # return FALSE; 2221s # } 2221s # 2221s # static void 2221s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 2221s # { 2221s # ChangedProperty *cp; 2221s # GList *l; 2221s # cp = NULL; 2221s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 2221s # { 2221s # ChangedProperty *i_cp = l->data; 2221s # if (i_cp->info == info) 2221s # { 2221s # cp = i_cp; 2221s # break; 2221s # } 2221s # } 2221s # if (cp == NULL) 2221s # { 2221s # cp = g_new0 (ChangedProperty, 1); 2221s # cp->prop_id = prop_id; 2221s # cp->info = info; 2221s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 2221s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 2221s # g_value_copy (orig_value, &cp->orig_value); 2221s # } 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_notify (GObject *object, 2221s # GParamSpec *pspec G_GNUC_UNUSED) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # if (skeleton->priv->changed_properties != NULL && 2221s # skeleton->priv->changed_properties_idle_source == NULL) 2221s # { 2221s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 2221s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 2221s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 2221s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 2221s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 2221s # g_source_unref (skeleton->priv->changed_properties_idle_source); 2221s # } 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_set_property (GObject *object, 2221s # guint prop_id, 2221s # const GValue *value, 2221s # GParamSpec *pspec) 2221s # { 2221s # const _ExtendedGDBusPropertyInfo *info; 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 2221s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2221s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # g_object_freeze_notify (object); 2221s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 2221s # { 2221s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 2221s # info->emits_changed_signal) 2221s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 2221s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 2221s # g_object_notify_by_pspec (object, pspec); 2221s # } 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # g_object_thaw_notify (object); 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 2221s # { 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2221s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 2221s # #else 2221s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 2221s # #endif 2221s # 2221s # g_mutex_init (&skeleton->priv->lock); 2221s # skeleton->priv->context = g_main_context_ref_thread_default (); 2221s # skeleton->priv->properties = g_new0 (GValue, 1); 2221s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 2221s # } 2221s # 2221s # static GVariant * 2221s # good_types_skeleton_get_good_property_type (GoodTypes *object) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 2221s # GVariant *value; 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # return value; 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 2221s # { 2221s # GObjectClass *gobject_class; 2221s # GDBusInterfaceSkeletonClass *skeleton_class; 2221s # 2221s # gobject_class = G_OBJECT_CLASS (klass); 2221s # gobject_class->finalize = good_types_skeleton_finalize; 2221s # gobject_class->get_property = good_types_skeleton_get_property; 2221s # gobject_class->set_property = good_types_skeleton_set_property; 2221s # gobject_class->notify = good_types_skeleton_notify; 2221s # 2221s # 2221s # good_types_override_properties (gobject_class, 1); 2221s # 2221s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2221s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 2221s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 2221s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 2221s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 2221s # 2221s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2221s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 2221s # #endif 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_iface_init (GoodTypesIface *iface) 2221s # { 2221s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 2221s # } 2221s # 2221s # /** 2221s # * good_types_skeleton_new: 2221s # * 2221s # * Creates a skeleton object for the D-Bus interface GoodTypes. 2221s # * 2221s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 2221s # */ 2221s # GoodTypes * 2221s # good_types_skeleton_new (void) 2221s # { 2221s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 2221s # } 2221s # Error: 2221s # 2221s # /tmp/tmpxn2yyp8f/tmplf7c90dc.xml: 2221s # 2221s # 2221s # 2221s # 2221s # 2221s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxn2yyp8f/tmplf7c90dc.xml', '--output', '-', '--body'] 2221s # Return code: 0 2221s # Output: 2221s # /* 2221s # * This file is generated by gdbus-codegen, do not modify it. 2221s # * 2221s # * The license of this code is the same as for the D-Bus interface description 2221s # * it was derived from. Note that it links to GLib, so must comply with the 2221s # * LGPL linking clauses. 2221s # */ 2221s # 2221s # #ifdef HAVE_CONFIG_H 2221s # # include "config.h" 2221s # #endif 2221s # 2221s # #include 2221s # #ifdef G_OS_UNIX 2221s # # include 2221s # #endif 2221s # 2221s # #ifdef G_ENABLE_DEBUG 2221s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2221s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2221s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2221s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2221s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2221s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2221s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2221s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2221s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2221s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2221s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2221s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2221s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2221s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2221s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2221s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2221s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2221s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2221s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2221s # #else /* !G_ENABLE_DEBUG */ 2221s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2221s # * Do not access GValues directly in your code. Instead, use the 2221s # * g_value_get_*() functions 2221s # */ 2221s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2221s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2221s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2221s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2221s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2221s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2221s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2221s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2221s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2221s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2221s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2221s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2221s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2221s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2221s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2221s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2221s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2221s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2221s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2221s # #endif /* !G_ENABLE_DEBUG */ 2221s # 2221s # typedef struct 2221s # { 2221s # GDBusArgInfo parent_struct; 2221s # gboolean use_gvariant; 2221s # } _ExtendedGDBusArgInfo; 2221s # 2221s # typedef struct 2221s # { 2221s # GDBusMethodInfo parent_struct; 2221s # const gchar *signal_name; 2221s # gboolean pass_fdlist; 2221s # } _ExtendedGDBusMethodInfo; 2221s # 2221s # typedef struct 2221s # { 2221s # GDBusSignalInfo parent_struct; 2221s # const gchar *signal_name; 2221s # } _ExtendedGDBusSignalInfo; 2221s # 2221s # typedef struct 2221s # { 2221s # GDBusPropertyInfo parent_struct; 2221s # const gchar *hyphen_name; 2221s # guint use_gvariant : 1; 2221s # guint emits_changed_signal : 1; 2221s # } _ExtendedGDBusPropertyInfo; 2221s # 2221s # typedef struct 2221s # { 2221s # GDBusInterfaceInfo parent_struct; 2221s # const gchar *hyphen_name; 2221s # } _ExtendedGDBusInterfaceInfo; 2221s # 2221s # typedef struct 2221s # { 2221s # const _ExtendedGDBusPropertyInfo *info; 2221s # guint prop_id; 2221s # GValue orig_value; /* the value before the change */ 2221s # } ChangedProperty; 2221s # 2221s # static void 2221s # _changed_property_free (ChangedProperty *data) 2221s # { 2221s # g_value_unset (&data->orig_value); 2221s # g_free (data); 2221s # } 2221s # 2221s # static gboolean 2221s # _g_strv_equal0 (gchar **a, gchar **b) 2221s # { 2221s # gboolean ret = FALSE; 2221s # guint n; 2221s # if (a == NULL && b == NULL) 2221s # { 2221s # ret = TRUE; 2221s # goto out; 2221s # } 2221s # if (a == NULL || b == NULL) 2221s # goto out; 2221s # if (g_strv_length (a) != g_strv_length (b)) 2221s # goto out; 2221s # for (n = 0; a[n] != NULL; n++) 2221s # if (g_strcmp0 (a[n], b[n]) != 0) 2221s # goto out; 2221s # ret = TRUE; 2221s # out: 2221s # return ret; 2221s # } 2221s # 2221s # static gboolean 2221s # _g_variant_equal0 (GVariant *a, GVariant *b) 2221s # { 2221s # gboolean ret = FALSE; 2221s # if (a == NULL && b == NULL) 2221s # { 2221s # ret = TRUE; 2221s # goto out; 2221s # } 2221s # if (a == NULL || b == NULL) 2221s # goto out; 2221s # ret = g_variant_equal (a, b); 2221s # out: 2221s # return ret; 2221s # } 2221s # 2221s # G_GNUC_UNUSED static gboolean 2221s # _g_value_equal (const GValue *a, const GValue *b) 2221s # { 2221s # gboolean ret = FALSE; 2221s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2221s # switch (G_VALUE_TYPE (a)) 2221s # { 2221s # case G_TYPE_BOOLEAN: 2221s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2221s # break; 2221s # case G_TYPE_UCHAR: 2221s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2221s # break; 2221s # case G_TYPE_INT: 2221s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2221s # break; 2221s # case G_TYPE_UINT: 2221s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2221s # break; 2221s # case G_TYPE_INT64: 2221s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2221s # break; 2221s # case G_TYPE_UINT64: 2221s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2221s # break; 2221s # case G_TYPE_DOUBLE: 2221s # { 2221s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2221s # gdouble da = g_value_get_double (a); 2221s # gdouble db = g_value_get_double (b); 2221s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2221s # } 2221s # break; 2221s # case G_TYPE_STRING: 2221s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2221s # break; 2221s # case G_TYPE_VARIANT: 2221s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2221s # break; 2221s # default: 2221s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2221s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2221s # else 2221s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2221s # break; 2221s # } 2221s # return ret; 2221s # } 2221s # 2221s # /* ------------------------------------------------------------------------ 2221s # * Code for interface GoodTypes 2221s # * ------------------------------------------------------------------------ 2221s # */ 2221s # 2221s # /** 2221s # * SECTION:GoodTypes 2221s # * @title: GoodTypes 2221s # * @short_description: Generated C code for the GoodTypes D-Bus interface 2221s # * 2221s # * This section contains code for working with the GoodTypes D-Bus interface in C. 2221s # */ 2221s # 2221s # /* ---- Introspection data for GoodTypes ---- */ 2221s # 2221s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 2221s # { 2221s # { 2221s # -1, 2221s # (gchar *) "GoodPropertyType", 2221s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})", 2221s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 2221s # NULL 2221s # }, 2221s # "good-property-type", 2221s # FALSE, 2221s # TRUE 2221s # }; 2221s # 2221s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 2221s # { 2221s # &_good_types_property_info_good_property_type.parent_struct, 2221s # NULL 2221s # }; 2221s # 2221s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 2221s # { 2221s # { 2221s # -1, 2221s # (gchar *) "GoodTypes", 2221s # NULL, 2221s # NULL, 2221s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 2221s # NULL 2221s # }, 2221s # "good-types", 2221s # }; 2221s # 2221s # 2221s # /** 2221s # * good_types_interface_info: 2221s # * 2221s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 2221s # * 2221s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2221s # */ 2221s # GDBusInterfaceInfo * 2221s # good_types_interface_info (void) 2221s # { 2221s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 2221s # } 2221s # 2221s # /** 2221s # * good_types_override_properties: 2221s # * @klass: The class structure for a #GObject derived class. 2221s # * @property_id_begin: The property id to assign to the first overridden property. 2221s # * 2221s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 2221s # * The properties are overridden in the order they are defined. 2221s # * 2221s # * Returns: The last property id. 2221s # */ 2221s # guint 2221s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 2221s # { 2221s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 2221s # return property_id_begin - 1; 2221s # } 2221s # 2221s # 2221s # 2221s # /** 2221s # * GoodTypes: 2221s # * 2221s # * Abstract interface type for the D-Bus interface GoodTypes. 2221s # */ 2221s # 2221s # /** 2221s # * GoodTypesIface: 2221s # * @parent_iface: The parent interface. 2221s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 2221s # * 2221s # * Virtual table for the D-Bus interface GoodTypes. 2221s # */ 2221s # 2221s # typedef GoodTypesIface GoodTypesInterface; 2221s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 2221s # 2221s # static void 2221s # good_types_default_init (GoodTypesIface *iface) 2221s # { 2221s # /* GObject properties for D-Bus properties: */ 2221s # /** 2221s # * GoodTypes:good-property-type: 2221s # * 2221s # * Represents the D-Bus property "GoodPropertyType". 2221s # * 2221s # * 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. 2221s # */ 2221s # g_object_interface_install_property (iface, 2221s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 2221s # } 2221s # 2221s # /** 2221s # * good_types_get_good_property_type: (skip) 2221s # * @object: A GoodTypes. 2221s # * 2221s # * Gets the value of the "GoodPropertyType" D-Bus property. 2221s # * 2221s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 2221s # * 2221s # * 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. 2221s # * 2221s # * 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. 2221s # */ 2221s # GVariant * 2221s # good_types_get_good_property_type (GoodTypes *object) 2221s # { 2221s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 2221s # 2221s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 2221s # } 2221s # 2221s # /** 2221s # * good_types_dup_good_property_type: (skip) 2221s # * @object: A GoodTypes. 2221s # * 2221s # * Gets a copy of the "GoodPropertyType" D-Bus property. 2221s # * 2221s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 2221s # * 2221s # * 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(). 2221s # */ 2221s # GVariant * 2221s # good_types_dup_good_property_type (GoodTypes *object) 2221s # { 2221s # GVariant *value; 2221s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 2221s # return value; 2221s # } 2221s # 2221s # /** 2221s # * good_types_set_good_property_type: (skip) 2221s # * @object: A GoodTypes. 2221s # * @value: The value to set. 2221s # * 2221s # * Sets the "GoodPropertyType" D-Bus property to @value. 2221s # * 2221s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 2221s # */ 2221s # void 2221s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 2221s # { 2221s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 2221s # } 2221s # 2221s # /* ------------------------------------------------------------------------ */ 2221s # 2221s # /** 2221s # * GoodTypesProxy: 2221s # * 2221s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 2221s # */ 2221s # 2221s # /** 2221s # * GoodTypesProxyClass: 2221s # * @parent_class: The parent class. 2221s # * 2221s # * Class structure for GoodTypesProxy. 2221s # */ 2221s # 2221s # struct _GoodTypesProxyPrivate 2221s # { 2221s # GData *qdata; 2221s # }; 2221s # 2221s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 2221s # 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2221s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 2221s # G_ADD_PRIVATE (GoodTypesProxy) 2221s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 2221s # 2221s # #else 2221s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 2221s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 2221s # 2221s # #endif 2221s # static void 2221s # good_types_proxy_finalize (GObject *object) 2221s # { 2221s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 2221s # g_datalist_clear (&proxy->priv->qdata); 2221s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_get_property (GObject *object, 2221s # guint prop_id, 2221s # GValue *value, 2221s # GParamSpec *pspec G_GNUC_UNUSED) 2221s # { 2221s # const _ExtendedGDBusPropertyInfo *info; 2221s # GVariant *variant; 2221s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2221s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 2221s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 2221s # if (info->use_gvariant) 2221s # { 2221s # g_value_set_variant (value, variant); 2221s # } 2221s # else 2221s # { 2221s # if (variant != NULL) 2221s # g_dbus_gvariant_to_gvalue (variant, value); 2221s # } 2221s # if (variant != NULL) 2221s # g_variant_unref (variant); 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 2221s # GAsyncResult *res, 2221s # gpointer user_data) 2221s # { 2221s # const _ExtendedGDBusPropertyInfo *info = user_data; 2221s # GError *error; 2221s # GVariant *_ret; 2221s # error = NULL; 2221s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 2221s # if (!_ret) 2221s # { 2221s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 2221s # info->parent_struct.name, 2221s # error->message, g_quark_to_string (error->domain), error->code); 2221s # g_error_free (error); 2221s # } 2221s # else 2221s # { 2221s # g_variant_unref (_ret); 2221s # } 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_set_property (GObject *object, 2221s # guint prop_id, 2221s # const GValue *value, 2221s # GParamSpec *pspec G_GNUC_UNUSED) 2221s # { 2221s # const _ExtendedGDBusPropertyInfo *info; 2221s # GVariant *variant; 2221s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2221s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 2221s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 2221s # g_dbus_proxy_call (G_DBUS_PROXY (object), 2221s # "org.freedesktop.DBus.Properties.Set", 2221s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 2221s # G_DBUS_CALL_FLAGS_NONE, 2221s # -1, 2221s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 2221s # g_variant_unref (variant); 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_g_signal (GDBusProxy *proxy, 2221s # const gchar *sender_name G_GNUC_UNUSED, 2221s # const gchar *signal_name, 2221s # GVariant *parameters) 2221s # { 2221s # _ExtendedGDBusSignalInfo *info; 2221s # GVariantIter iter; 2221s # GVariant *child; 2221s # GValue *paramv; 2221s # gsize num_params; 2221s # gsize n; 2221s # guint signal_id; 2221s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 2221s # if (info == NULL) 2221s # return; 2221s # num_params = g_variant_n_children (parameters); 2221s # paramv = g_new0 (GValue, num_params + 1); 2221s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 2221s # g_value_set_object (¶mv[0], proxy); 2221s # g_variant_iter_init (&iter, parameters); 2221s # n = 1; 2221s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2221s # { 2221s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2221s # if (arg_info->use_gvariant) 2221s # { 2221s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2221s # g_value_set_variant (¶mv[n], child); 2221s # n++; 2221s # } 2221s # else 2221s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2221s # g_variant_unref (child); 2221s # } 2221s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 2221s # g_signal_emitv (paramv, signal_id, 0, NULL); 2221s # for (n = 0; n < num_params + 1; n++) 2221s # g_value_unset (¶mv[n]); 2221s # g_free (paramv); 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 2221s # GVariant *changed_properties, 2221s # const gchar *const *invalidated_properties) 2221s # { 2221s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 2221s # guint n; 2221s # const gchar *key; 2221s # GVariantIter *iter; 2221s # _ExtendedGDBusPropertyInfo *info; 2221s # g_variant_get (changed_properties, "a{sv}", &iter); 2221s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2221s # { 2221s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 2221s # g_datalist_remove_data (&proxy->priv->qdata, key); 2221s # if (info != NULL) 2221s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2221s # } 2221s # g_variant_iter_free (iter); 2221s # for (n = 0; invalidated_properties[n] != NULL; n++) 2221s # { 2221s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 2221s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2221s # if (info != NULL) 2221s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2221s # } 2221s # } 2221s # 2221s # static GVariant * 2221s # good_types_proxy_get_good_property_type (GoodTypes *object) 2221s # { 2221s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 2221s # GVariant *variant; 2221s # GVariant *value = NULL; 2221s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 2221s # value = variant; 2221s # if (variant != NULL) 2221s # g_variant_unref (variant); 2221s # return value; 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_init (GoodTypesProxy *proxy) 2221s # { 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2221s # proxy->priv = good_types_proxy_get_instance_private (proxy); 2221s # #else 2221s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 2221s # #endif 2221s # 2221s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 2221s # { 2221s # GObjectClass *gobject_class; 2221s # GDBusProxyClass *proxy_class; 2221s # 2221s # gobject_class = G_OBJECT_CLASS (klass); 2221s # gobject_class->finalize = good_types_proxy_finalize; 2221s # gobject_class->get_property = good_types_proxy_get_property; 2221s # gobject_class->set_property = good_types_proxy_set_property; 2221s # 2221s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2221s # proxy_class->g_signal = good_types_proxy_g_signal; 2221s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 2221s # 2221s # good_types_override_properties (gobject_class, 1); 2221s # 2221s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2221s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 2221s # #endif 2221s # } 2221s # 2221s # static void 2221s # good_types_proxy_iface_init (GoodTypesIface *iface) 2221s # { 2221s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 2221s # } 2221s # 2221s # /** 2221s # * good_types_proxy_new: 2221s # * @connection: A #GDBusConnection. 2221s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2221s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2221s # * @object_path: An object path. 2221s # * @cancellable: (nullable): A #GCancellable or %NULL. 2221s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2221s # * @user_data: User data to pass to @callback. 2221s # * 2221s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 2221s # * 2221s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2221s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 2221s # * 2221s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 2221s # */ 2221s # void 2221s # good_types_proxy_new ( 2221s # GDBusConnection *connection, 2221s # GDBusProxyFlags flags, 2221s # const gchar *name, 2221s # const gchar *object_path, 2221s # GCancellable *cancellable, 2221s # GAsyncReadyCallback callback, 2221s # gpointer user_data) 2221s # { 2221s # 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); 2221s # } 2221s # 2221s # /** 2221s # * good_types_proxy_new_finish: 2221s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 2221s # * @error: Return location for error or %NULL 2221s # * 2221s # * Finishes an operation started with good_types_proxy_new(). 2221s # * 2221s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 2221s # */ 2221s # GoodTypes * 2221s # good_types_proxy_new_finish ( 2221s # GAsyncResult *res, 2221s # GError **error) 2221s # { 2221s # GObject *ret; 2221s # GObject *source_object; 2221s # source_object = g_async_result_get_source_object (res); 2221s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2221s # g_object_unref (source_object); 2221s # if (ret != NULL) 2221s # return GOOD_TYPES (ret); 2221s # else 2221s # return NULL; 2221s # } 2221s # 2221s # /** 2221s # * good_types_proxy_new_sync: 2221s # * @connection: A #GDBusConnection. 2221s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2221s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2221s # * @object_path: An object path. 2221s # * @cancellable: (nullable): A #GCancellable or %NULL. 2221s # * @error: Return location for error or %NULL 2221s # * 2221s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 2221s # * 2221s # * The calling thread is blocked until a reply is received. 2221s # * 2221s # * See good_types_proxy_new() for the asynchronous version of this constructor. 2221s # * 2221s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 2221s # */ 2221s # GoodTypes * 2221s # good_types_proxy_new_sync ( 2221s # GDBusConnection *connection, 2221s # GDBusProxyFlags flags, 2221s # const gchar *name, 2221s # const gchar *object_path, 2221s # GCancellable *cancellable, 2221s # GError **error) 2221s # { 2221s # GInitable *ret; 2221s # 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); 2221s # if (ret != NULL) 2221s # return GOOD_TYPES (ret); 2221s # else 2221s # return NULL; 2221s # } 2221s # 2221s # 2221s # /** 2221s # * good_types_proxy_new_for_bus: 2221s # * @bus_type: A #GBusType. 2221s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2221s # * @name: A bus name (well-known or unique). 2221s # * @object_path: An object path. 2221s # * @cancellable: (nullable): A #GCancellable or %NULL. 2221s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2221s # * @user_data: User data to pass to @callback. 2221s # * 2221s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2221s # * 2221s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2221s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 2221s # * 2221s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2221s # */ 2221s # void 2221s # good_types_proxy_new_for_bus ( 2221s # GBusType bus_type, 2221s # GDBusProxyFlags flags, 2221s # const gchar *name, 2221s # const gchar *object_path, 2221s # GCancellable *cancellable, 2221s # GAsyncReadyCallback callback, 2221s # gpointer user_data) 2221s # { 2221s # 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); 2221s # } 2221s # 2221s # /** 2221s # * good_types_proxy_new_for_bus_finish: 2221s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 2221s # * @error: Return location for error or %NULL 2221s # * 2221s # * Finishes an operation started with good_types_proxy_new_for_bus(). 2221s # * 2221s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 2221s # */ 2221s # GoodTypes * 2221s # good_types_proxy_new_for_bus_finish ( 2221s # GAsyncResult *res, 2221s # GError **error) 2221s # { 2221s # GObject *ret; 2221s # GObject *source_object; 2221s # source_object = g_async_result_get_source_object (res); 2221s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2221s # g_object_unref (source_object); 2221s # if (ret != NULL) 2221s # return GOOD_TYPES (ret); 2221s # else 2221s # return NULL; 2221s # } 2221s # 2221s # /** 2221s # * good_types_proxy_new_for_bus_sync: 2221s # * @bus_type: A #GBusType. 2221s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2221s # * @name: A bus name (well-known or unique). 2221s # * @object_path: An object path. 2221s # * @cancellable: (nullable): A #GCancellable or %NULL. 2221s # * @error: Return location for error or %NULL 2221s # * 2221s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2221s # * 2221s # * The calling thread is blocked until a reply is received. 2221s # * 2221s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 2221s # * 2221s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 2221s # */ 2221s # GoodTypes * 2221s # good_types_proxy_new_for_bus_sync ( 2221s # GBusType bus_type, 2221s # GDBusProxyFlags flags, 2221s # const gchar *name, 2221s # const gchar *object_path, 2221s # GCancellable *cancellable, 2221s # GError **error) 2221s # { 2221s # GInitable *ret; 2221s # 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); 2221s # if (ret != NULL) 2221s # return GOOD_TYPES (ret); 2221s # else 2221s # return NULL; 2221s # } 2221s # 2221s # 2221s # /* ------------------------------------------------------------------------ */ 2221s # 2221s # /** 2221s # * GoodTypesSkeleton: 2221s # * 2221s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 2221s # */ 2221s # 2221s # /** 2221s # * GoodTypesSkeletonClass: 2221s # * @parent_class: The parent class. 2221s # * 2221s # * Class structure for GoodTypesSkeleton. 2221s # */ 2221s # 2221s # struct _GoodTypesSkeletonPrivate 2221s # { 2221s # GValue *properties; 2221s # GList *changed_properties; 2221s # GSource *changed_properties_idle_source; 2221s # GMainContext *context; 2221s # GMutex lock; 2221s # }; 2221s # 2221s # static void 2221s # _good_types_skeleton_handle_method_call ( 2221s # GDBusConnection *connection G_GNUC_UNUSED, 2221s # const gchar *sender G_GNUC_UNUSED, 2221s # const gchar *object_path G_GNUC_UNUSED, 2221s # const gchar *interface_name, 2221s # const gchar *method_name, 2221s # GVariant *parameters, 2221s # GDBusMethodInvocation *invocation, 2221s # gpointer user_data) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 2221s # _ExtendedGDBusMethodInfo *info; 2221s # GVariantIter iter; 2221s # GVariant *child; 2221s # GValue *paramv; 2221s # gsize num_params; 2221s # guint num_extra; 2221s # gsize n; 2221s # guint signal_id; 2221s # GValue return_value = G_VALUE_INIT; 2221s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2221s # g_assert (info != NULL); 2221s # num_params = g_variant_n_children (parameters); 2221s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2221s # n = 0; 2221s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 2221s # g_value_set_object (¶mv[n++], skeleton); 2221s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2221s # g_value_set_object (¶mv[n++], invocation); 2221s # if (info->pass_fdlist) 2221s # { 2221s # #ifdef G_OS_UNIX 2221s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2221s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2221s # #else 2221s # g_assert_not_reached (); 2221s # #endif 2221s # } 2221s # g_variant_iter_init (&iter, parameters); 2221s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2221s # { 2221s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2221s # if (arg_info->use_gvariant) 2221s # { 2221s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2221s # g_value_set_variant (¶mv[n], child); 2221s # n++; 2221s # } 2221s # else 2221s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2221s # g_variant_unref (child); 2221s # } 2221s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 2221s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2221s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2221s # if (!g_value_get_boolean (&return_value)) 2221s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2221s # g_value_unset (&return_value); 2221s # for (n = 0; n < num_params + num_extra; n++) 2221s # g_value_unset (¶mv[n]); 2221s # g_free (paramv); 2221s # } 2221s # 2221s # static GVariant * 2221s # _good_types_skeleton_handle_get_property ( 2221s # GDBusConnection *connection G_GNUC_UNUSED, 2221s # const gchar *sender G_GNUC_UNUSED, 2221s # const gchar *object_path G_GNUC_UNUSED, 2221s # const gchar *interface_name G_GNUC_UNUSED, 2221s # const gchar *property_name, 2221s # GError **error, 2221s # gpointer user_data) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 2221s # GValue value = G_VALUE_INIT; 2221s # GParamSpec *pspec; 2221s # _ExtendedGDBusPropertyInfo *info; 2221s # GVariant *ret; 2221s # ret = NULL; 2221s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 2221s # g_assert (info != NULL); 2221s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2221s # if (pspec == NULL) 2221s # { 2221s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2221s # } 2221s # else 2221s # { 2221s # g_value_init (&value, pspec->value_type); 2221s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2221s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2221s # g_value_unset (&value); 2221s # } 2221s # return ret; 2221s # } 2221s # 2221s # static gboolean 2221s # _good_types_skeleton_handle_set_property ( 2221s # GDBusConnection *connection G_GNUC_UNUSED, 2221s # const gchar *sender G_GNUC_UNUSED, 2221s # const gchar *object_path G_GNUC_UNUSED, 2221s # const gchar *interface_name G_GNUC_UNUSED, 2221s # const gchar *property_name, 2221s # GVariant *variant, 2221s # GError **error, 2221s # gpointer user_data) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 2221s # GValue value = G_VALUE_INIT; 2221s # GParamSpec *pspec; 2221s # _ExtendedGDBusPropertyInfo *info; 2221s # gboolean ret; 2221s # ret = FALSE; 2221s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 2221s # g_assert (info != NULL); 2221s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2221s # if (pspec == NULL) 2221s # { 2221s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2221s # } 2221s # else 2221s # { 2221s # if (info->use_gvariant) 2221s # g_value_set_variant (&value, variant); 2221s # else 2221s # g_dbus_gvariant_to_gvalue (variant, &value); 2221s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2221s # g_value_unset (&value); 2221s # ret = TRUE; 2221s # } 2221s # return ret; 2221s # } 2221s # 2221s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 2221s # { 2221s # _good_types_skeleton_handle_method_call, 2221s # _good_types_skeleton_handle_get_property, 2221s # _good_types_skeleton_handle_set_property, 2221s # {NULL} 2221s # }; 2221s # 2221s # static GDBusInterfaceInfo * 2221s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2221s # { 2221s # return good_types_interface_info (); 2221s # } 2221s # 2221s # static GDBusInterfaceVTable * 2221s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2221s # { 2221s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 2221s # } 2221s # 2221s # static GVariant * 2221s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 2221s # 2221s # GVariantBuilder builder; 2221s # guint n; 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2221s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2221s # #else 2221s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2221s # #endif 2221s # if (_good_types_interface_info.parent_struct.properties == NULL) 2221s # goto out; 2221s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 2221s # { 2221s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 2221s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2221s # { 2221s # GVariant *value; 2221s # 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); 2221s # if (value != NULL) 2221s # { 2221s # g_variant_take_ref (value); 2221s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2221s # g_variant_unref (value); 2221s # } 2221s # } 2221s # } 2221s # out: 2221s # return g_variant_builder_end (&builder); 2221s # } 2221s # 2221s # static gboolean _good_types_emit_changed (gpointer user_data); 2221s # 2221s # static void 2221s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 2221s # gboolean emit_changed = FALSE; 2221s # 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # if (skeleton->priv->changed_properties_idle_source != NULL) 2221s # { 2221s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2221s # skeleton->priv->changed_properties_idle_source = NULL; 2221s # emit_changed = TRUE; 2221s # } 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # 2221s # if (emit_changed) 2221s # _good_types_emit_changed (skeleton); 2221s # } 2221s # 2221s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2221s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2221s # G_ADD_PRIVATE (GoodTypesSkeleton) 2221s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 2221s # 2221s # #else 2221s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2221s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 2221s # 2221s # #endif 2221s # static void 2221s # good_types_skeleton_finalize (GObject *object) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 2221s # guint n; 2221s # for (n = 0; n < 1; n++) 2221s # g_value_unset (&skeleton->priv->properties[n]); 2221s # g_free (skeleton->priv->properties); 2221s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2221s # if (skeleton->priv->changed_properties_idle_source != NULL) 2221s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2221s # g_main_context_unref (skeleton->priv->context); 2221s # g_mutex_clear (&skeleton->priv->lock); 2221s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_get_property (GObject *object, 2221s # guint prop_id, 2221s # GValue *value, 2221s # GParamSpec *pspec G_GNUC_UNUSED) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 2221s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # } 2221s # 2221s # static gboolean 2221s # _good_types_emit_changed (gpointer user_data) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 2221s # GList *l; 2221s # GVariantBuilder builder; 2221s # GVariantBuilder invalidated_builder; 2221s # guint num_changes; 2221s # 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2221s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2221s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 2221s # #else 2221s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 2221s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 2221s # #endif 2221s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 2221s # { 2221s # ChangedProperty *cp = l->data; 2221s # GVariant *variant; 2221s # const GValue *cur_value; 2221s # 2221s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 2221s # if (!_g_value_equal (cur_value, &cp->orig_value)) 2221s # { 2221s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 2221s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 2221s # g_variant_unref (variant); 2221s # num_changes++; 2221s # } 2221s # } 2221s # if (num_changes > 0) 2221s # { 2221s # GList *connections, *ll; 2221s # GVariant *signal_variant; 2221s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 2221s # &builder, &invalidated_builder)); 2221s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2221s # for (ll = connections; ll != NULL; ll = ll->next) 2221s # { 2221s # GDBusConnection *connection = ll->data; 2221s # 2221s # g_dbus_connection_emit_signal (connection, 2221s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 2221s # "org.freedesktop.DBus.Properties", 2221s # "PropertiesChanged", 2221s # signal_variant, 2221s # NULL); 2221s # } 2221s # g_variant_unref (signal_variant); 2221s # g_list_free_full (connections, g_object_unref); 2221s # } 2221s # else 2221s # { 2221s # g_variant_builder_clear (&builder); 2221s # g_variant_builder_clear (&invalidated_builder); 2221s # } 2221s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2221s # skeleton->priv->changed_properties = NULL; 2221s # skeleton->priv->changed_properties_idle_source = NULL; 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # return FALSE; 2221s # } 2221s # 2221s # static void 2221s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 2221s # { 2221s # ChangedProperty *cp; 2221s # GList *l; 2221s # cp = NULL; 2221s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 2221s # { 2221s # ChangedProperty *i_cp = l->data; 2221s # if (i_cp->info == info) 2221s # { 2221s # cp = i_cp; 2221s # break; 2221s # } 2221s # } 2221s # if (cp == NULL) 2221s # { 2221s # cp = g_new0 (ChangedProperty, 1); 2221s # cp->prop_id = prop_id; 2221s # cp->info = info; 2221s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 2221s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 2221s # g_value_copy (orig_value, &cp->orig_value); 2221s # } 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_notify (GObject *object, 2221s # GParamSpec *pspec G_GNUC_UNUSED) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # if (skeleton->priv->changed_properties != NULL && 2221s # skeleton->priv->changed_properties_idle_source == NULL) 2221s # { 2221s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 2221s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 2221s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 2221s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 2221s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 2221s # g_source_unref (skeleton->priv->changed_properties_idle_source); 2221s # } 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_set_property (GObject *object, 2221s # guint prop_id, 2221s # const GValue *value, 2221s # GParamSpec *pspec) 2221s # { 2221s # const _ExtendedGDBusPropertyInfo *info; 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 2221s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2221s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # g_object_freeze_notify (object); 2221s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 2221s # { 2221s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 2221s # info->emits_changed_signal) 2221s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 2221s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 2221s # g_object_notify_by_pspec (object, pspec); 2221s # } 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # g_object_thaw_notify (object); 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 2221s # { 2221s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2221s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 2221s # #else 2221s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 2221s # #endif 2221s # 2221s # g_mutex_init (&skeleton->priv->lock); 2221s # skeleton->priv->context = g_main_context_ref_thread_default (); 2221s # skeleton->priv->properties = g_new0 (GValue, 1); 2221s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 2221s # } 2221s # 2221s # static GVariant * 2221s # good_types_skeleton_get_good_property_type (GoodTypes *object) 2221s # { 2221s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 2221s # GVariant *value; 2221s # g_mutex_lock (&skeleton->priv->lock); 2221s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 2221s # g_mutex_unlock (&skeleton->priv->lock); 2221s # return value; 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 2221s # { 2221s # GObjectClass *gobject_class; 2221s # GDBusInterfaceSkeletonClass *skeleton_class; 2221s # 2221s # gobject_class = G_OBJECT_CLASS (klass); 2221s # gobject_class->finalize = good_types_skeleton_finalize; 2221s # gobject_class->get_property = good_types_skeleton_get_property; 2221s # gobject_class->set_property = good_types_skeleton_set_property; 2221s # gobject_class->notify = good_types_skeleton_notify; 2221s # 2221s # 2221s # good_types_override_properties (gobject_class, 1); 2221s # 2221s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2221s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 2221s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 2221s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 2221s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 2221s # 2221s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2221s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 2221s # #endif 2221s # } 2221s # 2221s # static void 2221s # good_types_skeleton_iface_init (GoodTypesIface *iface) 2221s # { 2221s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 2221s # } 2221s # 2221s # /** 2221s # * good_types_skeleton_new: 2221s # * 2221s # * Creates a skeleton object for the D-Bus interface GoodTypes. 2221s # * 2221s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 2221s # */ 2221s # GoodTypes * 2221s # good_types_skeleton_new (void) 2221s # { 2221s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 2221s # } 2221s # Error: 2221s ok 3 __main__.TestCodegen.test_empty_interface_body 2222s # gdbus-codegen: /usr/bin/gdbus-codegen 2222s # tmpdir: /tmp/tmp6589feuy 2222s # /tmp/tmp6589feuy/tmpsxidhttn.xml: 2222s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6589feuy/tmpsxidhttn.xml', '--output', '-', '--body'] 2222s # Return code: 0 2222s # Output: 2222s # /* 2222s # * This file is generated by gdbus-codegen, do not modify it. 2222s # * 2222s # * The license of this code is the same as for the D-Bus interface description 2222s # * it was derived from. Note that it links to GLib, so must comply with the 2222s # * LGPL linking clauses. 2222s # */ 2222s # 2222s # #ifdef HAVE_CONFIG_H 2222s # # include "config.h" 2222s # #endif 2222s # 2222s # #include 2222s # #ifdef G_OS_UNIX 2222s # # include 2222s # #endif 2222s # 2222s # #ifdef G_ENABLE_DEBUG 2222s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2222s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2222s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2222s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2222s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2222s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2222s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2222s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2222s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2222s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2222s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2222s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2222s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2222s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2222s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2222s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2222s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2222s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2222s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2222s # #else /* !G_ENABLE_DEBUG */ 2222s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2222s # * Do not access GValues directly in your code. Instead, use the 2222s # * g_value_get_*() functions 2222s # */ 2222s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2222s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2222s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2222s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2222s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2222s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2222s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2222s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2222s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2222s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2222s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2222s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2222s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2222s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2222s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2222s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2222s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2222s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2222s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2222s # #endif /* !G_ENABLE_DEBUG */ 2222s # 2222s # typedef struct 2222s # { 2222s # GDBusArgInfo parent_struct; 2222s # gboolean use_gvariant; 2222s # } _ExtendedGDBusArgInfo; 2222s # 2222s # typedef struct 2222s # { 2222s # GDBusMethodInfo parent_struct; 2222s # const gchar *signal_name; 2222s # gboolean pass_fdlist; 2222s # } _ExtendedGDBusMethodInfo; 2222s # 2222s # typedef struct 2222s # { 2222s # GDBusSignalInfo parent_struct; 2222s # const gchar *signal_name; 2222s # } _ExtendedGDBusSignalInfo; 2222s # 2222s # typedef struct 2222s # { 2222s # GDBusPropertyInfo parent_struct; 2222s # const gchar *hyphen_name; 2222s # guint use_gvariant : 1; 2222s # guint emits_changed_signal : 1; 2222s # } _ExtendedGDBusPropertyInfo; 2222s # 2222s # typedef struct 2222s # { 2222s # GDBusInterfaceInfo parent_struct; 2222s # const gchar *hyphen_name; 2222s # } _ExtendedGDBusInterfaceInfo; 2222s # 2222s # typedef struct 2222s # { 2222s # const _ExtendedGDBusPropertyInfo *info; 2222s # guint prop_id; 2222s # GValue orig_value; /* the value before the change */ 2222s # } ChangedProperty; 2222s # 2222s # static void 2222s # _changed_property_free (ChangedProperty *data) 2222s # { 2222s # g_value_unset (&data->orig_value); 2222s # g_free (data); 2222s # } 2222s # 2222s # static gboolean 2222s # _g_strv_equal0 (gchar **a, gchar **b) 2222s # { 2222s # gboolean ret = FALSE; 2222s # guint n; 2222s # if (a == NULL && b == NULL) 2222s # { 2222s # ret = TRUE; 2222s # goto out; 2222s # } 2222s # if (a == NULL || b == NULL) 2222s # goto out; 2222s # if (g_strv_length (a) != g_strv_length (b)) 2222s # goto out; 2222s # for (n = 0; a[n] != NULL; n++) 2222s # if (g_strcmp0 (a[n], b[n]) != 0) 2222s # goto out; 2222s # ret = TRUE; 2222s # out: 2222s # return ret; 2222s # } 2222s # 2222s # static gboolean 2222s # _g_variant_equal0 (GVariant *a, GVariant *b) 2222s # { 2222s # gboolean ret = FALSE; 2222s # if (a == NULL && b == NULL) 2222s # { 2222s # ret = TRUE; 2222s # goto out; 2222s # } 2222s # if (a == NULL || b == NULL) 2222s # goto out; 2222s # ret = g_variant_equal (a, b); 2222s # out: 2222s # return ret; 2222s # } 2222s # 2222s # G_GNUC_UNUSED static gboolean 2222s # _g_value_equal (const GValue *a, const GValue *b) 2222s # { 2222s # gboolean ret = FALSE; 2222s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2222s # switch (G_VALUE_TYPE (a)) 2222s # { 2222s # case G_TYPE_BOOLEAN: 2222s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2222s # break; 2222s # case G_TYPE_UCHAR: 2222s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2222s # break; 2222s # case G_TYPE_INT: 2222s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2222s # break; 2222s # case G_TYPE_UINT: 2222s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2222s # break; 2222s # case G_TYPE_INT64: 2222s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2222s # break; 2222s # case G_TYPE_UINT64: 2222s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2222s # break; 2222s # case G_TYPE_DOUBLE: 2222s # { 2222s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2222s # gdouble da = g_value_get_double (a); 2222s # gdouble db = g_value_get_double (b); 2222s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2222s # } 2222s # break; 2222s # case G_TYPE_STRING: 2222s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2222s # break; 2222s # case G_TYPE_VARIANT: 2222s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2222s # break; 2222s # default: 2222s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2222s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2222s # else 2222s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2222s # break; 2222s # } 2222s # return ret; 2222s # } 2222s # Error: 2222s ok 4 __main__.TestCodegen.test_empty_interface_header 2222s # gdbus-codegen: /usr/bin/gdbus-codegen 2222s # tmpdir: /tmp/tmpuy36uoks 2222s # /tmp/tmpuy36uoks/tmpfavp1qa0.xml: 2222s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuy36uoks/tmpfavp1qa0.xml', '--output', '-', '--header'] 2222s # Return code: 0 2222s # Output: 2222s # /* 2222s # * This file is generated by gdbus-codegen, do not modify it. 2222s # * 2222s # * The license of this code is the same as for the D-Bus interface description 2222s # * it was derived from. Note that it links to GLib, so must comply with the 2222s # * LGPL linking clauses. 2222s # */ 2222s # 2222s # #ifndef __STDOUT__ 2222s # #define __STDOUT__ 2222s # 2222s # #include 2222s # 2222s # G_BEGIN_DECLS 2222s # 2222s # 2222s # G_END_DECLS 2222s # 2222s # #endif /* __STDOUT__ */ 2222s # Error: 2222s ok 5 __main__.TestCodegen.test_empty_interface_info_body 2222s # gdbus-codegen: /usr/bin/gdbus-codegen 2222s # tmpdir: /tmp/tmpk6kbmq07 2222s # /tmp/tmpk6kbmq07/tmp9t1z_oy8.xml: 2222s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpk6kbmq07/tmp9t1z_oy8.xml', '--output', '-', '--interface-info-body'] 2222s # Return code: 0 2222s # Output: 2222s # /* 2222s # * This file is generated by gdbus-codegen, do not modify it. 2222s # * 2222s # * The license of this code is the same as for the D-Bus interface description 2222s # * it was derived from. Note that it links to GLib, so must comply with the 2222s # * LGPL linking clauses. 2222s # */ 2222s # 2222s # #ifdef HAVE_CONFIG_H 2222s # # include "config.h" 2222s # #endif 2222s # 2222s # #include 2222s # Error: 2222s ok 6 __main__.TestCodegen.test_empty_interface_info_header 2222s # gdbus-codegen: /usr/bin/gdbus-codegen 2222s # tmpdir: /tmp/tmpqldr314l 2222s # /tmp/tmpqldr314l/tmpibciu_s5.xml: 2222s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqldr314l/tmpibciu_s5.xml', '--output', '-', '--interface-info-header'] 2222s # Return code: 0 2222s # Output: 2222s # /* 2222s # * This file is generated by gdbus-codegen, do not modify it. 2222s # * 2222s # * The license of this code is the same as for the D-Bus interface description 2222s # * it was derived from. Note that it links to GLib, so must comply with the 2222s # * LGPL linking clauses. 2222s # */ 2222s # 2222s # #ifndef __STDOUT__ 2222s # #define __STDOUT__ 2222s # 2222s # #include 2222s # 2222s # G_BEGIN_DECLS 2222s # 2222s # 2222s # G_END_DECLS 2222s # 2222s # #endif /* __STDOUT__ */ 2222s # Error: 2223s ok 7 __main__.TestCodegen.test_generate_docbook 2223s # gdbus-codegen: /usr/bin/gdbus-codegen 2223s # tmpdir: /tmp/tmp1f3vb954 2223s # /tmp/tmp1f3vb954/tmp92y6rvmh.xml: 2223s # 2223s # 2223s # 2223s # 2223s # 2223s # 2223s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp1f3vb954/tmp92y6rvmh.xml', '--generate-docbook', 'test'] 2223s # Return code: 0 2223s # Output: 2223s # 2223s # Error: 2223s # Executing: glib/codegen.py.test 2223s ok 8 __main__.TestCodegen.test_generate_md 2223s # gdbus-codegen: /usr/bin/gdbus-codegen 2223s # tmpdir: /tmp/tmp07q8vhwg 2223s # /tmp/tmp07q8vhwg/tmpdjxedavj.xml: 2223s # 2223s # 2223s # 2223s # 2223s # 2223s # 2223s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp07q8vhwg/tmpdjxedavj.xml', '--generate-md', 'test'] 2223s # Return code: 0 2223s # Output: 2223s # 2223s # Error: 2224s ok 9 __main__.TestCodegen.test_generate_methods_marshaller_simple_method 2224s # gdbus-codegen: /usr/bin/gdbus-codegen 2224s # tmpdir: /tmp/tmpsn2ev9rc 2224s # /tmp/tmpsn2ev9rc/tmpsltbn9a2.xml: 2224s # 2224s # 2224s # 2224s # 2224s # 2224s # 2224s # 2224s # 2224s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpsn2ev9rc/tmpsltbn9a2.xml', '--output', '-', '--body'] 2224s # Return code: 0 2224s # Output: 2224s # /* 2224s # * This file is generated by gdbus-codegen, do not modify it. 2224s # * 2224s # * The license of this code is the same as for the D-Bus interface description 2224s # * it was derived from. Note that it links to GLib, so must comply with the 2224s # * LGPL linking clauses. 2224s # */ 2224s # 2224s # #ifdef HAVE_CONFIG_H 2224s # # include "config.h" 2224s # #endif 2224s # 2224s # #include 2224s # #ifdef G_OS_UNIX 2224s # # include 2224s # #endif 2224s # 2224s # #ifdef G_ENABLE_DEBUG 2224s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2224s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2224s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2224s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2224s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2224s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2224s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2224s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2224s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2224s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2224s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2224s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2224s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2224s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2224s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2224s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2224s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2224s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2224s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2224s # #else /* !G_ENABLE_DEBUG */ 2224s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2224s # * Do not access GValues directly in your code. Instead, use the 2224s # * g_value_get_*() functions 2224s # */ 2224s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2224s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2224s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2224s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2224s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2224s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2224s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2224s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2224s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2224s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2224s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2224s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2224s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2224s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2224s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2224s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2224s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2224s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2224s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2224s # #endif /* !G_ENABLE_DEBUG */ 2224s # 2224s # typedef struct 2224s # { 2224s # GDBusArgInfo parent_struct; 2224s # gboolean use_gvariant; 2224s # } _ExtendedGDBusArgInfo; 2224s # 2224s # typedef struct 2224s # { 2224s # GDBusMethodInfo parent_struct; 2224s # const gchar *signal_name; 2224s # gboolean pass_fdlist; 2224s # } _ExtendedGDBusMethodInfo; 2224s # 2224s # typedef struct 2224s # { 2224s # GDBusSignalInfo parent_struct; 2224s # const gchar *signal_name; 2224s # } _ExtendedGDBusSignalInfo; 2224s # 2224s # typedef struct 2224s # { 2224s # GDBusPropertyInfo parent_struct; 2224s # const gchar *hyphen_name; 2224s # guint use_gvariant : 1; 2224s # guint emits_changed_signal : 1; 2224s # } _ExtendedGDBusPropertyInfo; 2224s # 2224s # typedef struct 2224s # { 2224s # GDBusInterfaceInfo parent_struct; 2224s # const gchar *hyphen_name; 2224s # } _ExtendedGDBusInterfaceInfo; 2224s # 2224s # typedef struct 2224s # { 2224s # const _ExtendedGDBusPropertyInfo *info; 2224s # guint prop_id; 2224s # GValue orig_value; /* the value before the change */ 2224s # } ChangedProperty; 2224s # 2224s # static void 2224s # _changed_property_free (ChangedProperty *data) 2224s # { 2224s # g_value_unset (&data->orig_value); 2224s # g_free (data); 2224s # } 2224s # 2224s # static gboolean 2224s # _g_strv_equal0 (gchar **a, gchar **b) 2224s # { 2224s # gboolean ret = FALSE; 2224s # guint n; 2224s # if (a == NULL && b == NULL) 2224s # { 2224s # ret = TRUE; 2224s # goto out; 2224s # } 2224s # if (a == NULL || b == NULL) 2224s # goto out; 2224s # if (g_strv_length (a) != g_strv_length (b)) 2224s # goto out; 2224s # for (n = 0; a[n] != NULL; n++) 2224s # if (g_strcmp0 (a[n], b[n]) != 0) 2224s # goto out; 2224s # ret = TRUE; 2224s # out: 2224s # return ret; 2224s # } 2224s # 2224s # static gboolean 2224s # _g_variant_equal0 (GVariant *a, GVariant *b) 2224s # { 2224s # gboolean ret = FALSE; 2224s # if (a == NULL && b == NULL) 2224s # { 2224s # ret = TRUE; 2224s # goto out; 2224s # } 2224s # if (a == NULL || b == NULL) 2224s # goto out; 2224s # ret = g_variant_equal (a, b); 2224s # out: 2224s # return ret; 2224s # } 2224s # 2224s # G_GNUC_UNUSED static gboolean 2224s # _g_value_equal (const GValue *a, const GValue *b) 2224s # { 2224s # gboolean ret = FALSE; 2224s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2224s # switch (G_VALUE_TYPE (a)) 2224s # { 2224s # case G_TYPE_BOOLEAN: 2224s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2224s # break; 2224s # case G_TYPE_UCHAR: 2224s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2224s # break; 2224s # case G_TYPE_INT: 2224s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2224s # break; 2224s # case G_TYPE_UINT: 2224s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2224s # break; 2224s # case G_TYPE_INT64: 2224s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2224s # break; 2224s # case G_TYPE_UINT64: 2224s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2224s # break; 2224s # case G_TYPE_DOUBLE: 2224s # { 2224s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2224s # gdouble da = g_value_get_double (a); 2224s # gdouble db = g_value_get_double (b); 2224s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2224s # } 2224s # break; 2224s # case G_TYPE_STRING: 2224s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2224s # break; 2224s # case G_TYPE_VARIANT: 2224s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2224s # break; 2224s # default: 2224s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2224s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2224s # else 2224s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2224s # break; 2224s # } 2224s # return ret; 2224s # } 2224s # 2224s # static void 2224s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2224s # GClosure *closure, 2224s # GValue *return_value, 2224s # unsigned int n_param_values, 2224s # const GValue *param_values, 2224s # void *invocation_hint G_GNUC_UNUSED, 2224s # void *marshal_data) 2224s # { 2224s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2224s # (void *data1, 2224s # GDBusMethodInvocation *arg_method_invocation, 2224s # void *data2); 2224s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2224s # GCClosure *cc = (GCClosure*) closure; 2224s # void *data1, *data2; 2224s # gboolean v_return; 2224s # 2224s # g_return_if_fail (return_value != NULL); 2224s # g_return_if_fail (n_param_values == 2); 2224s # 2224s # if (G_CCLOSURE_SWAP_DATA (closure)) 2224s # { 2224s # data1 = closure->data; 2224s # data2 = g_value_peek_pointer (param_values + 0); 2224s # } 2224s # else 2224s # { 2224s # data1 = g_value_peek_pointer (param_values + 0); 2224s # data2 = closure->data; 2224s # } 2224s # 2224s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2224s # (marshal_data ? marshal_data : cc->callback); 2224s # 2224s # v_return = 2224s # callback (data1, 2224s # g_marshal_value_peek_object (param_values + 1), 2224s # data2); 2224s # 2224s # g_value_set_boolean (return_value, v_return); 2224s # } 2224s # 2224s # /* ------------------------------------------------------------------------ 2224s # * Code for interface org.project.CallableIface 2224s # * ------------------------------------------------------------------------ 2224s # */ 2224s # 2224s # /** 2224s # * SECTION:OrgProjectCallableIface 2224s # * @title: OrgProjectCallableIface 2224s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 2224s # * 2224s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 2224s # */ 2224s # 2224s # /* ---- Introspection data for org.project.CallableIface ---- */ 2224s # 2224s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_simple_method = 2224s # { 2224s # { 2224s # -1, 2224s # (gchar *) "SimpleMethod", 2224s # NULL, 2224s # NULL, 2224s # NULL 2224s # }, 2224s # "handle-simple-method", 2224s # FALSE 2224s # }; 2224s # 2224s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 2224s # { 2224s # &_org_project_callable_iface_method_info_simple_method.parent_struct, 2224s # NULL 2224s # }; 2224s # 2224s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 2224s # { 2224s # { 2224s # -1, 2224s # (gchar *) "org.project.CallableIface", 2224s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 2224s # NULL, 2224s # NULL, 2224s # NULL 2224s # }, 2224s # "org-project-callable-iface", 2224s # }; 2224s # 2224s # 2224s # /** 2224s # * org_project_callable_iface_interface_info: 2224s # * 2224s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 2224s # * 2224s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2224s # */ 2224s # GDBusInterfaceInfo * 2224s # org_project_callable_iface_interface_info (void) 2224s # { 2224s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 2224s # } 2224s # 2224s # /** 2224s # * org_project_callable_iface_override_properties: 2224s # * @klass: The class structure for a #GObject derived class. 2224s # * @property_id_begin: The property id to assign to the first overridden property. 2224s # * 2224s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 2224s # * The properties are overridden in the order they are defined. 2224s # * 2224s # * Returns: The last property id. 2224s # */ 2224s # guint 2224s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2224s # { 2224s # return property_id_begin - 1; 2224s # } 2224s # 2224s # 2224s # inline static void 2224s # org_project_callable_iface_method_marshal_simple_method ( 2224s # GClosure *closure, 2224s # GValue *return_value, 2224s # unsigned int n_param_values, 2224s # const GValue *param_values, 2224s # void *invocation_hint, 2224s # void *marshal_data) 2224s # { 2224s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2224s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2224s # } 2224s # 2224s # 2224s # /** 2224s # * OrgProjectCallableIface: 2224s # * 2224s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 2224s # */ 2224s # 2224s # /** 2224s # * OrgProjectCallableIfaceIface: 2224s # * @parent_iface: The parent interface. 2224s # * @handle_simple_method: Handler for the #OrgProjectCallableIface::handle-simple-method signal. 2224s # * 2224s # * Virtual table for the D-Bus interface org.project.CallableIface. 2224s # */ 2224s # 2224s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 2224s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 2224s # 2224s # static void 2224s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 2224s # { 2224s # /* GObject signals for incoming D-Bus method calls: */ 2224s # /** 2224s # * OrgProjectCallableIface::handle-simple-method: 2224s # * @object: A #OrgProjectCallableIface. 2224s # * @invocation: A #GDBusMethodInvocation. 2224s # * 2224s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 2224s # * 2224s # * 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. 2224s # * 2224s # * 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. 2224s # */ 2224s # g_signal_new ("handle-simple-method", 2224s # G_TYPE_FROM_INTERFACE (iface), 2224s # G_SIGNAL_RUN_LAST, 2224s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_simple_method), 2224s # g_signal_accumulator_true_handled, 2224s # NULL, 2224s # org_project_callable_iface_method_marshal_simple_method, 2224s # G_TYPE_BOOLEAN, 2224s # 1, 2224s # G_TYPE_DBUS_METHOD_INVOCATION); 2224s # 2224s # } 2224s # 2224s # /** 2224s # * org_project_callable_iface_call_simple_method: 2224s # * @proxy: A #OrgProjectCallableIfaceProxy. 2224s # * @cancellable: (nullable): A #GCancellable or %NULL. 2224s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2224s # * @user_data: User data to pass to @callback. 2224s # * 2224s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 2224s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2224s # * You can then call org_project_callable_iface_call_simple_method_finish() to get the result of the operation. 2224s # * 2224s # * See org_project_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 2224s # */ 2224s # void 2224s # org_project_callable_iface_call_simple_method ( 2224s # OrgProjectCallableIface *proxy, 2224s # GCancellable *cancellable, 2224s # GAsyncReadyCallback callback, 2224s # gpointer user_data) 2224s # { 2224s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2224s # "SimpleMethod", 2224s # g_variant_new ("()"), 2224s # G_DBUS_CALL_FLAGS_NONE, 2224s # -1, 2224s # cancellable, 2224s # callback, 2224s # user_data); 2224s # } 2224s # 2224s # /** 2224s # * org_project_callable_iface_call_simple_method_finish: 2224s # * @proxy: A #OrgProjectCallableIfaceProxy. 2224s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_simple_method(). 2224s # * @error: Return location for error or %NULL. 2224s # * 2224s # * Finishes an operation started with org_project_callable_iface_call_simple_method(). 2224s # * 2224s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2224s # */ 2224s # gboolean 2224s # org_project_callable_iface_call_simple_method_finish ( 2224s # OrgProjectCallableIface *proxy, 2224s # GAsyncResult *res, 2224s # GError **error) 2224s # { 2224s # GVariant *_ret; 2224s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2224s # if (_ret == NULL) 2224s # goto _out; 2224s # g_variant_get (_ret, 2224s # "()"); 2224s # g_variant_unref (_ret); 2224s # _out: 2224s # return _ret != NULL; 2224s # } 2224s # 2224s # /** 2224s # * org_project_callable_iface_call_simple_method_sync: 2224s # * @proxy: A #OrgProjectCallableIfaceProxy. 2224s # * @cancellable: (nullable): A #GCancellable or %NULL. 2224s # * @error: Return location for error or %NULL. 2224s # * 2224s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2224s # * 2224s # * See org_project_callable_iface_call_simple_method() for the asynchronous version of this method. 2224s # * 2224s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2224s # */ 2224s # gboolean 2224s # org_project_callable_iface_call_simple_method_sync ( 2224s # OrgProjectCallableIface *proxy, 2224s # GCancellable *cancellable, 2224s # GError **error) 2224s # { 2224s # GVariant *_ret; 2224s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2224s # "SimpleMethod", 2224s # g_variant_new ("()"), 2224s # G_DBUS_CALL_FLAGS_NONE, 2224s # -1, 2224s # cancellable, 2224s # error); 2224s # if (_ret == NULL) 2224s # goto _out; 2224s # g_variant_get (_ret, 2224s # "()"); 2224s # g_variant_unref (_ret); 2224s # _out: 2224s # return _ret != NULL; 2224s # } 2224s # 2224s # /** 2224s # * org_project_callable_iface_complete_simple_method: 2224s # * @object: A #OrgProjectCallableIface. 2224s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2224s # * 2224s # * 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. 2224s # * 2224s # * This method will free @invocation, you cannot use it afterwards. 2224s # */ 2224s # void 2224s # org_project_callable_iface_complete_simple_method ( 2224s # OrgProjectCallableIface *object G_GNUC_UNUSED, 2224s # GDBusMethodInvocation *invocation) 2224s # { 2224s # g_dbus_method_invocation_return_value (invocation, 2224s # g_variant_new ("()")); 2224s # } 2224s # 2224s # /* ------------------------------------------------------------------------ */ 2224s # 2224s # /** 2224s # * OrgProjectCallableIfaceProxy: 2224s # * 2224s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 2224s # */ 2224s # 2224s # /** 2224s # * OrgProjectCallableIfaceProxyClass: 2224s # * @parent_class: The parent class. 2224s # * 2224s # * Class structure for #OrgProjectCallableIfaceProxy. 2224s # */ 2224s # 2224s # struct _OrgProjectCallableIfaceProxyPrivate 2224s # { 2224s # GData *qdata; 2224s # }; 2224s # 2224s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 2224s # 2224s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2224s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 2224s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 2224s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 2224s # 2224s # #else 2224s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 2224s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 2224s # 2224s # #endif 2224s # static void 2224s # org_project_callable_iface_proxy_finalize (GObject *object) 2224s # { 2224s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 2224s # g_datalist_clear (&proxy->priv->qdata); 2224s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 2224s # } 2224s # 2224s # static void 2224s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2224s # guint prop_id G_GNUC_UNUSED, 2224s # GValue *value G_GNUC_UNUSED, 2224s # GParamSpec *pspec G_GNUC_UNUSED) 2224s # { 2224s # } 2224s # 2224s # static void 2224s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2224s # guint prop_id G_GNUC_UNUSED, 2224s # const GValue *value G_GNUC_UNUSED, 2224s # GParamSpec *pspec G_GNUC_UNUSED) 2224s # { 2224s # } 2224s # 2224s # static void 2224s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 2224s # const gchar *sender_name G_GNUC_UNUSED, 2224s # const gchar *signal_name, 2224s # GVariant *parameters) 2224s # { 2224s # _ExtendedGDBusSignalInfo *info; 2224s # GVariantIter iter; 2224s # GVariant *child; 2224s # GValue *paramv; 2224s # gsize num_params; 2224s # gsize n; 2224s # guint signal_id; 2224s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 2224s # if (info == NULL) 2224s # return; 2224s # num_params = g_variant_n_children (parameters); 2224s # paramv = g_new0 (GValue, num_params + 1); 2224s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 2224s # g_value_set_object (¶mv[0], proxy); 2224s # g_variant_iter_init (&iter, parameters); 2224s # n = 1; 2224s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2224s # { 2224s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2224s # if (arg_info->use_gvariant) 2224s # { 2224s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2224s # g_value_set_variant (¶mv[n], child); 2224s # n++; 2224s # } 2224s # else 2224s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2224s # g_variant_unref (child); 2224s # } 2224s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 2224s # g_signal_emitv (paramv, signal_id, 0, NULL); 2224s # for (n = 0; n < num_params + 1; n++) 2224s # g_value_unset (¶mv[n]); 2224s # g_free (paramv); 2224s # } 2224s # 2224s # static void 2224s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2224s # GVariant *changed_properties, 2224s # const gchar *const *invalidated_properties) 2224s # { 2224s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 2224s # guint n; 2224s # const gchar *key; 2224s # GVariantIter *iter; 2224s # _ExtendedGDBusPropertyInfo *info; 2224s # g_variant_get (changed_properties, "a{sv}", &iter); 2224s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2224s # { 2224s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 2224s # g_datalist_remove_data (&proxy->priv->qdata, key); 2224s # if (info != NULL) 2224s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2224s # } 2224s # g_variant_iter_free (iter); 2224s # for (n = 0; invalidated_properties[n] != NULL; n++) 2224s # { 2224s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 2224s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2224s # if (info != NULL) 2224s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2224s # } 2224s # } 2224s # 2224s # static void 2224s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 2224s # { 2224s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2224s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 2224s # #else 2224s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 2224s # #endif 2224s # 2224s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 2224s # } 2224s # 2224s # static void 2224s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 2224s # { 2224s # GObjectClass *gobject_class; 2224s # GDBusProxyClass *proxy_class; 2224s # 2224s # gobject_class = G_OBJECT_CLASS (klass); 2224s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 2224s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 2224s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 2224s # 2224s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2224s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 2224s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 2224s # 2224s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2224s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 2224s # #endif 2224s # } 2224s # 2224s # static void 2224s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 2224s # { 2224s # } 2224s # 2224s # /** 2224s # * org_project_callable_iface_proxy_new: 2224s # * @connection: A #GDBusConnection. 2224s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2224s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2224s # * @object_path: An object path. 2224s # * @cancellable: (nullable): A #GCancellable or %NULL. 2224s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2224s # * @user_data: User data to pass to @callback. 2224s # * 2224s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 2224s # * 2224s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2224s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 2224s # * 2224s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2224s # */ 2224s # void 2224s # org_project_callable_iface_proxy_new ( 2224s # GDBusConnection *connection, 2224s # GDBusProxyFlags flags, 2224s # const gchar *name, 2224s # const gchar *object_path, 2224s # GCancellable *cancellable, 2224s # GAsyncReadyCallback callback, 2224s # gpointer user_data) 2224s # { 2224s # 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); 2224s # } 2224s # 2224s # /** 2224s # * org_project_callable_iface_proxy_new_finish: 2224s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 2224s # * @error: Return location for error or %NULL 2224s # * 2224s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 2224s # * 2224s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2224s # */ 2224s # OrgProjectCallableIface * 2224s # org_project_callable_iface_proxy_new_finish ( 2224s # GAsyncResult *res, 2224s # GError **error) 2224s # { 2224s # GObject *ret; 2224s # GObject *source_object; 2224s # source_object = g_async_result_get_source_object (res); 2224s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2224s # g_object_unref (source_object); 2224s # if (ret != NULL) 2224s # return ORG_PROJECT_CALLABLE_IFACE (ret); 2224s # else 2224s # return NULL; 2224s # } 2224s # 2224s # /** 2224s # * org_project_callable_iface_proxy_new_sync: 2224s # * @connection: A #GDBusConnection. 2224s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2224s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2224s # * @object_path: An object path. 2224s # * @cancellable: (nullable): A #GCancellable or %NULL. 2224s # * @error: Return location for error or %NULL 2224s # * 2224s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 2224s # * 2224s # * The calling thread is blocked until a reply is received. 2224s # * 2224s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 2224s # * 2224s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2224s # */ 2224s # OrgProjectCallableIface * 2224s # org_project_callable_iface_proxy_new_sync ( 2224s # GDBusConnection *connection, 2224s # GDBusProxyFlags flags, 2224s # const gchar *name, 2224s # const gchar *object_path, 2224s # GCancellable *cancellable, 2224s # GError **error) 2224s # { 2224s # GInitable *ret; 2224s # 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); 2224s # if (ret != NULL) 2224s # return ORG_PROJECT_CALLABLE_IFACE (ret); 2224s # else 2224s # return NULL; 2224s # } 2224s # 2224s # 2224s # /** 2224s # * org_project_callable_iface_proxy_new_for_bus: 2224s # * @bus_type: A #GBusType. 2224s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2224s # * @name: A bus name (well-known or unique). 2224s # * @object_path: An object path. 2224s # * @cancellable: (nullable): A #GCancellable or %NULL. 2224s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2224s # * @user_data: User data to pass to @callback. 2224s # * 2224s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2224s # * 2224s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2224s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 2224s # * 2224s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2224s # */ 2224s # void 2224s # org_project_callable_iface_proxy_new_for_bus ( 2224s # GBusType bus_type, 2224s # GDBusProxyFlags flags, 2224s # const gchar *name, 2224s # const gchar *object_path, 2224s # GCancellable *cancellable, 2224s # GAsyncReadyCallback callback, 2224s # gpointer user_data) 2224s # { 2224s # 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); 2224s # } 2224s # 2224s # /** 2224s # * org_project_callable_iface_proxy_new_for_bus_finish: 2224s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 2224s # * @error: Return location for error or %NULL 2224s # * 2224s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 2224s # * 2224s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2224s # */ 2224s # OrgProjectCallableIface * 2224s # org_project_callable_iface_proxy_new_for_bus_finish ( 2224s # GAsyncResult *res, 2224s # GError **error) 2224s # { 2224s # GObject *ret; 2224s # GObject *source_object; 2224s # source_object = g_async_result_get_source_object (res); 2224s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2224s # g_object_unref (source_object); 2224s # if (ret != NULL) 2224s # return ORG_PROJECT_CALLABLE_IFACE (ret); 2224s # else 2224s # return NULL; 2224s # } 2224s # 2224s # /** 2224s # * org_project_callable_iface_proxy_new_for_bus_sync: 2224s # * @bus_type: A #GBusType. 2224s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2224s # * @name: A bus name (well-known or unique). 2224s # * @object_path: An object path. 2224s # * @cancellable: (nullable): A #GCancellable or %NULL. 2224s # * @error: Return location for error or %NULL 2224s # * 2224s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2224s # * 2224s # * The calling thread is blocked until a reply is received. 2224s # * 2224s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2224s # * 2224s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2224s # */ 2224s # OrgProjectCallableIface * 2224s # org_project_callable_iface_proxy_new_for_bus_sync ( 2224s # GBusType bus_type, 2224s # GDBusProxyFlags flags, 2224s # const gchar *name, 2224s # const gchar *object_path, 2224s # GCancellable *cancellable, 2224s # GError **error) 2224s # { 2224s # GInitable *ret; 2224s # 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); 2224s # if (ret != NULL) 2224s # return ORG_PROJECT_CALLABLE_IFACE (ret); 2224s # else 2224s # return NULL; 2224s # } 2224s # 2224s # 2224s # /* ------------------------------------------------------------------------ */ 2224s # 2224s # /** 2224s # * OrgProjectCallableIfaceSkeleton: 2224s # * 2224s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2224s # */ 2224s # 2224s # /** 2224s # * OrgProjectCallableIfaceSkeletonClass: 2224s # * @parent_class: The parent class. 2224s # * 2224s # * Class structure for #OrgProjectCallableIfaceSkeleton. 2224s # */ 2224s # 2224s # struct _OrgProjectCallableIfaceSkeletonPrivate 2224s # { 2224s # GValue *properties; 2224s # GList *changed_properties; 2224s # GSource *changed_properties_idle_source; 2224s # GMainContext *context; 2224s # GMutex lock; 2224s # }; 2224s # 2224s # static void 2224s # _org_project_callable_iface_skeleton_handle_method_call ( 2224s # GDBusConnection *connection G_GNUC_UNUSED, 2224s # const gchar *sender G_GNUC_UNUSED, 2224s # const gchar *object_path G_GNUC_UNUSED, 2224s # const gchar *interface_name, 2224s # const gchar *method_name, 2224s # GVariant *parameters, 2224s # GDBusMethodInvocation *invocation, 2224s # gpointer user_data) 2224s # { 2224s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 2224s # _ExtendedGDBusMethodInfo *info; 2224s # GVariantIter iter; 2224s # GVariant *child; 2224s # GValue *paramv; 2224s # gsize num_params; 2224s # guint num_extra; 2224s # gsize n; 2224s # guint signal_id; 2224s # GValue return_value = G_VALUE_INIT; 2224s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2224s # g_assert (info != NULL); 2224s # num_params = g_variant_n_children (parameters); 2224s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2224s # n = 0; 2224s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 2224s # g_value_set_object (¶mv[n++], skeleton); 2224s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2224s # g_value_set_object (¶mv[n++], invocation); 2224s # if (info->pass_fdlist) 2224s # { 2224s # #ifdef G_OS_UNIX 2224s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2224s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2224s # #else 2224s # g_assert_not_reached (); 2224s # #endif 2224s # } 2224s # g_variant_iter_init (&iter, parameters); 2224s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2224s # { 2224s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2224s # if (arg_info->use_gvariant) 2224s # { 2224s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2224s # g_value_set_variant (¶mv[n], child); 2224s # n++; 2224s # } 2224s # else 2224s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2224s # g_variant_unref (child); 2224s # } 2224s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 2224s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2224s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2224s # if (!g_value_get_boolean (&return_value)) 2224s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2224s # g_value_unset (&return_value); 2224s # for (n = 0; n < num_params + num_extra; n++) 2224s # g_value_unset (¶mv[n]); 2224s # g_free (paramv); 2224s # } 2224s # 2224s # static GVariant * 2224s # _org_project_callable_iface_skeleton_handle_get_property ( 2224s # GDBusConnection *connection G_GNUC_UNUSED, 2224s # const gchar *sender G_GNUC_UNUSED, 2224s # const gchar *object_path G_GNUC_UNUSED, 2224s # const gchar *interface_name G_GNUC_UNUSED, 2224s # const gchar *property_name, 2224s # GError **error, 2224s # gpointer user_data) 2224s # { 2224s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 2224s # GValue value = G_VALUE_INIT; 2224s # GParamSpec *pspec; 2224s # _ExtendedGDBusPropertyInfo *info; 2224s # GVariant *ret; 2224s # ret = NULL; 2224s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 2224s # g_assert (info != NULL); 2224s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2224s # if (pspec == NULL) 2224s # { 2224s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2224s # } 2224s # else 2224s # { 2224s # g_value_init (&value, pspec->value_type); 2224s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2224s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2224s # g_value_unset (&value); 2224s # } 2224s # return ret; 2224s # } 2224s # 2224s # static gboolean 2224s # _org_project_callable_iface_skeleton_handle_set_property ( 2224s # GDBusConnection *connection G_GNUC_UNUSED, 2224s # const gchar *sender G_GNUC_UNUSED, 2224s # const gchar *object_path G_GNUC_UNUSED, 2224s # const gchar *interface_name G_GNUC_UNUSED, 2224s # const gchar *property_name, 2224s # GVariant *variant, 2224s # GError **error, 2224s # gpointer user_data) 2224s # { 2224s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 2224s # GValue value = G_VALUE_INIT; 2224s # GParamSpec *pspec; 2224s # _ExtendedGDBusPropertyInfo *info; 2224s # gboolean ret; 2224s # ret = FALSE; 2224s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 2224s # g_assert (info != NULL); 2224s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2224s # if (pspec == NULL) 2224s # { 2224s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2224s # } 2224s # else 2224s # { 2224s # if (info->use_gvariant) 2224s # g_value_set_variant (&value, variant); 2224s # else 2224s # g_dbus_gvariant_to_gvalue (variant, &value); 2224s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2224s # g_value_unset (&value); 2224s # ret = TRUE; 2224s # } 2224s # return ret; 2224s # } 2224s # 2224s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 2224s # { 2224s # _org_project_callable_iface_skeleton_handle_method_call, 2224s # _org_project_callable_iface_skeleton_handle_get_property, 2224s # _org_project_callable_iface_skeleton_handle_set_property, 2224s # {NULL} 2224s # }; 2224s # 2224s # static GDBusInterfaceInfo * 2224s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2224s # { 2224s # return org_project_callable_iface_interface_info (); 2224s # } 2224s # 2224s # static GDBusInterfaceVTable * 2224s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2224s # { 2224s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 2224s # } 2224s # 2224s # static GVariant * 2224s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2224s # { 2224s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 2224s # 2224s # GVariantBuilder builder; 2224s # guint n; 2224s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2224s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2224s # #else 2224s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2224s # #endif 2224s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 2224s # goto out; 2224s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2224s # { 2224s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 2224s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2224s # { 2224s # GVariant *value; 2224s # 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); 2224s # if (value != NULL) 2224s # { 2224s # g_variant_take_ref (value); 2224s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2224s # g_variant_unref (value); 2224s # } 2224s # } 2224s # } 2224s # out: 2224s # return g_variant_builder_end (&builder); 2224s # } 2224s # 2224s # static void 2224s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2224s # { 2224s # } 2224s # 2224s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 2224s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2224s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2224s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 2224s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 2224s # 2224s # #else 2224s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2224s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 2224s # 2224s # #endif 2224s # static void 2224s # org_project_callable_iface_skeleton_finalize (GObject *object) 2224s # { 2224s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 2224s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2224s # if (skeleton->priv->changed_properties_idle_source != NULL) 2224s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2224s # g_main_context_unref (skeleton->priv->context); 2224s # g_mutex_clear (&skeleton->priv->lock); 2224s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 2224s # } 2224s # 2224s # static void 2224s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 2224s # { 2224s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2224s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 2224s # #else 2224s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 2224s # #endif 2224s # 2224s # g_mutex_init (&skeleton->priv->lock); 2224s # skeleton->priv->context = g_main_context_ref_thread_default (); 2224s # } 2224s # 2224s # static void 2224s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 2224s # { 2224s # GObjectClass *gobject_class; 2224s # GDBusInterfaceSkeletonClass *skeleton_class; 2224s # 2224s # gobject_class = G_OBJECT_CLASS (klass); 2224s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 2224s # 2224s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2224s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 2224s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 2224s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 2224s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 2224s # 2224s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2224s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 2224s # #endif 2224s # } 2224s # 2224s # static void 2224s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 2224s # { 2224s # } 2224s # 2224s # /** 2224s # * org_project_callable_iface_skeleton_new: 2224s # * 2224s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 2224s # * 2224s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 2224s # */ 2224s # OrgProjectCallableIface * 2224s # org_project_callable_iface_skeleton_new (void) 2224s # { 2224s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 2224s # } 2224s # 2224s # /* ------------------------------------------------------------------------ 2224s # * Code for interface org.project.OtherCallableIface 2224s # * ------------------------------------------------------------------------ 2224s # */ 2224s # 2224s # /** 2224s # * SECTION:OrgProjectOtherCallableIface 2224s # * @title: OrgProjectOtherCallableIface 2224s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 2224s # * 2224s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 2224s # */ 2224s # 2224s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 2224s # 2224s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_simple_method = 2224s # { 2224s # { 2224s # -1, 2224s # (gchar *) "SimpleMethod", 2224s # NULL, 2224s # NULL, 2224s # NULL 2224s # }, 2224s # "handle-simple-method", 2224s # FALSE 2224s # }; 2224s # 2224s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 2224s # { 2224s # &_org_project_other_callable_iface_method_info_simple_method.parent_struct, 2224s # NULL 2224s # }; 2224s # 2224s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 2224s # { 2224s # { 2224s # -1, 2224s # (gchar *) "org.project.OtherCallableIface", 2224s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 2224s # NULL, 2224s # NULL, 2224s # NULL 2224s # }, 2224s # "org-project-other-callable-iface", 2224s # }; 2224s # 2224s # 2224s # /** 2224s # * org_project_other_callable_iface_interface_info: 2224s # * 2224s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 2224s # * 2224s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2224s # */ 2224s # GDBusInterfaceInfo * 2224s # org_project_other_callable_iface_interface_info (void) 2224s # { 2224s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 2224s # } 2224s # 2224s # /** 2224s # * org_project_other_callable_iface_override_properties: 2224s # * @klass: The class structure for a #GObject derived class. 2224s # * @property_id_begin: The property id to assign to the first overridden property. 2224s # * 2224s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 2224s # * The properties are overridden in the order they are defined. 2224s # * 2224s # * Returns: The last property id. 2224s # */ 2224s # guint 2224s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2224s # { 2224s # return property_id_begin - 1; 2224s # } 2224s # 2224s # 2224s # inline static void 2224s # org_project_other_callable_iface_method_marshal_simple_method ( 2224s # GClosure *closure, 2224s # GValue *return_value, 2224s # unsigned int n_param_values, 2224s # const GValue *param_values, 2224s # void *invocation_hint, 2224s # void *marshal_data) 2224s # { 2224s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2224s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2224s # } 2224s # 2224s # 2224s # /** 2224s # * OrgProjectOtherCallableIface: 2224s # * 2224s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 2224s # */ 2224s # 2224s # /** 2224s # * OrgProjectOtherCallableIfaceIface: 2224s # * @parent_iface: The parent interface. 2224s # * @handle_simple_method: Handler for the #OrgProjectOtherCallableIface::handle-simple-method signal. 2224s # * 2224s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 2224s # */ 2224s # 2224s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 2224s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 2224s # 2224s # static void 2224s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 2224s # { 2224s # /* GObject signals for incoming D-Bus method calls: */ 2224s # /** 2224s # * OrgProjectOtherCallableIface::handle-simple-method: 2224s # * @object: A #OrgProjectOtherCallableIface. 2224s # * @invocation: A #GDBusMethodInvocation. 2224s # * 2224s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 2224s # * 2224s # * 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. 2224s # * 2224s # * 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. 2224s # */ 2224s # g_signal_new ("handle-simple-method", 2224s # G_TYPE_FROM_INTERFACE (iface), 2224s # G_SIGNAL_RUN_LAST, 2224s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_simple_method), 2224s # g_signal_accumulator_true_handled, 2224s # NULL, 2224s # org_project_other_callable_iface_method_marshal_simple_method, 2224s # G_TYPE_BOOLEAN, 2224s # 1, 2224s # G_TYPE_DBUS_METHOD_INVOCATION); 2224s # 2224s # } 2224s # 2224s # /** 2224s # * org_project_other_callable_iface_call_simple_method: 2224s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 2224s # * @cancellable: (nullable): A #GCancellable or %NULL. 2224s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2224s # * @user_data: User data to pass to @callback. 2224s # * 2224s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 2224s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2224s # * You can then call org_project_other_callable_iface_call_simple_method_finish() to get the result of the operation. 2224s # * 2224s # * See org_project_other_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 2224s # */ 2224s # void 2224s # org_project_other_callable_iface_call_simple_method ( 2224s # OrgProjectOtherCallableIface *proxy, 2224s # GCancellable *cancellable, 2224s # GAsyncReadyCallback callback, 2224s # gpointer user_data) 2224s # { 2224s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2224s # "SimpleMethod", 2224s # g_variant_new ("()"), 2224s # G_DBUS_CALL_FLAGS_NONE, 2224s # -1, 2224s # cancellable, 2224s # callback, 2224s # user_data); 2224s # } 2224s # 2224s # /** 2224s # * org_project_other_callable_iface_call_simple_method_finish: 2224s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 2224s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_simple_method(). 2224s # * @error: Return location for error or %NULL. 2224s # * 2224s # * Finishes an operation started with org_project_other_callable_iface_call_simple_method(). 2224s # * 2224s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2224s # */ 2224s # gboolean 2224s # org_project_other_callable_iface_call_simple_method_finish ( 2224s # OrgProjectOtherCallableIface *proxy, 2224s # GAsyncResult *res, 2224s # GError **error) 2224s # { 2224s # GVariant *_ret; 2224s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2224s # if (_ret == NULL) 2224s # goto _out; 2224s # g_variant_get (_ret, 2224s # "()"); 2224s # g_variant_unref (_ret); 2224s # _out: 2224s # return _ret != NULL; 2224s # } 2224s # 2224s # /** 2224s # * org_project_other_callable_iface_call_simple_method_sync: 2224s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 2224s # * @cancellable: (nullable): A #GCancellable or %NULL. 2224s # * @error: Return location for error or %NULL. 2224s # * 2224s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2224s # * 2224s # * See org_project_other_callable_iface_call_simple_method() for the asynchronous version of this method. 2224s # * 2224s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2224s # */ 2224s # gboolean 2224s # org_project_other_callable_iface_call_simple_method_sync ( 2224s # OrgProjectOtherCallableIface *proxy, 2224s # GCancellable *cancellable, 2224s # GError **error) 2224s # { 2224s # GVariant *_ret; 2224s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2224s # "SimpleMethod", 2224s # g_variant_new ("()"), 2224s # G_DBUS_CALL_FLAGS_NONE, 2224s # -1, 2224s # cancellable, 2224s # error); 2224s # if (_ret == NULL) 2224s # goto _out; 2224s # g_variant_get (_ret, 2224s # "()"); 2224s # g_variant_unref (_ret); 2224s # _out: 2224s # return _ret != NULL; 2224s # } 2224s # 2224s # /** 2224s # * org_project_other_callable_iface_complete_simple_method: 2224s # * @object: A #OrgProjectOtherCallableIface. 2224s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2224s # * 2224s # * 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. 2224s # * 2224s # * This method will free @invocation, you cannot use it afterwards. 2224s # */ 2224s # void 2224s # org_project_other_callable_iface_complete_simple_method ( 2224s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 2224s # GDBusMethodInvocation *invocation) 2224s # { 2224s # g_dbus_method_invocation_return_value (invocation, 2224s # g_variant_new ("()")); 2224s # } 2224s # 2224s # /* ------------------------------------------------------------------------ */ 2224s # 2224s # /** 2224s # * OrgProjectOtherCallableIfaceProxy: 2224s # * 2224s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 2224s # */ 2224s # 2224s # /** 2224s # * OrgProjectOtherCallableIfaceProxyClass: 2224s # * @parent_class: The parent class. 2224s # * 2224s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 2224s # */ 2224s # 2224s # struct _OrgProjectOtherCallableIfaceProxyPrivate 2224s # { 2224s # GData *qdata; 2224s # }; 2224s # 2224s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 2224s # 2224s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2224s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 2224s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 2224s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 2224s # 2224s # #else 2224s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 2224s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 2224s # 2224s # #endif 2224s # static void 2224s # org_project_other_callable_iface_proxy_finalize (GObject *object) 2224s # { 2224s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 2224s # g_datalist_clear (&proxy->priv->qdata); 2224s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 2224s # } 2224s # 2224s # static void 2224s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2224s # guint prop_id G_GNUC_UNUSED, 2224s # GValue *value G_GNUC_UNUSED, 2224s # GParamSpec *pspec G_GNUC_UNUSED) 2224s # { 2224s # } 2224s # 2224s # static void 2224s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2224s # guint prop_id G_GNUC_UNUSED, 2224s # const GValue *value G_GNUC_UNUSED, 2224s # GParamSpec *pspec G_GNUC_UNUSED) 2224s # { 2224s # } 2224s # 2224s # static void 2224s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 2224s # const gchar *sender_name G_GNUC_UNUSED, 2224s # const gchar *signal_name, 2224s # GVariant *parameters) 2224s # { 2224s # _ExtendedGDBusSignalInfo *info; 2224s # GVariantIter iter; 2224s # GVariant *child; 2224s # GValue *paramv; 2224s # gsize num_params; 2224s # gsize n; 2224s # guint signal_id; 2224s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 2224s # if (info == NULL) 2224s # return; 2224s # num_params = g_variant_n_children (parameters); 2224s # paramv = g_new0 (GValue, num_params + 1); 2224s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 2224s # g_value_set_object (¶mv[0], proxy); 2224s # g_variant_iter_init (&iter, parameters); 2224s # n = 1; 2224s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2224s # { 2224s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2224s # if (arg_info->use_gvariant) 2224s # { 2224s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2224s # g_value_set_variant (¶mv[n], child); 2224s # n++; 2224s # } 2224s # else 2224s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2224s # g_variant_unref (child); 2224s # } 2224s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 2224s # g_signal_emitv (paramv, signal_id, 0, NULL); 2224s # for (n = 0; n < num_params + 1; n++) 2224s # g_value_unset (¶mv[n]); 2224s # g_free (paramv); 2224s # } 2224s # 2224s # static void 2224s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2224s # GVariant *changed_properties, 2224s # const gchar *const *invalidated_properties) 2224s # { 2224s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 2224s # guint n; 2224s # const gchar *key; 2224s # GVariantIter *iter; 2224s # _ExtendedGDBusPropertyInfo *info; 2224s # g_variant_get (changed_properties, "a{sv}", &iter); 2224s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2224s # { 2224s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 2224s # g_datalist_remove_data (&proxy->priv->qdata, key); 2224s # if (info != NULL) 2224s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2224s # } 2224s # g_variant_iter_free (iter); 2224s # for (n = 0; invalidated_properties[n] != NULL; n++) 2224s # { 2224s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 2224s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2224s # if (info != NULL) 2224s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2224s # } 2224s # } 2224s # 2224s # static void 2224s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 2224s # { 2224s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2224s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 2224s # #else 2224s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 2224s # #endif 2224s # 2224s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 2224s # } 2224s # 2224s # static void 2224s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 2224s # { 2224s # GObjectClass *gobject_class; 2224s # GDBusProxyClass *proxy_class; 2224s # 2224s # gobject_class = G_OBJECT_CLASS (klass); 2224s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 2224s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 2224s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 2224s # 2224s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2224s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 2224s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 2224s # 2224s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2224s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 2224s # #endif 2224s # } 2224s # 2224s # static void 2224s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 2224s # { 2224s # } 2224s # 2224s # /** 2224s # * org_project_other_callable_iface_proxy_new: 2224s # * @connection: A #GDBusConnection. 2224s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2224s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2224s # * @object_path: An object path. 2224s # * @cancellable: (nullable): A #GCancellable or %NULL. 2224s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2224s # * @user_data: User data to pass to @callback. 2224s # * 2224s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 2224s # * 2224s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2224s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 2224s # * 2224s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2224s # */ 2224s # void 2224s # org_project_other_callable_iface_proxy_new ( 2224s # GDBusConnection *connection, 2224s # GDBusProxyFlags flags, 2224s # const gchar *name, 2224s # const gchar *object_path, 2224s # GCancellable *cancellable, 2224s # GAsyncReadyCallback callback, 2224s # gpointer user_data) 2224s # { 2224s # 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); 2224s # } 2224s # 2224s # /** 2224s # * org_project_other_callable_iface_proxy_new_finish: 2224s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 2224s # * @error: Return location for error or %NULL 2224s # * 2224s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 2224s # * 2224s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2224s # */ 2224s # OrgProjectOtherCallableIface * 2224s # org_project_other_callable_iface_proxy_new_finish ( 2224s # GAsyncResult *res, 2224s # GError **error) 2224s # { 2224s # GObject *ret; 2224s # GObject *source_object; 2224s # source_object = g_async_result_get_source_object (res); 2224s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2224s # g_object_unref (source_object); 2224s # if (ret != NULL) 2224s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 2224s # else 2224s # return NULL; 2224s # } 2224s # 2224s # /** 2224s # * org_project_other_callable_iface_proxy_new_sync: 2224s # * @connection: A #GDBusConnection. 2224s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2224s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2224s # * @object_path: An object path. 2224s # * @cancellable: (nullable): A #GCancellable or %NULL. 2224s # * @error: Return location for error or %NULL 2224s # * 2224s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 2224s # * 2224s # * The calling thread is blocked until a reply is received. 2224s # * 2224s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 2224s # * 2224s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2224s # */ 2224s # OrgProjectOtherCallableIface * 2224s # org_project_other_callable_iface_proxy_new_sync ( 2224s # GDBusConnection *connection, 2224s # GDBusProxyFlags flags, 2224s # const gchar *name, 2224s # const gchar *object_path, 2224s # GCancellable *cancellable, 2224s # GError **error) 2224s # { 2224s # GInitable *ret; 2224s # 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); 2224s # if (ret != NULL) 2224s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 2224s # else 2224s # return NULL; 2224s # } 2224s # 2224s # 2224s # /** 2224s # * org_project_other_callable_iface_proxy_new_for_bus: 2224s # * @bus_type: A #GBusType. 2224s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2224s # * @name: A bus name (well-known or unique). 2224s # * @object_path: An object path. 2224s # * @cancellable: (nullable): A #GCancellable or %NULL. 2224s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2224s # * @user_data: User data to pass to @callback. 2224s # * 2224s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2224s # * 2224s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2224s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 2224s # * 2224s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2224s # */ 2224s # void 2224s # org_project_other_callable_iface_proxy_new_for_bus ( 2224s # GBusType bus_type, 2224s # GDBusProxyFlags flags, 2224s # const gchar *name, 2224s # const gchar *object_path, 2224s # GCancellable *cancellable, 2224s # GAsyncReadyCallback callback, 2224s # gpointer user_data) 2224s # { 2224s # 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); 2224s # } 2224s # 2224s # /** 2224s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 2224s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 2224s # * @error: Return location for error or %NULL 2224s # * 2224s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 2224s # * 2224s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2224s # */ 2224s # OrgProjectOtherCallableIface * 2224s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 2224s # GAsyncResult *res, 2224s # GError **error) 2224s # { 2224s # GObject *ret; 2224s # GObject *source_object; 2224s # source_object = g_async_result_get_source_object (res); 2224s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2224s # g_object_unref (source_object); 2224s # if (ret != NULL) 2224s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 2224s # else 2224s # return NULL; 2224s # } 2224s # 2224s # /** 2224s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 2224s # * @bus_type: A #GBusType. 2224s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2224s # * @name: A bus name (well-known or unique). 2224s # * @object_path: An object path. 2224s # * @cancellable: (nullable): A #GCancellable or %NULL. 2224s # * @error: Return location for error or %NULL 2224s # * 2224s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2224s # * 2224s # * The calling thread is blocked until a reply is received. 2224s # * 2224s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2224s # * 2224s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2224s # */ 2224s # OrgProjectOtherCallableIface * 2224s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 2224s # GBusType bus_type, 2224s # GDBusProxyFlags flags, 2224s # const gchar *name, 2224s # const gchar *object_path, 2224s # GCancellable *cancellable, 2224s # GError **error) 2224s # { 2224s # GInitable *ret; 2224s # 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); 2224s # if (ret != NULL) 2224s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 2224s # else 2224s # return NULL; 2224s # } 2224s # 2224s # 2224s # /* ------------------------------------------------------------------------ */ 2224s # 2224s # /** 2224s # * OrgProjectOtherCallableIfaceSkeleton: 2224s # * 2224s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2224s # */ 2224s # 2224s # /** 2224s # * OrgProjectOtherCallableIfaceSkeletonClass: 2224s # * @parent_class: The parent class. 2224s # * 2224s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 2224s # */ 2224s # 2224s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 2224s # { 2224s # GValue *properties; 2224s # GList *changed_properties; 2224s # GSource *changed_properties_idle_source; 2224s # GMainContext *context; 2224s # GMutex lock; 2224s # }; 2224s # 2224s # static void 2224s # _org_project_other_callable_iface_skeleton_handle_method_call ( 2224s # GDBusConnection *connection G_GNUC_UNUSED, 2224s # const gchar *sender G_GNUC_UNUSED, 2224s # const gchar *object_path G_GNUC_UNUSED, 2224s # const gchar *interface_name, 2224s # const gchar *method_name, 2224s # GVariant *parameters, 2224s # GDBusMethodInvocation *invocation, 2224s # gpointer user_data) 2224s # { 2224s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 2224s # _ExtendedGDBusMethodInfo *info; 2224s # GVariantIter iter; 2224s # GVariant *child; 2224s # GValue *paramv; 2224s # gsize num_params; 2224s # guint num_extra; 2224s # gsize n; 2224s # guint signal_id; 2224s # GValue return_value = G_VALUE_INIT; 2224s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2224s # g_assert (info != NULL); 2224s # num_params = g_variant_n_children (parameters); 2224s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2224s # n = 0; 2224s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 2224s # g_value_set_object (¶mv[n++], skeleton); 2224s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2224s # g_value_set_object (¶mv[n++], invocation); 2224s # if (info->pass_fdlist) 2224s # { 2224s # #ifdef G_OS_UNIX 2224s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2224s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2224s # #else 2224s # g_assert_not_reached (); 2224s # #endif 2224s # } 2224s # g_variant_iter_init (&iter, parameters); 2224s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2224s # { 2224s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2224s # if (arg_info->use_gvariant) 2224s # { 2224s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2224s # g_value_set_variant (¶mv[n], child); 2224s # n++; 2224s # } 2224s # else 2224s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2224s # g_variant_unref (child); 2224s # } 2224s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 2224s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2224s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2224s # if (!g_value_get_boolean (&return_value)) 2224s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2224s # g_value_unset (&return_value); 2224s # for (n = 0; n < num_params + num_extra; n++) 2224s # g_value_unset (¶mv[n]); 2224s # g_free (paramv); 2224s # } 2224s # 2224s # static GVariant * 2224s # _org_project_other_callable_iface_skeleton_handle_get_property ( 2224s # GDBusConnection *connection G_GNUC_UNUSED, 2224s # const gchar *sender G_GNUC_UNUSED, 2224s # const gchar *object_path G_GNUC_UNUSED, 2224s # const gchar *interface_name G_GNUC_UNUSED, 2224s # const gchar *property_name, 2224s # GError **error, 2224s # gpointer user_data) 2224s # { 2224s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 2224s # GValue value = G_VALUE_INIT; 2224s # GParamSpec *pspec; 2224s # _ExtendedGDBusPropertyInfo *info; 2224s # GVariant *ret; 2224s # ret = NULL; 2224s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 2224s # g_assert (info != NULL); 2224s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2224s # if (pspec == NULL) 2224s # { 2224s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2224s # } 2224s # else 2224s # { 2224s # g_value_init (&value, pspec->value_type); 2224s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2224s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2224s # g_value_unset (&value); 2224s # } 2224s # return ret; 2224s # } 2224s # 2224s # static gboolean 2224s # _org_project_other_callable_iface_skeleton_handle_set_property ( 2224s # GDBusConnection *connection G_GNUC_UNUSED, 2224s # const gchar *sender G_GNUC_UNUSED, 2224s # const gchar *object_path G_GNUC_UNUSED, 2224s # const gchar *interface_name G_GNUC_UNUSED, 2224s # const gchar *property_name, 2224s # GVariant *variant, 2224s # GError **error, 2224s # gpointer user_data) 2224s # { 2224s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 2224s # GValue value = G_VALUE_INIT; 2224s # GParamSpec *pspec; 2224s # _ExtendedGDBusPropertyInfo *info; 2224s # gboolean ret; 2224s # ret = FALSE; 2224s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 2224s # g_assert (info != NULL); 2224s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2224s # if (pspec == NULL) 2224s # { 2224s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2224s # } 2224s # else 2224s # { 2224s # if (info->use_gvariant) 2224s # g_value_set_variant (&value, variant); 2224s # else 2224s # g_dbus_gvariant_to_gvalue (variant, &value); 2224s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2224s # g_value_unset (&value); 2224s # ret = TRUE; 2224s # } 2224s # return ret; 2224s # } 2224s # 2224s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 2224s # { 2224s # _org_project_other_callable_iface_skeleton_handle_method_call, 2224s # _org_project_other_callable_iface_skeleton_handle_get_property, 2224s # _org_project_other_callable_iface_skeleton_handle_set_property, 2224s # {NULL} 2224s # }; 2224s # 2224s # static GDBusInterfaceInfo * 2224s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2224s # { 2224s # return org_project_other_callable_iface_interface_info (); 2224s # } 2224s # 2224s # static GDBusInterfaceVTable * 2224s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2224s # { 2224s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 2224s # } 2224s # 2224s # static GVariant * 2224s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2224s # { 2224s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 2224s # 2224s # GVariantBuilder builder; 2224s # guint n; 2224s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2224s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2224s # #else 2224s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2224s # #endif 2224s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 2224s # goto out; 2224s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2224s # { 2224s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 2224s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2224s # { 2224s # GVariant *value; 2224s # 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); 2224s # if (value != NULL) 2224s # { 2224s # g_variant_take_ref (value); 2224s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2224s # g_variant_unref (value); 2224s # } 2224s # } 2224s # } 2224s # out: 2224s # return g_variant_builder_end (&builder); 2224s # } 2224s # 2224s # static void 2224s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2224s # { 2224s # } 2224s # 2224s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 2224s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2224s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2224s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 2224s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 2224s # 2224s # #else 2224s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2224s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 2224s # 2224s # #endif 2224s # static void 2224s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 2224s # { 2224s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 2224s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2224s # if (skeleton->priv->changed_properties_idle_source != NULL) 2224s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2224s # g_main_context_unref (skeleton->priv->context); 2224s # g_mutex_clear (&skeleton->priv->lock); 2224s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 2224s # } 2224s # 2224s # static void 2224s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 2224s # { 2224s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2224s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 2224s # #else 2224s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 2224s # #endif 2224s # 2224s # g_mutex_init (&skeleton->priv->lock); 2224s # skeleton->priv->context = g_main_context_ref_thread_default (); 2224s # } 2224s # 2224s # static void 2224s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 2224s # { 2224s # GObjectClass *gobject_class; 2224s # GDBusInterfaceSkeletonClass *skeleton_class; 2224s # 2224s # gobject_class = G_OBJECT_CLASS (klass); 2224s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 2224s # 2224s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2224s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 2224s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 2224s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 2224s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 2224s # 2224s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2224s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 2224s # #endif 2224s # } 2224s # 2224s # static void 2224s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 2224s # { 2224s # } 2224s # 2224s # /** 2224s # * org_project_other_callable_iface_skeleton_new: 2224s # * 2224s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 2224s # * 2224s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 2224s # */ 2224s # OrgProjectOtherCallableIface * 2224s # org_project_other_callable_iface_skeleton_new (void) 2224s # { 2224s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 2224s # } 2224s # Error: 2228s # Executing: glib/codegen.py.test 2230s ok 10 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_in_args 2231s # gdbus-codegen: /usr/bin/gdbus-codegen 2231s # tmpdir: /tmp/tmphqc0uhkj 2231s # /tmp/tmphqc0uhkj/tmpj8e0licf.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmpj8e0licf.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # gboolean arg_arg_b, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectBooleanFunc callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_boolean (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_b", 2231s # (gchar *) "b", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodB", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-b", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_b ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_b: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-b", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_b, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_b: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_b: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_b ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # gboolean arg_arg_b, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodB", 2231s # g_variant_new ("(b)", 2231s # arg_arg_b), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_b_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_b_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_b_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_b: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_b_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # gboolean arg_arg_b, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodB", 2231s # g_variant_new ("(b)", 2231s # arg_arg_b), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_b: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_b ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2231s # 2231s # /tmp/tmphqc0uhkj/tmp97jarjh2.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmp97jarjh2.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # guchar arg_arg_y, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectUcharFunc callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_uchar (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_y", 2231s # (gchar *) "y", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodY", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-y", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_y ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_y: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-y", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_y, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UCHAR); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_y: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_y: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_y ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # guchar arg_arg_y, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodY", 2231s # g_variant_new ("(y)", 2231s # arg_arg_y), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_y_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_y_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_y_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_y: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_y_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # guchar arg_arg_y, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodY", 2231s # g_variant_new ("(y)", 2231s # arg_arg_y), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_y: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_y ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2231s # 2231s # /tmp/tmphqc0uhkj/tmpku1d_zns.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmpku1d_zns.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # gint16 arg_arg_n, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_int (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_n", 2231s # (gchar *) "n", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodN", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-n", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_n ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_n: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-n", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_n, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_n: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_n: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_n ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # gint16 arg_arg_n, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodN", 2231s # g_variant_new ("(n)", 2231s # arg_arg_n), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_n_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_n_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_n_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_n: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_n_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # gint16 arg_arg_n, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodN", 2231s # g_variant_new ("(n)", 2231s # arg_arg_n), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_n: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_n ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2231s # 2231s # /tmp/tmphqc0uhkj/tmpjuzmwmvq.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmpjuzmwmvq.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # guint16 arg_arg_q, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_uint (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_q", 2231s # (gchar *) "q", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodQ", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-q", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_q ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_q: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-q", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_q, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_q: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_q: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_q ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # guint16 arg_arg_q, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodQ", 2231s # g_variant_new ("(q)", 2231s # arg_arg_q), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_q_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_q_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_q_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_q: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_q_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # guint16 arg_arg_q, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodQ", 2231s # g_variant_new ("(q)", 2231s # arg_arg_q), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_q: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_q ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2231s # 2231s # /tmp/tmphqc0uhkj/tmpyn9lj5vu.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmpyn9lj5vu.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # gint arg_arg_i, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_int (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_i", 2231s # (gchar *) "i", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodI", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-i", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_i ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_i: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-i", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_i, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_i: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_i: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_i ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # gint arg_arg_i, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodI", 2231s # g_variant_new ("(i)", 2231s # arg_arg_i), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_i_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_i_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_i_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_i: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_i_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # gint arg_arg_i, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodI", 2231s # g_variant_new ("(i)", 2231s # arg_arg_i), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_i: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_i ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2231s # 2231s # /tmp/tmphqc0uhkj/tmp83c0rxjq.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmp83c0rxjq.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # guint arg_arg_u, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_uint (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_u", 2231s # (gchar *) "u", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodU", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-u", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_u ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_u: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-u", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_u, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_u: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_u: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_u ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # guint arg_arg_u, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodU", 2231s # g_variant_new ("(u)", 2231s # arg_arg_u), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_u_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_u_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_u_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_u: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_u_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # guint arg_arg_u, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodU", 2231s # g_variant_new ("(u)", 2231s # arg_arg_u), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_u: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_u ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2231s # 2231s # /tmp/tmphqc0uhkj/tmpplmdfzli.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmpplmdfzli.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectInt64Func) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # gint64 arg_arg_x, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectInt64Func callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectInt64Func) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_int64 (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_x", 2231s # (gchar *) "x", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodX", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-x", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_x ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_x: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-x", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_x, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT64); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_x: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_x: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_x ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # gint64 arg_arg_x, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodX", 2231s # g_variant_new ("(x)", 2231s # arg_arg_x), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_x_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_x_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_x_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_x: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_x_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # gint64 arg_arg_x, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodX", 2231s # g_variant_new ("(x)", 2231s # arg_arg_x), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_x: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_x ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2231s # 2231s # /tmp/tmphqc0uhkj/tmptuhnj4fh.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmptuhnj4fh.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUint64Func) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # guint64 arg_arg_t, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectUint64Func callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectUint64Func) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_uint64 (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_t", 2231s # (gchar *) "t", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodT", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-t", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_t ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_t: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-t", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_t, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT64); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_t: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_t: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_t ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # guint64 arg_arg_t, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodT", 2231s # g_variant_new ("(t)", 2231s # arg_arg_t), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_t_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_t_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_t_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_t: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_t_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # guint64 arg_arg_t, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodT", 2231s # g_variant_new ("(t)", 2231s # arg_arg_t), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_t: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_t ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2231s # 2231s # /tmp/tmphqc0uhkj/tmp4l_hilqn.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmp4l_hilqn.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # gdouble arg_arg_d, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectDoubleFunc callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_double (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_d", 2231s # (gchar *) "d", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodD", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-d", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_d ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_d: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-d", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_d, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_DOUBLE); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_d: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_d: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_d ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # gdouble arg_arg_d, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodD", 2231s # g_variant_new ("(d)", 2231s # arg_arg_d), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_d_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_d_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_d_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_d: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_d_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # gdouble arg_arg_d, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodD", 2231s # g_variant_new ("(d)", 2231s # arg_arg_d), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_d: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_d ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2231s # 2231s # /tmp/tmphqc0uhkj/tmpco61gxsn.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmpco61gxsn.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # const gchar *arg_arg_s, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_string (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_s", 2231s # (gchar *) "s", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodS", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-s", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_s ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_s: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-s", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_s, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_s: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_s: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_s ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # const gchar *arg_arg_s, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodS", 2231s # g_variant_new ("(s)", 2231s # arg_arg_s), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_s_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_s_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_s_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_s: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_s_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # const gchar *arg_arg_s, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodS", 2231s # g_variant_new ("(s)", 2231s # arg_arg_s), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_s: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_s ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2231s # 2231s # /tmp/tmphqc0uhkj/tmp9pyz5z9q.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmp9pyz5z9q.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # const gchar *arg_arg_o, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_string (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_o", 2231s # (gchar *) "o", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodO", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-o", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_o ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_o: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-o", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_o, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_o: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_o: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_o ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # const gchar *arg_arg_o, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodO", 2231s # g_variant_new ("(o)", 2231s # arg_arg_o), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_o_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_o_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_o_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_o: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_o_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # const gchar *arg_arg_o, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodO", 2231s # g_variant_new ("(o)", 2231s # arg_arg_o), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_o: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_o ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2231s # 2231s # /tmp/tmphqc0uhkj/tmpwkm8hl9r.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmpwkm8hl9r.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # const gchar *arg_arg_g, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_string (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_g", 2231s # (gchar *) "g", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodG", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-g", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_g ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_g: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-g", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_g, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_g: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_g: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_g ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # const gchar *arg_arg_g, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodG", 2231s # g_variant_new ("(g)", 2231s # arg_arg_g), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_g_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_g_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_g_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_g: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_g_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # const gchar *arg_arg_g, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodG", 2231s # g_variant_new ("(g)", 2231s # arg_arg_g), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_g: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_g ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2231s # 2231s # /tmp/tmphqc0uhkj/tmph4qe54h3.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmph4qe54h3.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # GVariant *arg_arg_h, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_variant (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_h", 2231s # (gchar *) "h", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodH", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-h", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_h ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_h: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-h", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_h, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_h: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_h: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_h ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GVariant *arg_arg_h, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodH", 2231s # g_variant_new ("(@h)", 2231s # arg_arg_h), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_h_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_h_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_h_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_h: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_h_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GVariant *arg_arg_h, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodH", 2231s # g_variant_new ("(@h)", 2231s # arg_arg_h), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_h: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_h ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2231s # 2231s # /tmp/tmphqc0uhkj/tmpvvujchjn.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmpvvujchjn.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # const gchar *arg_arg_ay, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_string (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_ay", 2231s # (gchar *) "ay", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodAy", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-ay", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_ay: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-ay", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_ay, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_ay: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_ay: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_ay ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # const gchar *arg_arg_ay, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodAy", 2231s # g_variant_new ("(^ay)", 2231s # arg_arg_ay), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_ay_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_ay_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_ay_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_ay: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_ay_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # const gchar *arg_arg_ay, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodAy", 2231s # g_variant_new ("(^ay)", 2231s # arg_arg_ay), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_ay: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_ay ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2231s # 2231s # /tmp/tmphqc0uhkj/tmpz1x1oi24.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmpz1x1oi24.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # const gchar *const *arg_arg_as, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_boxed (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_as", 2231s # (gchar *) "as", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodAs", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-as", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_as ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_as: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-as", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_as, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_as: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_as: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_as ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # const gchar *const *arg_arg_as, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodAs", 2231s # g_variant_new ("(^as)", 2231s # arg_arg_as), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_as_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_as_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_as_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_as: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_as_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # const gchar *const *arg_arg_as, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodAs", 2231s # g_variant_new ("(^as)", 2231s # arg_arg_as), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_as: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_as ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2231s # 2231s # /tmp/tmphqc0uhkj/tmp9wqq3k5l.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmp9wqq3k5l.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # const gchar *const *arg_arg_ao, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_boxed (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_ao", 2231s # (gchar *) "ao", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodAo", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-ao", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_ao: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-ao", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_ao, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_ao: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_ao: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_ao ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # const gchar *const *arg_arg_ao, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodAo", 2231s # g_variant_new ("(^ao)", 2231s # arg_arg_ao), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_ao_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_ao_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_ao_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_ao: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_ao_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # const gchar *const *arg_arg_ao, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodAo", 2231s # g_variant_new ("(^ao)", 2231s # arg_arg_ao), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_ao: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_ao ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2231s # 2231s # /tmp/tmphqc0uhkj/tmppbf49679.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmppbf49679.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # const gchar *const *arg_arg_aay, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_boxed (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_aay", 2231s # (gchar *) "aay", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodAay", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-aay", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_aay: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-aay", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_aay, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_aay: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_aay: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_aay ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # const gchar *const *arg_arg_aay, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodAay", 2231s # g_variant_new ("(^aay)", 2231s # arg_arg_aay), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_aay_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_aay_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_aay_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_aay: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_aay_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # const gchar *const *arg_arg_aay, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodAay", 2231s # g_variant_new ("(^aay)", 2231s # arg_arg_aay), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_aay: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_aay ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2231s # 2231s # /tmp/tmphqc0uhkj/tmp6oi3mkmk.xml: 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # 2231s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqc0uhkj/tmp6oi3mkmk.xml', '--output', '-', '--body'] 2231s # Return code: 0 2231s # Output: 2231s # /* 2231s # * This file is generated by gdbus-codegen, do not modify it. 2231s # * 2231s # * The license of this code is the same as for the D-Bus interface description 2231s # * it was derived from. Note that it links to GLib, so must comply with the 2231s # * LGPL linking clauses. 2231s # */ 2231s # 2231s # #ifdef HAVE_CONFIG_H 2231s # # include "config.h" 2231s # #endif 2231s # 2231s # #include 2231s # #ifdef G_OS_UNIX 2231s # # include 2231s # #endif 2231s # 2231s # #ifdef G_ENABLE_DEBUG 2231s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2231s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2231s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2231s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2231s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2231s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2231s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2231s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2231s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2231s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2231s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2231s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2231s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2231s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2231s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2231s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2231s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2231s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2231s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2231s # #else /* !G_ENABLE_DEBUG */ 2231s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2231s # * Do not access GValues directly in your code. Instead, use the 2231s # * g_value_get_*() functions 2231s # */ 2231s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2231s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2231s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2231s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2231s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2231s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2231s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2231s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2231s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2231s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2231s # #endif /* !G_ENABLE_DEBUG */ 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusArgInfo parent_struct; 2231s # gboolean use_gvariant; 2231s # } _ExtendedGDBusArgInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusMethodInfo parent_struct; 2231s # const gchar *signal_name; 2231s # gboolean pass_fdlist; 2231s # } _ExtendedGDBusMethodInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusSignalInfo parent_struct; 2231s # const gchar *signal_name; 2231s # } _ExtendedGDBusSignalInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusPropertyInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # guint use_gvariant : 1; 2231s # guint emits_changed_signal : 1; 2231s # } _ExtendedGDBusPropertyInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # GDBusInterfaceInfo parent_struct; 2231s # const gchar *hyphen_name; 2231s # } _ExtendedGDBusInterfaceInfo; 2231s # 2231s # typedef struct 2231s # { 2231s # const _ExtendedGDBusPropertyInfo *info; 2231s # guint prop_id; 2231s # GValue orig_value; /* the value before the change */ 2231s # } ChangedProperty; 2231s # 2231s # static void 2231s # _changed_property_free (ChangedProperty *data) 2231s # { 2231s # g_value_unset (&data->orig_value); 2231s # g_free (data); 2231s # } 2231s # 2231s # static gboolean 2231s # _g_strv_equal0 (gchar **a, gchar **b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # guint n; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # if (g_strv_length (a) != g_strv_length (b)) 2231s # goto out; 2231s # for (n = 0; a[n] != NULL; n++) 2231s # if (g_strcmp0 (a[n], b[n]) != 0) 2231s # goto out; 2231s # ret = TRUE; 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _g_variant_equal0 (GVariant *a, GVariant *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # if (a == NULL && b == NULL) 2231s # { 2231s # ret = TRUE; 2231s # goto out; 2231s # } 2231s # if (a == NULL || b == NULL) 2231s # goto out; 2231s # ret = g_variant_equal (a, b); 2231s # out: 2231s # return ret; 2231s # } 2231s # 2231s # G_GNUC_UNUSED static gboolean 2231s # _g_value_equal (const GValue *a, const GValue *b) 2231s # { 2231s # gboolean ret = FALSE; 2231s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2231s # switch (G_VALUE_TYPE (a)) 2231s # { 2231s # case G_TYPE_BOOLEAN: 2231s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2231s # break; 2231s # case G_TYPE_UCHAR: 2231s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2231s # break; 2231s # case G_TYPE_INT: 2231s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2231s # break; 2231s # case G_TYPE_UINT: 2231s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2231s # break; 2231s # case G_TYPE_INT64: 2231s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2231s # break; 2231s # case G_TYPE_UINT64: 2231s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2231s # break; 2231s # case G_TYPE_DOUBLE: 2231s # { 2231s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2231s # gdouble da = g_value_get_double (a); 2231s # gdouble db = g_value_get_double (b); 2231s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2231s # } 2231s # break; 2231s # case G_TYPE_STRING: 2231s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2231s # break; 2231s # case G_TYPE_VARIANT: 2231s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2231s # break; 2231s # default: 2231s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2231s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2231s # else 2231s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2231s # break; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static void 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint G_GNUC_UNUSED, 2231s # void *marshal_data) 2231s # { 2231s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 2231s # (void *data1, 2231s # GDBusMethodInvocation *arg_method_invocation, 2231s # GVariant *arg_arg_asv, 2231s # void *data2); 2231s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 2231s # GCClosure *cc = (GCClosure*) closure; 2231s # void *data1, *data2; 2231s # gboolean v_return; 2231s # 2231s # g_return_if_fail (return_value != NULL); 2231s # g_return_if_fail (n_param_values == 3); 2231s # 2231s # if (G_CCLOSURE_SWAP_DATA (closure)) 2231s # { 2231s # data1 = closure->data; 2231s # data2 = g_value_peek_pointer (param_values + 0); 2231s # } 2231s # else 2231s # { 2231s # data1 = g_value_peek_pointer (param_values + 0); 2231s # data2 = closure->data; 2231s # } 2231s # 2231s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 2231s # (marshal_data ? marshal_data : cc->callback); 2231s # 2231s # v_return = 2231s # callback (data1, 2231s # g_marshal_value_peek_object (param_values + 1), 2231s # g_marshal_value_peek_variant (param_values + 2), 2231s # data2); 2231s # 2231s # g_value_set_boolean (return_value, v_return); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ 2231s # * Code for interface org.project.UsefulInterface 2231s # * ------------------------------------------------------------------------ 2231s # */ 2231s # 2231s # /** 2231s # * SECTION:OrgProjectUsefulInterface 2231s # * @title: OrgProjectUsefulInterface 2231s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2231s # * 2231s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2231s # */ 2231s # 2231s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2231s # 2231s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "arg_asv", 2231s # (gchar *) "a{sv}", 2231s # NULL 2231s # }, 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "SingleArgMethodAsv", 2231s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "handle-single-arg-method-asv", 2231s # FALSE 2231s # }; 2231s # 2231s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2231s # { 2231s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 2231s # NULL 2231s # }; 2231s # 2231s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2231s # { 2231s # { 2231s # -1, 2231s # (gchar *) "org.project.UsefulInterface", 2231s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2231s # NULL, 2231s # NULL, 2231s # NULL 2231s # }, 2231s # "org-project-useful-interface", 2231s # }; 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_interface_info: 2231s # * 2231s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2231s # * 2231s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2231s # */ 2231s # GDBusInterfaceInfo * 2231s # org_project_useful_interface_interface_info (void) 2231s # { 2231s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_override_properties: 2231s # * @klass: The class structure for a #GObject derived class. 2231s # * @property_id_begin: The property id to assign to the first overridden property. 2231s # * 2231s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2231s # * The properties are overridden in the order they are defined. 2231s # * 2231s # * Returns: The last property id. 2231s # */ 2231s # guint 2231s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2231s # { 2231s # return property_id_begin - 1; 2231s # } 2231s # 2231s # 2231s # inline static void 2231s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 2231s # GClosure *closure, 2231s # GValue *return_value, 2231s # unsigned int n_param_values, 2231s # const GValue *param_values, 2231s # void *invocation_hint, 2231s # void *marshal_data) 2231s # { 2231s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 2231s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2231s # } 2231s # 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterface: 2231s # * 2231s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceIface: 2231s # * @parent_iface: The parent interface. 2231s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 2231s # * 2231s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2231s # */ 2231s # 2231s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2231s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2231s # 2231s # static void 2231s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2231s # { 2231s # /* GObject signals for incoming D-Bus method calls: */ 2231s # /** 2231s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: A #GDBusMethodInvocation. 2231s # * @arg_arg_asv: Argument passed by remote caller. 2231s # * 2231s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 2231s # * 2231s # * 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. 2231s # * 2231s # * 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. 2231s # */ 2231s # g_signal_new ("handle-single-arg-method-asv", 2231s # G_TYPE_FROM_INTERFACE (iface), 2231s # G_SIGNAL_RUN_LAST, 2231s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 2231s # g_signal_accumulator_true_handled, 2231s # NULL, 2231s # org_project_useful_interface_method_marshal_single_arg_method_asv, 2231s # G_TYPE_BOOLEAN, 2231s # 2, 2231s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 2231s # 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_asv: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_asv: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 2231s # */ 2231s # void 2231s # org_project_useful_interface_call_single_arg_method_asv ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GVariant *arg_arg_asv, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodAsv", 2231s # g_variant_new ("(@a{sv})", 2231s # arg_arg_asv), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # callback, 2231s # user_data); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_asv_finish: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_asv_finish ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_call_single_arg_method_asv_sync: 2231s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2231s # * @arg_arg_asv: Argument to pass with the method invocation. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL. 2231s # * 2231s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 2231s # * 2231s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2231s # */ 2231s # gboolean 2231s # org_project_useful_interface_call_single_arg_method_asv_sync ( 2231s # OrgProjectUsefulInterface *proxy, 2231s # GVariant *arg_arg_asv, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GVariant *_ret; 2231s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2231s # "SingleArgMethodAsv", 2231s # g_variant_new ("(@a{sv})", 2231s # arg_arg_asv), 2231s # G_DBUS_CALL_FLAGS_NONE, 2231s # -1, 2231s # cancellable, 2231s # error); 2231s # if (_ret == NULL) 2231s # goto _out; 2231s # g_variant_get (_ret, 2231s # "()"); 2231s # g_variant_unref (_ret); 2231s # _out: 2231s # return _ret != NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_complete_single_arg_method_asv: 2231s # * @object: A #OrgProjectUsefulInterface. 2231s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2231s # * 2231s # * 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. 2231s # * 2231s # * This method will free @invocation, you cannot use it afterwards. 2231s # */ 2231s # void 2231s # org_project_useful_interface_complete_single_arg_method_asv ( 2231s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2231s # GDBusMethodInvocation *invocation) 2231s # { 2231s # g_dbus_method_invocation_return_value (invocation, 2231s # g_variant_new ("()")); 2231s # } 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxy: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceProxyClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceProxyPrivate 2231s # { 2231s # GData *qdata; 2231s # }; 2231s # 2231s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_proxy_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2231s # g_datalist_clear (&proxy->priv->qdata); 2231s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2231s # guint prop_id G_GNUC_UNUSED, 2231s # const GValue *value G_GNUC_UNUSED, 2231s # GParamSpec *pspec G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2231s # const gchar *sender_name G_GNUC_UNUSED, 2231s # const gchar *signal_name, 2231s # GVariant *parameters) 2231s # { 2231s # _ExtendedGDBusSignalInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # gsize n; 2231s # guint signal_id; 2231s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2231s # if (info == NULL) 2231s # return; 2231s # num_params = g_variant_n_children (parameters); 2231s # paramv = g_new0 (GValue, num_params + 1); 2231s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[0], proxy); 2231s # g_variant_iter_init (&iter, parameters); 2231s # n = 1; 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_signal_emitv (paramv, signal_id, 0, NULL); 2231s # for (n = 0; n < num_params + 1; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2231s # GVariant *changed_properties, 2231s # const gchar *const *invalidated_properties) 2231s # { 2231s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2231s # guint n; 2231s # const gchar *key; 2231s # GVariantIter *iter; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # g_variant_get (changed_properties, "a{sv}", &iter); 2231s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2231s # g_datalist_remove_data (&proxy->priv->qdata, key); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # g_variant_iter_free (iter); 2231s # for (n = 0; invalidated_properties[n] != NULL; n++) 2231s # { 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2231s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2231s # if (info != NULL) 2231s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2231s # } 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2231s # #else 2231s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2231s # #endif 2231s # 2231s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusProxyClass *proxy_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2231s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2231s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2231s # 2231s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2231s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2231s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_sync: 2231s # * @connection: A #GDBusConnection. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_sync ( 2231s # GDBusConnection *connection, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2231s # * @user_data: User data to pass to @callback. 2231s # * 2231s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2231s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2231s # */ 2231s # void 2231s # org_project_useful_interface_proxy_new_for_bus ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GAsyncReadyCallback callback, 2231s # gpointer user_data) 2231s # { 2231s # g_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); 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_finish: 2231s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_finish ( 2231s # GAsyncResult *res, 2231s # GError **error) 2231s # { 2231s # GObject *ret; 2231s # GObject *source_object; 2231s # source_object = g_async_result_get_source_object (res); 2231s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2231s # g_object_unref (source_object); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_proxy_new_for_bus_sync: 2231s # * @bus_type: A #GBusType. 2231s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2231s # * @name: A bus name (well-known or unique). 2231s # * @object_path: An object path. 2231s # * @cancellable: (nullable): A #GCancellable or %NULL. 2231s # * @error: Return location for error or %NULL 2231s # * 2231s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2231s # * 2231s # * The calling thread is blocked until a reply is received. 2231s # * 2231s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_proxy_new_for_bus_sync ( 2231s # GBusType bus_type, 2231s # GDBusProxyFlags flags, 2231s # const gchar *name, 2231s # const gchar *object_path, 2231s # GCancellable *cancellable, 2231s # GError **error) 2231s # { 2231s # GInitable *ret; 2231s # 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); 2231s # if (ret != NULL) 2231s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2231s # else 2231s # return NULL; 2231s # } 2231s # 2231s # 2231s # /* ------------------------------------------------------------------------ */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeleton: 2231s # * 2231s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2231s # */ 2231s # 2231s # /** 2231s # * OrgProjectUsefulInterfaceSkeletonClass: 2231s # * @parent_class: The parent class. 2231s # * 2231s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2231s # */ 2231s # 2231s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2231s # { 2231s # GValue *properties; 2231s # GList *changed_properties; 2231s # GSource *changed_properties_idle_source; 2231s # GMainContext *context; 2231s # GMutex lock; 2231s # }; 2231s # 2231s # static void 2231s # _org_project_useful_interface_skeleton_handle_method_call ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name, 2231s # const gchar *method_name, 2231s # GVariant *parameters, 2231s # GDBusMethodInvocation *invocation, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # _ExtendedGDBusMethodInfo *info; 2231s # GVariantIter iter; 2231s # GVariant *child; 2231s # GValue *paramv; 2231s # gsize num_params; 2231s # guint num_extra; 2231s # gsize n; 2231s # guint signal_id; 2231s # GValue return_value = G_VALUE_INIT; 2231s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2231s # g_assert (info != NULL); 2231s # num_params = g_variant_n_children (parameters); 2231s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2231s # n = 0; 2231s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_set_object (¶mv[n++], skeleton); 2231s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2231s # g_value_set_object (¶mv[n++], invocation); 2231s # if (info->pass_fdlist) 2231s # { 2231s # #ifdef G_OS_UNIX 2231s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2231s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2231s # #else 2231s # g_assert_not_reached (); 2231s # #endif 2231s # } 2231s # g_variant_iter_init (&iter, parameters); 2231s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2231s # { 2231s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2231s # if (arg_info->use_gvariant) 2231s # { 2231s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2231s # g_value_set_variant (¶mv[n], child); 2231s # n++; 2231s # } 2231s # else 2231s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2231s # g_variant_unref (child); 2231s # } 2231s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2231s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2231s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2231s # if (!g_value_get_boolean (&return_value)) 2231s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2231s # g_value_unset (&return_value); 2231s # for (n = 0; n < num_params + num_extra; n++) 2231s # g_value_unset (¶mv[n]); 2231s # g_free (paramv); 2231s # } 2231s # 2231s # static GVariant * 2231s # _org_project_useful_interface_skeleton_handle_get_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # GVariant *ret; 2231s # ret = NULL; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # g_value_init (&value, pspec->value_type); 2231s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2231s # g_value_unset (&value); 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static gboolean 2231s # _org_project_useful_interface_skeleton_handle_set_property ( 2231s # GDBusConnection *connection G_GNUC_UNUSED, 2231s # const gchar *sender G_GNUC_UNUSED, 2231s # const gchar *object_path G_GNUC_UNUSED, 2231s # const gchar *interface_name G_GNUC_UNUSED, 2231s # const gchar *property_name, 2231s # GVariant *variant, 2231s # GError **error, 2231s # gpointer user_data) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2231s # GValue value = G_VALUE_INIT; 2231s # GParamSpec *pspec; 2231s # _ExtendedGDBusPropertyInfo *info; 2231s # gboolean ret; 2231s # ret = FALSE; 2231s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2231s # g_assert (info != NULL); 2231s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2231s # if (pspec == NULL) 2231s # { 2231s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2231s # } 2231s # else 2231s # { 2231s # if (info->use_gvariant) 2231s # g_value_set_variant (&value, variant); 2231s # else 2231s # g_dbus_gvariant_to_gvalue (variant, &value); 2231s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2231s # g_value_unset (&value); 2231s # ret = TRUE; 2231s # } 2231s # return ret; 2231s # } 2231s # 2231s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2231s # { 2231s # _org_project_useful_interface_skeleton_handle_method_call, 2231s # _org_project_useful_interface_skeleton_handle_get_property, 2231s # _org_project_useful_interface_skeleton_handle_set_property, 2231s # {NULL} 2231s # }; 2231s # 2231s # static GDBusInterfaceInfo * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return org_project_useful_interface_interface_info (); 2231s # } 2231s # 2231s # static GDBusInterfaceVTable * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2231s # { 2231s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2231s # } 2231s # 2231s # static GVariant * 2231s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2231s # 2231s # GVariantBuilder builder; 2231s # guint n; 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2231s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #else 2231s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2231s # #endif 2231s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2231s # goto out; 2231s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2231s # { 2231s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2231s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2231s # { 2231s # GVariant *value; 2231s # 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); 2231s # if (value != NULL) 2231s # { 2231s # g_variant_take_ref (value); 2231s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2231s # g_variant_unref (value); 2231s # } 2231s # } 2231s # } 2231s # out: 2231s # return g_variant_builder_end (&builder); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #else 2231s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2231s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2231s # 2231s # #endif 2231s # static void 2231s # org_project_useful_interface_skeleton_finalize (GObject *object) 2231s # { 2231s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2231s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2231s # if (skeleton->priv->changed_properties_idle_source != NULL) 2231s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2231s # g_main_context_unref (skeleton->priv->context); 2231s # g_mutex_clear (&skeleton->priv->lock); 2231s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2231s # { 2231s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2231s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2231s # #else 2231s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2231s # #endif 2231s # 2231s # g_mutex_init (&skeleton->priv->lock); 2231s # skeleton->priv->context = g_main_context_ref_thread_default (); 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2231s # { 2231s # GObjectClass *gobject_class; 2231s # GDBusInterfaceSkeletonClass *skeleton_class; 2231s # 2231s # gobject_class = G_OBJECT_CLASS (klass); 2231s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2231s # 2231s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2231s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2231s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2231s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2231s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2231s # 2231s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2231s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2231s # #endif 2231s # } 2231s # 2231s # static void 2231s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2231s # { 2231s # } 2231s # 2231s # /** 2231s # * org_project_useful_interface_skeleton_new: 2231s # * 2231s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2231s # * 2231s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2231s # */ 2231s # OrgProjectUsefulInterface * 2231s # org_project_useful_interface_skeleton_new (void) 2231s # { 2231s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2231s # } 2231s # Error: 2233s # Executing: glib/codegen.py.test 2236s ok 11 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_out_args 2236s # gdbus-codegen: /usr/bin/gdbus-codegen 2236s # tmpdir: /tmp/tmp31ta582y 2236s # /tmp/tmp31ta582y/tmpzptw52dy.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmpzptw52dy.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_b", 2236s # (gchar *) "b", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodB", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-b", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_b ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-b", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_b, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_b: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_b ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodB", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_b_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_b_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gboolean *out_arg_b, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(b)", 2236s # out_arg_b); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_b_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_b_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gboolean *out_arg_b, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodB", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(b)", 2236s # out_arg_b); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_b: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_b: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_b ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # gboolean arg_b) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(b)", 2236s # arg_b)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2236s # 2236s # /tmp/tmp31ta582y/tmpjbvg671g.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmpjbvg671g.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_y", 2236s # (gchar *) "y", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodY", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-y", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_y ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-y", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_y, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_y: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_y ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodY", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_y_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_y_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # guchar *out_arg_y, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(y)", 2236s # out_arg_y); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_y_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_y_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # guchar *out_arg_y, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodY", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(y)", 2236s # out_arg_y); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_y: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_y: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_y ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # guchar arg_y) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(y)", 2236s # arg_y)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2236s # 2236s # /tmp/tmp31ta582y/tmpcux40cd4.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmpcux40cd4.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_n", 2236s # (gchar *) "n", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodN", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-n", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_n ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-n", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_n, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_n: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_n ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodN", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_n_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_n_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gint16 *out_arg_n, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(n)", 2236s # out_arg_n); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_n_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_n_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gint16 *out_arg_n, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodN", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(n)", 2236s # out_arg_n); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_n: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_n: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_n ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # gint16 arg_n) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(n)", 2236s # arg_n)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2236s # 2236s # /tmp/tmp31ta582y/tmpb76kar85.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmpb76kar85.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_q", 2236s # (gchar *) "q", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodQ", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-q", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_q ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-q", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_q, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_q: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_q ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodQ", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_q_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_q_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # guint16 *out_arg_q, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(q)", 2236s # out_arg_q); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_q_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_q_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # guint16 *out_arg_q, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodQ", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(q)", 2236s # out_arg_q); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_q: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_q: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_q ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # guint16 arg_q) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(q)", 2236s # arg_q)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2236s # 2236s # /tmp/tmp31ta582y/tmplficc020.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmplficc020.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_i", 2236s # (gchar *) "i", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodI", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-i", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_i ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-i", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_i, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_i: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_i ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodI", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_i_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_i_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gint *out_arg_i, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(i)", 2236s # out_arg_i); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_i_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_i_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gint *out_arg_i, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodI", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(i)", 2236s # out_arg_i); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_i: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_i: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_i ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # gint arg_i) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(i)", 2236s # arg_i)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2236s # 2236s # /tmp/tmp31ta582y/tmp7_afl55k.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmp7_afl55k.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_u", 2236s # (gchar *) "u", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodU", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-u", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_u ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-u", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_u, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_u: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_u ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodU", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_u_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_u_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # guint *out_arg_u, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(u)", 2236s # out_arg_u); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_u_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_u_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # guint *out_arg_u, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodU", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(u)", 2236s # out_arg_u); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_u: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_u: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_u ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # guint arg_u) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(u)", 2236s # arg_u)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2236s # 2236s # /tmp/tmp31ta582y/tmp73e5i3ny.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmp73e5i3ny.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_x", 2236s # (gchar *) "x", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodX", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-x", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_x ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-x", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_x, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_x: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_x ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodX", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_x_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_x_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gint64 *out_arg_x, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(x)", 2236s # out_arg_x); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_x_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_x_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gint64 *out_arg_x, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodX", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(x)", 2236s # out_arg_x); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_x: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_x: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_x ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # gint64 arg_x) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(x)", 2236s # arg_x)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2236s # 2236s # /tmp/tmp31ta582y/tmpq9fozvvc.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmpq9fozvvc.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_t", 2236s # (gchar *) "t", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodT", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-t", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_t ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-t", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_t, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_t: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_t ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodT", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_t_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_t_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # guint64 *out_arg_t, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(t)", 2236s # out_arg_t); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_t_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_t_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # guint64 *out_arg_t, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodT", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(t)", 2236s # out_arg_t); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_t: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_t: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_t ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # guint64 arg_t) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(t)", 2236s # arg_t)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2236s # 2236s # /tmp/tmp31ta582y/tmpwrjqzuzn.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmpwrjqzuzn.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_d", 2236s # (gchar *) "d", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodD", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-d", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_d ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-d", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_d, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_d: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_d ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodD", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_d_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_d_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gdouble *out_arg_d, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(d)", 2236s # out_arg_d); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_d_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_d_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gdouble *out_arg_d, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodD", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(d)", 2236s # out_arg_d); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_d: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_d: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_d ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # gdouble arg_d) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(d)", 2236s # arg_d)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2236s # 2236s # /tmp/tmp31ta582y/tmpndhcxzie.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmpndhcxzie.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_s", 2236s # (gchar *) "s", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodS", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-s", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_s ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-s", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_s, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_s: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_s ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodS", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_s_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_s_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gchar **out_arg_s, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(s)", 2236s # out_arg_s); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_s_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_s_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gchar **out_arg_s, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodS", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(s)", 2236s # out_arg_s); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_s: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_s: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_s ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # const gchar *arg_s) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(s)", 2236s # arg_s)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2236s # 2236s # /tmp/tmp31ta582y/tmp7hbtr6mt.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmp7hbtr6mt.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_o", 2236s # (gchar *) "o", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodO", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-o", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_o ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-o", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_o, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_o: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_o ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodO", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_o_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_o_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gchar **out_arg_o, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(o)", 2236s # out_arg_o); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_o_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_o_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gchar **out_arg_o, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodO", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(o)", 2236s # out_arg_o); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_o: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_o: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_o ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # const gchar *arg_o) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(o)", 2236s # arg_o)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2236s # 2236s # /tmp/tmp31ta582y/tmp2nxe8lgn.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmp2nxe8lgn.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_g", 2236s # (gchar *) "g", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodG", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-g", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_g ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-g", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_g, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_g: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_g ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodG", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_g_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_g_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gchar **out_arg_g, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(g)", 2236s # out_arg_g); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_g_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_g_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gchar **out_arg_g, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodG", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(g)", 2236s # out_arg_g); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_g: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_g: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_g ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # const gchar *arg_g) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(g)", 2236s # arg_g)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2236s # 2236s # /tmp/tmp31ta582y/tmpb_9cu_ac.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmpb_9cu_ac.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_h", 2236s # (gchar *) "h", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodH", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-h", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_h ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-h", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_h, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_h: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_h ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodH", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_h_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_h_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GVariant **out_arg_h, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(@h)", 2236s # out_arg_h); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_h_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_h_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GVariant **out_arg_h, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodH", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(@h)", 2236s # out_arg_h); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_h: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_h: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_h ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # GVariant *arg_h) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(@h)", 2236s # arg_h)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2236s # 2236s # /tmp/tmp31ta582y/tmpt4sp4ki8.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmpt4sp4ki8.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_ay", 2236s # (gchar *) "ay", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodAy", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-ay", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-ay", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_ay, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_ay: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_ay ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodAy", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_ay_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_ay_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gchar **out_arg_ay, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(^ay)", 2236s # out_arg_ay); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_ay_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_ay_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gchar **out_arg_ay, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodAy", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(^ay)", 2236s # out_arg_ay); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_ay: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_ay: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_ay ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # const gchar *arg_ay) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(^ay)", 2236s # arg_ay)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2236s # 2236s # /tmp/tmp31ta582y/tmp4diiy1k8.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmp4diiy1k8.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_as", 2236s # (gchar *) "as", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodAs", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-as", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_as ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-as", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_as, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_as: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_as ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodAs", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_as_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_as_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gchar ***out_arg_as, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(^as)", 2236s # out_arg_as); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_as_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_as_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gchar ***out_arg_as, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodAs", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(^as)", 2236s # out_arg_as); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_as: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_as: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_as ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # const gchar *const *arg_as) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(^as)", 2236s # arg_as)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2236s # 2236s # /tmp/tmp31ta582y/tmpnpclsycf.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmpnpclsycf.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_ao", 2236s # (gchar *) "ao", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodAo", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-ao", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-ao", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_ao, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_ao: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_ao ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodAo", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_ao_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_ao_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gchar ***out_arg_ao, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(^ao)", 2236s # out_arg_ao); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_ao_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_ao_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gchar ***out_arg_ao, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodAo", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(^ao)", 2236s # out_arg_ao); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_ao: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_ao: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_ao ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # const gchar *const *arg_ao) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(^ao)", 2236s # arg_ao)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2236s # 2236s # /tmp/tmp31ta582y/tmpcpsf5n95.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmpcpsf5n95.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_aay", 2236s # (gchar *) "aay", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodAay", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-aay", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-aay", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_aay, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_aay: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_aay ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodAay", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_aay_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_aay_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gchar ***out_arg_aay, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(^aay)", 2236s # out_arg_aay); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_aay_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_aay_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # gchar ***out_arg_aay, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodAay", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(^aay)", 2236s # out_arg_aay); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_aay: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_aay: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_aay ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # const gchar *const *arg_aay) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(^aay)", 2236s # arg_aay)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2236s # 2236s # /tmp/tmp31ta582y/tmp1bz8h238.xml: 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # 2236s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp31ta582y/tmp1bz8h238.xml', '--output', '-', '--body'] 2236s # Return code: 0 2236s # Output: 2236s # /* 2236s # * This file is generated by gdbus-codegen, do not modify it. 2236s # * 2236s # * The license of this code is the same as for the D-Bus interface description 2236s # * it was derived from. Note that it links to GLib, so must comply with the 2236s # * LGPL linking clauses. 2236s # */ 2236s # 2236s # #ifdef HAVE_CONFIG_H 2236s # # include "config.h" 2236s # #endif 2236s # 2236s # #include 2236s # #ifdef G_OS_UNIX 2236s # # include 2236s # #endif 2236s # 2236s # #ifdef G_ENABLE_DEBUG 2236s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2236s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2236s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2236s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2236s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2236s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2236s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2236s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2236s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2236s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2236s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2236s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2236s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2236s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2236s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2236s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2236s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2236s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2236s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2236s # #else /* !G_ENABLE_DEBUG */ 2236s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2236s # * Do not access GValues directly in your code. Instead, use the 2236s # * g_value_get_*() functions 2236s # */ 2236s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2236s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2236s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2236s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2236s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2236s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2236s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2236s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2236s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2236s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2236s # #endif /* !G_ENABLE_DEBUG */ 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusArgInfo parent_struct; 2236s # gboolean use_gvariant; 2236s # } _ExtendedGDBusArgInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusMethodInfo parent_struct; 2236s # const gchar *signal_name; 2236s # gboolean pass_fdlist; 2236s # } _ExtendedGDBusMethodInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusSignalInfo parent_struct; 2236s # const gchar *signal_name; 2236s # } _ExtendedGDBusSignalInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusPropertyInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # guint use_gvariant : 1; 2236s # guint emits_changed_signal : 1; 2236s # } _ExtendedGDBusPropertyInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # GDBusInterfaceInfo parent_struct; 2236s # const gchar *hyphen_name; 2236s # } _ExtendedGDBusInterfaceInfo; 2236s # 2236s # typedef struct 2236s # { 2236s # const _ExtendedGDBusPropertyInfo *info; 2236s # guint prop_id; 2236s # GValue orig_value; /* the value before the change */ 2236s # } ChangedProperty; 2236s # 2236s # static void 2236s # _changed_property_free (ChangedProperty *data) 2236s # { 2236s # g_value_unset (&data->orig_value); 2236s # g_free (data); 2236s # } 2236s # 2236s # static gboolean 2236s # _g_strv_equal0 (gchar **a, gchar **b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # guint n; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # if (g_strv_length (a) != g_strv_length (b)) 2236s # goto out; 2236s # for (n = 0; a[n] != NULL; n++) 2236s # if (g_strcmp0 (a[n], b[n]) != 0) 2236s # goto out; 2236s # ret = TRUE; 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _g_variant_equal0 (GVariant *a, GVariant *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # if (a == NULL && b == NULL) 2236s # { 2236s # ret = TRUE; 2236s # goto out; 2236s # } 2236s # if (a == NULL || b == NULL) 2236s # goto out; 2236s # ret = g_variant_equal (a, b); 2236s # out: 2236s # return ret; 2236s # } 2236s # 2236s # G_GNUC_UNUSED static gboolean 2236s # _g_value_equal (const GValue *a, const GValue *b) 2236s # { 2236s # gboolean ret = FALSE; 2236s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2236s # switch (G_VALUE_TYPE (a)) 2236s # { 2236s # case G_TYPE_BOOLEAN: 2236s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2236s # break; 2236s # case G_TYPE_UCHAR: 2236s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2236s # break; 2236s # case G_TYPE_INT: 2236s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2236s # break; 2236s # case G_TYPE_UINT: 2236s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2236s # break; 2236s # case G_TYPE_INT64: 2236s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2236s # break; 2236s # case G_TYPE_UINT64: 2236s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2236s # break; 2236s # case G_TYPE_DOUBLE: 2236s # { 2236s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2236s # gdouble da = g_value_get_double (a); 2236s # gdouble db = g_value_get_double (b); 2236s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2236s # } 2236s # break; 2236s # case G_TYPE_STRING: 2236s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2236s # break; 2236s # case G_TYPE_VARIANT: 2236s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2236s # break; 2236s # default: 2236s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2236s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2236s # else 2236s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2236s # break; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static void 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint G_GNUC_UNUSED, 2236s # void *marshal_data) 2236s # { 2236s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (void *data1, 2236s # GDBusMethodInvocation *arg_method_invocation, 2236s # void *data2); 2236s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2236s # GCClosure *cc = (GCClosure*) closure; 2236s # void *data1, *data2; 2236s # gboolean v_return; 2236s # 2236s # g_return_if_fail (return_value != NULL); 2236s # g_return_if_fail (n_param_values == 2); 2236s # 2236s # if (G_CCLOSURE_SWAP_DATA (closure)) 2236s # { 2236s # data1 = closure->data; 2236s # data2 = g_value_peek_pointer (param_values + 0); 2236s # } 2236s # else 2236s # { 2236s # data1 = g_value_peek_pointer (param_values + 0); 2236s # data2 = closure->data; 2236s # } 2236s # 2236s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2236s # (marshal_data ? marshal_data : cc->callback); 2236s # 2236s # v_return = 2236s # callback (data1, 2236s # g_marshal_value_peek_object (param_values + 1), 2236s # data2); 2236s # 2236s # g_value_set_boolean (return_value, v_return); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ 2236s # * Code for interface org.project.UsefulInterface 2236s # * ------------------------------------------------------------------------ 2236s # */ 2236s # 2236s # /** 2236s # * SECTION:OrgProjectUsefulInterface 2236s # * @title: OrgProjectUsefulInterface 2236s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2236s # * 2236s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2236s # */ 2236s # 2236s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2236s # 2236s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "arg_asv", 2236s # (gchar *) "a{sv}", 2236s # NULL 2236s # }, 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "SingleArgMethodAsv", 2236s # NULL, 2236s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers, 2236s # NULL 2236s # }, 2236s # "handle-single-arg-method-asv", 2236s # FALSE 2236s # }; 2236s # 2236s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 2236s # { 2236s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 2236s # NULL 2236s # }; 2236s # 2236s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2236s # { 2236s # { 2236s # -1, 2236s # (gchar *) "org.project.UsefulInterface", 2236s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 2236s # NULL, 2236s # NULL, 2236s # NULL 2236s # }, 2236s # "org-project-useful-interface", 2236s # }; 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_interface_info: 2236s # * 2236s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2236s # * 2236s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2236s # */ 2236s # GDBusInterfaceInfo * 2236s # org_project_useful_interface_interface_info (void) 2236s # { 2236s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_override_properties: 2236s # * @klass: The class structure for a #GObject derived class. 2236s # * @property_id_begin: The property id to assign to the first overridden property. 2236s # * 2236s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2236s # * The properties are overridden in the order they are defined. 2236s # * 2236s # * Returns: The last property id. 2236s # */ 2236s # guint 2236s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2236s # { 2236s # return property_id_begin - 1; 2236s # } 2236s # 2236s # 2236s # inline static void 2236s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 2236s # GClosure *closure, 2236s # GValue *return_value, 2236s # unsigned int n_param_values, 2236s # const GValue *param_values, 2236s # void *invocation_hint, 2236s # void *marshal_data) 2236s # { 2236s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2236s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2236s # } 2236s # 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterface: 2236s # * 2236s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceIface: 2236s # * @parent_iface: The parent interface. 2236s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 2236s # * 2236s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2236s # */ 2236s # 2236s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2236s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2236s # 2236s # static void 2236s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2236s # { 2236s # /* GObject signals for incoming D-Bus method calls: */ 2236s # /** 2236s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: A #GDBusMethodInvocation. 2236s # * 2236s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 2236s # * 2236s # * 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. 2236s # * 2236s # * 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. 2236s # */ 2236s # g_signal_new ("handle-single-arg-method-asv", 2236s # G_TYPE_FROM_INTERFACE (iface), 2236s # G_SIGNAL_RUN_LAST, 2236s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 2236s # g_signal_accumulator_true_handled, 2236s # NULL, 2236s # org_project_useful_interface_method_marshal_single_arg_method_asv, 2236s # G_TYPE_BOOLEAN, 2236s # 1, 2236s # G_TYPE_DBUS_METHOD_INVOCATION); 2236s # 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_asv: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 2236s # */ 2236s # void 2236s # org_project_useful_interface_call_single_arg_method_asv ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodAsv", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # callback, 2236s # user_data); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_asv_finish: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_asv_finish ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GVariant **out_arg_asv, 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(@a{sv})", 2236s # out_arg_asv); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_call_single_arg_method_asv_sync: 2236s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 2236s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL. 2236s # * 2236s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 2236s # * 2236s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2236s # */ 2236s # gboolean 2236s # org_project_useful_interface_call_single_arg_method_asv_sync ( 2236s # OrgProjectUsefulInterface *proxy, 2236s # GVariant **out_arg_asv, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GVariant *_ret; 2236s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2236s # "SingleArgMethodAsv", 2236s # g_variant_new ("()"), 2236s # G_DBUS_CALL_FLAGS_NONE, 2236s # -1, 2236s # cancellable, 2236s # error); 2236s # if (_ret == NULL) 2236s # goto _out; 2236s # g_variant_get (_ret, 2236s # "(@a{sv})", 2236s # out_arg_asv); 2236s # g_variant_unref (_ret); 2236s # _out: 2236s # return _ret != NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_complete_single_arg_method_asv: 2236s # * @object: A #OrgProjectUsefulInterface. 2236s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2236s # * @arg_asv: Parameter to return. 2236s # * 2236s # * 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. 2236s # * 2236s # * This method will free @invocation, you cannot use it afterwards. 2236s # */ 2236s # void 2236s # org_project_useful_interface_complete_single_arg_method_asv ( 2236s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 2236s # GDBusMethodInvocation *invocation, 2236s # GVariant *arg_asv) 2236s # { 2236s # g_dbus_method_invocation_return_value (invocation, 2236s # g_variant_new ("(@a{sv})", 2236s # arg_asv)); 2236s # } 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxy: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceProxyClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceProxyPrivate 2236s # { 2236s # GData *qdata; 2236s # }; 2236s # 2236s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_proxy_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2236s # g_datalist_clear (&proxy->priv->qdata); 2236s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2236s # guint prop_id G_GNUC_UNUSED, 2236s # const GValue *value G_GNUC_UNUSED, 2236s # GParamSpec *pspec G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2236s # const gchar *sender_name G_GNUC_UNUSED, 2236s # const gchar *signal_name, 2236s # GVariant *parameters) 2236s # { 2236s # _ExtendedGDBusSignalInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # gsize n; 2236s # guint signal_id; 2236s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2236s # if (info == NULL) 2236s # return; 2236s # num_params = g_variant_n_children (parameters); 2236s # paramv = g_new0 (GValue, num_params + 1); 2236s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[0], proxy); 2236s # g_variant_iter_init (&iter, parameters); 2236s # n = 1; 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_signal_emitv (paramv, signal_id, 0, NULL); 2236s # for (n = 0; n < num_params + 1; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2236s # GVariant *changed_properties, 2236s # const gchar *const *invalidated_properties) 2236s # { 2236s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2236s # guint n; 2236s # const gchar *key; 2236s # GVariantIter *iter; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # g_variant_get (changed_properties, "a{sv}", &iter); 2236s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2236s # g_datalist_remove_data (&proxy->priv->qdata, key); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # g_variant_iter_free (iter); 2236s # for (n = 0; invalidated_properties[n] != NULL; n++) 2236s # { 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2236s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2236s # if (info != NULL) 2236s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2236s # } 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2236s # #else 2236s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2236s # #endif 2236s # 2236s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusProxyClass *proxy_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2236s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2236s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2236s # 2236s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2236s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2236s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_sync: 2236s # * @connection: A #GDBusConnection. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_sync ( 2236s # GDBusConnection *connection, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2236s # * @user_data: User data to pass to @callback. 2236s # * 2236s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2236s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2236s # */ 2236s # void 2236s # org_project_useful_interface_proxy_new_for_bus ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GAsyncReadyCallback callback, 2236s # gpointer user_data) 2236s # { 2236s # g_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); 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_finish: 2236s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_finish ( 2236s # GAsyncResult *res, 2236s # GError **error) 2236s # { 2236s # GObject *ret; 2236s # GObject *source_object; 2236s # source_object = g_async_result_get_source_object (res); 2236s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2236s # g_object_unref (source_object); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_proxy_new_for_bus_sync: 2236s # * @bus_type: A #GBusType. 2236s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2236s # * @name: A bus name (well-known or unique). 2236s # * @object_path: An object path. 2236s # * @cancellable: (nullable): A #GCancellable or %NULL. 2236s # * @error: Return location for error or %NULL 2236s # * 2236s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2236s # * 2236s # * The calling thread is blocked until a reply is received. 2236s # * 2236s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_proxy_new_for_bus_sync ( 2236s # GBusType bus_type, 2236s # GDBusProxyFlags flags, 2236s # const gchar *name, 2236s # const gchar *object_path, 2236s # GCancellable *cancellable, 2236s # GError **error) 2236s # { 2236s # GInitable *ret; 2236s # 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); 2236s # if (ret != NULL) 2236s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2236s # else 2236s # return NULL; 2236s # } 2236s # 2236s # 2236s # /* ------------------------------------------------------------------------ */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeleton: 2236s # * 2236s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2236s # */ 2236s # 2236s # /** 2236s # * OrgProjectUsefulInterfaceSkeletonClass: 2236s # * @parent_class: The parent class. 2236s # * 2236s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2236s # */ 2236s # 2236s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2236s # { 2236s # GValue *properties; 2236s # GList *changed_properties; 2236s # GSource *changed_properties_idle_source; 2236s # GMainContext *context; 2236s # GMutex lock; 2236s # }; 2236s # 2236s # static void 2236s # _org_project_useful_interface_skeleton_handle_method_call ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name, 2236s # const gchar *method_name, 2236s # GVariant *parameters, 2236s # GDBusMethodInvocation *invocation, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # _ExtendedGDBusMethodInfo *info; 2236s # GVariantIter iter; 2236s # GVariant *child; 2236s # GValue *paramv; 2236s # gsize num_params; 2236s # guint num_extra; 2236s # gsize n; 2236s # guint signal_id; 2236s # GValue return_value = G_VALUE_INIT; 2236s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2236s # g_assert (info != NULL); 2236s # num_params = g_variant_n_children (parameters); 2236s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2236s # n = 0; 2236s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_set_object (¶mv[n++], skeleton); 2236s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2236s # g_value_set_object (¶mv[n++], invocation); 2236s # if (info->pass_fdlist) 2236s # { 2236s # #ifdef G_OS_UNIX 2236s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2236s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2236s # #else 2236s # g_assert_not_reached (); 2236s # #endif 2236s # } 2236s # g_variant_iter_init (&iter, parameters); 2236s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2236s # { 2236s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2236s # if (arg_info->use_gvariant) 2236s # { 2236s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2236s # g_value_set_variant (¶mv[n], child); 2236s # n++; 2236s # } 2236s # else 2236s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2236s # g_variant_unref (child); 2236s # } 2236s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2236s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2236s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2236s # if (!g_value_get_boolean (&return_value)) 2236s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2236s # g_value_unset (&return_value); 2236s # for (n = 0; n < num_params + num_extra; n++) 2236s # g_value_unset (¶mv[n]); 2236s # g_free (paramv); 2236s # } 2236s # 2236s # static GVariant * 2236s # _org_project_useful_interface_skeleton_handle_get_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # GVariant *ret; 2236s # ret = NULL; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # g_value_init (&value, pspec->value_type); 2236s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2236s # g_value_unset (&value); 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static gboolean 2236s # _org_project_useful_interface_skeleton_handle_set_property ( 2236s # GDBusConnection *connection G_GNUC_UNUSED, 2236s # const gchar *sender G_GNUC_UNUSED, 2236s # const gchar *object_path G_GNUC_UNUSED, 2236s # const gchar *interface_name G_GNUC_UNUSED, 2236s # const gchar *property_name, 2236s # GVariant *variant, 2236s # GError **error, 2236s # gpointer user_data) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2236s # GValue value = G_VALUE_INIT; 2236s # GParamSpec *pspec; 2236s # _ExtendedGDBusPropertyInfo *info; 2236s # gboolean ret; 2236s # ret = FALSE; 2236s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2236s # g_assert (info != NULL); 2236s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2236s # if (pspec == NULL) 2236s # { 2236s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2236s # } 2236s # else 2236s # { 2236s # if (info->use_gvariant) 2236s # g_value_set_variant (&value, variant); 2236s # else 2236s # g_dbus_gvariant_to_gvalue (variant, &value); 2236s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2236s # g_value_unset (&value); 2236s # ret = TRUE; 2236s # } 2236s # return ret; 2236s # } 2236s # 2236s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2236s # { 2236s # _org_project_useful_interface_skeleton_handle_method_call, 2236s # _org_project_useful_interface_skeleton_handle_get_property, 2236s # _org_project_useful_interface_skeleton_handle_set_property, 2236s # {NULL} 2236s # }; 2236s # 2236s # static GDBusInterfaceInfo * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return org_project_useful_interface_interface_info (); 2236s # } 2236s # 2236s # static GDBusInterfaceVTable * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2236s # { 2236s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2236s # } 2236s # 2236s # static GVariant * 2236s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2236s # 2236s # GVariantBuilder builder; 2236s # guint n; 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2236s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #else 2236s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2236s # #endif 2236s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2236s # goto out; 2236s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2236s # { 2236s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2236s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2236s # { 2236s # GVariant *value; 2236s # 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); 2236s # if (value != NULL) 2236s # { 2236s # g_variant_take_ref (value); 2236s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2236s # g_variant_unref (value); 2236s # } 2236s # } 2236s # } 2236s # out: 2236s # return g_variant_builder_end (&builder); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #else 2236s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2236s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2236s # 2236s # #endif 2236s # static void 2236s # org_project_useful_interface_skeleton_finalize (GObject *object) 2236s # { 2236s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2236s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2236s # if (skeleton->priv->changed_properties_idle_source != NULL) 2236s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2236s # g_main_context_unref (skeleton->priv->context); 2236s # g_mutex_clear (&skeleton->priv->lock); 2236s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2236s # { 2236s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2236s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2236s # #else 2236s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2236s # #endif 2236s # 2236s # g_mutex_init (&skeleton->priv->lock); 2236s # skeleton->priv->context = g_main_context_ref_thread_default (); 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2236s # { 2236s # GObjectClass *gobject_class; 2236s # GDBusInterfaceSkeletonClass *skeleton_class; 2236s # 2236s # gobject_class = G_OBJECT_CLASS (klass); 2236s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2236s # 2236s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2236s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2236s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2236s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2236s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2236s # 2236s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2236s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2236s # #endif 2236s # } 2236s # 2236s # static void 2236s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2236s # { 2236s # } 2236s # 2236s # /** 2236s # * org_project_useful_interface_skeleton_new: 2236s # * 2236s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2236s # * 2236s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2236s # */ 2236s # OrgProjectUsefulInterface * 2236s # org_project_useful_interface_skeleton_new (void) 2236s # { 2236s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2236s # } 2236s # Error: 2237s ok 12 __main__.TestCodegen.test_generate_methods_marshallers_multiple_in_args 2237s # gdbus-codegen: /usr/bin/gdbus-codegen 2237s # tmpdir: /tmp/tmp7z_7exs3 2237s # /tmp/tmp7z_7exs3/tmp7vcutsfh.xml: 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7z_7exs3/tmp7vcutsfh.xml', '--output', '-', '--body'] 2237s # Return code: 0 2237s # Output: 2237s # /* 2237s # * This file is generated by gdbus-codegen, do not modify it. 2237s # * 2237s # * The license of this code is the same as for the D-Bus interface description 2237s # * it was derived from. Note that it links to GLib, so must comply with the 2237s # * LGPL linking clauses. 2237s # */ 2237s # 2237s # #ifdef HAVE_CONFIG_H 2237s # # include "config.h" 2237s # #endif 2237s # 2237s # #include 2237s # #ifdef G_OS_UNIX 2237s # # include 2237s # #endif 2237s # 2237s # #ifdef G_ENABLE_DEBUG 2237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2237s # #else /* !G_ENABLE_DEBUG */ 2237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2237s # * Do not access GValues directly in your code. Instead, use the 2237s # * g_value_get_*() functions 2237s # */ 2237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2237s # #endif /* !G_ENABLE_DEBUG */ 2237s # 2237s # typedef struct 2237s # { 2237s # GDBusArgInfo parent_struct; 2237s # gboolean use_gvariant; 2237s # } _ExtendedGDBusArgInfo; 2237s # 2237s # typedef struct 2237s # { 2237s # GDBusMethodInfo parent_struct; 2237s # const gchar *signal_name; 2237s # gboolean pass_fdlist; 2237s # } _ExtendedGDBusMethodInfo; 2237s # 2237s # typedef struct 2237s # { 2237s # GDBusSignalInfo parent_struct; 2237s # const gchar *signal_name; 2237s # } _ExtendedGDBusSignalInfo; 2237s # 2237s # typedef struct 2237s # { 2237s # GDBusPropertyInfo parent_struct; 2237s # const gchar *hyphen_name; 2237s # guint use_gvariant : 1; 2237s # guint emits_changed_signal : 1; 2237s # } _ExtendedGDBusPropertyInfo; 2237s # 2237s # typedef struct 2237s # { 2237s # GDBusInterfaceInfo parent_struct; 2237s # const gchar *hyphen_name; 2237s # } _ExtendedGDBusInterfaceInfo; 2237s # 2237s # typedef struct 2237s # { 2237s # const _ExtendedGDBusPropertyInfo *info; 2237s # guint prop_id; 2237s # GValue orig_value; /* the value before the change */ 2237s # } ChangedProperty; 2237s # 2237s # static void 2237s # _changed_property_free (ChangedProperty *data) 2237s # { 2237s # g_value_unset (&data->orig_value); 2237s # g_free (data); 2237s # } 2237s # 2237s # static gboolean 2237s # _g_strv_equal0 (gchar **a, gchar **b) 2237s # { 2237s # gboolean ret = FALSE; 2237s # guint n; 2237s # if (a == NULL && b == NULL) 2237s # { 2237s # ret = TRUE; 2237s # goto out; 2237s # } 2237s # if (a == NULL || b == NULL) 2237s # goto out; 2237s # if (g_strv_length (a) != g_strv_length (b)) 2237s # goto out; 2237s # for (n = 0; a[n] != NULL; n++) 2237s # if (g_strcmp0 (a[n], b[n]) != 0) 2237s # goto out; 2237s # ret = TRUE; 2237s # out: 2237s # return ret; 2237s # } 2237s # 2237s # static gboolean 2237s # _g_variant_equal0 (GVariant *a, GVariant *b) 2237s # { 2237s # gboolean ret = FALSE; 2237s # if (a == NULL && b == NULL) 2237s # { 2237s # ret = TRUE; 2237s # goto out; 2237s # } 2237s # if (a == NULL || b == NULL) 2237s # goto out; 2237s # ret = g_variant_equal (a, b); 2237s # out: 2237s # return ret; 2237s # } 2237s # 2237s # G_GNUC_UNUSED static gboolean 2237s # _g_value_equal (const GValue *a, const GValue *b) 2237s # { 2237s # gboolean ret = FALSE; 2237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2237s # switch (G_VALUE_TYPE (a)) 2237s # { 2237s # case G_TYPE_BOOLEAN: 2237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2237s # break; 2237s # case G_TYPE_UCHAR: 2237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2237s # break; 2237s # case G_TYPE_INT: 2237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2237s # break; 2237s # case G_TYPE_UINT: 2237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2237s # break; 2237s # case G_TYPE_INT64: 2237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2237s # break; 2237s # case G_TYPE_UINT64: 2237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2237s # break; 2237s # case G_TYPE_DOUBLE: 2237s # { 2237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2237s # gdouble da = g_value_get_double (a); 2237s # gdouble db = g_value_get_double (b); 2237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2237s # } 2237s # break; 2237s # case G_TYPE_STRING: 2237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2237s # break; 2237s # case G_TYPE_VARIANT: 2237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2237s # break; 2237s # default: 2237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2237s # else 2237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2237s # break; 2237s # } 2237s # return ret; 2237s # } 2237s # 2237s # static void 2237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 2237s # GClosure *closure, 2237s # GValue *return_value, 2237s # unsigned int n_param_values, 2237s # const GValue *param_values, 2237s # void *invocation_hint G_GNUC_UNUSED, 2237s # void *marshal_data) 2237s # { 2237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 2237s # (void *data1, 2237s # GDBusMethodInvocation *arg_method_invocation, 2237s # gboolean arg_an_b, 2237s # guchar arg_an_y, 2237s # gint16 arg_an_n, 2237s # guint16 arg_an_q, 2237s # gint arg_an_i, 2237s # guint arg_an_u, 2237s # gint64 arg_an_x, 2237s # guint64 arg_an_t, 2237s # gdouble arg_an_d, 2237s # const gchar *arg_an_s, 2237s # const gchar *arg_an_o, 2237s # const gchar *arg_an_g, 2237s # GVariant *arg_an_h, 2237s # const gchar *arg_an_ay, 2237s # const gchar *const *arg_an_as, 2237s # const gchar *const *arg_an_ao, 2237s # const gchar *const *arg_an_aay, 2237s # GVariant *arg_an_asv, 2237s # void *data2); 2237s # _GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 2237s # GCClosure *cc = (GCClosure*) closure; 2237s # void *data1, *data2; 2237s # gboolean v_return; 2237s # 2237s # g_return_if_fail (return_value != NULL); 2237s # g_return_if_fail (n_param_values == 20); 2237s # 2237s # if (G_CCLOSURE_SWAP_DATA (closure)) 2237s # { 2237s # data1 = closure->data; 2237s # data2 = g_value_peek_pointer (param_values + 0); 2237s # } 2237s # else 2237s # { 2237s # data1 = g_value_peek_pointer (param_values + 0); 2237s # data2 = closure->data; 2237s # } 2237s # 2237s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 2237s # (marshal_data ? marshal_data : cc->callback); 2237s # 2237s # v_return = 2237s # callback (data1, 2237s # g_marshal_value_peek_object (param_values + 1), 2237s # g_marshal_value_peek_boolean (param_values + 2), 2237s # g_marshal_value_peek_uchar (param_values + 3), 2237s # g_marshal_value_peek_int (param_values + 4), 2237s # g_marshal_value_peek_uint (param_values + 5), 2237s # g_marshal_value_peek_int (param_values + 6), 2237s # g_marshal_value_peek_uint (param_values + 7), 2237s # g_marshal_value_peek_int64 (param_values + 8), 2237s # g_marshal_value_peek_uint64 (param_values + 9), 2237s # g_marshal_value_peek_double (param_values + 10), 2237s # g_marshal_value_peek_string (param_values + 11), 2237s # g_marshal_value_peek_string (param_values + 12), 2237s # g_marshal_value_peek_string (param_values + 13), 2237s # g_marshal_value_peek_variant (param_values + 14), 2237s # g_marshal_value_peek_string (param_values + 15), 2237s # g_marshal_value_peek_boxed (param_values + 16), 2237s # g_marshal_value_peek_boxed (param_values + 17), 2237s # g_marshal_value_peek_boxed (param_values + 18), 2237s # g_marshal_value_peek_variant (param_values + 19), 2237s # data2); 2237s # 2237s # g_value_set_boolean (return_value, v_return); 2237s # } 2237s # 2237s # /* ------------------------------------------------------------------------ 2237s # * Code for interface org.project.CallableIface 2237s # * ------------------------------------------------------------------------ 2237s # */ 2237s # 2237s # /** 2237s # * SECTION:OrgProjectCallableIface 2237s # * @title: OrgProjectCallableIface 2237s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 2237s # * 2237s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 2237s # */ 2237s # 2237s # /* ---- Introspection data for org.project.CallableIface ---- */ 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_b", 2237s # (gchar *) "b", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_y", 2237s # (gchar *) "y", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_n", 2237s # (gchar *) "n", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_q", 2237s # (gchar *) "q", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_i", 2237s # (gchar *) "i", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_u", 2237s # (gchar *) "u", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_x", 2237s # (gchar *) "x", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_t", 2237s # (gchar *) "t", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_d", 2237s # (gchar *) "d", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_s", 2237s # (gchar *) "s", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_o", 2237s # (gchar *) "o", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_g", 2237s # (gchar *) "g", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_h", 2237s # (gchar *) "h", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_ay", 2237s # (gchar *) "ay", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_as", 2237s # (gchar *) "as", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_ao", 2237s # (gchar *) "ao", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_aay", 2237s # (gchar *) "aay", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_asv", 2237s # (gchar *) "a{sv}", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 2237s # { 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 2237s # NULL 2237s # }; 2237s # 2237s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "MethodWithManyArgs", 2237s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 2237s # NULL, 2237s # NULL 2237s # }, 2237s # "handle-method-with-many-args", 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_b", 2237s # (gchar *) "b", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_y", 2237s # (gchar *) "y", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_n", 2237s # (gchar *) "n", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_q", 2237s # (gchar *) "q", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_i", 2237s # (gchar *) "i", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_u", 2237s # (gchar *) "u", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_x", 2237s # (gchar *) "x", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_t", 2237s # (gchar *) "t", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_d", 2237s # (gchar *) "d", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_s", 2237s # (gchar *) "s", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_o", 2237s # (gchar *) "o", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_g", 2237s # (gchar *) "g", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_h", 2237s # (gchar *) "h", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_ay", 2237s # (gchar *) "ay", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_as", 2237s # (gchar *) "as", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_ao", 2237s # (gchar *) "ao", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_aay", 2237s # (gchar *) "aay", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_asv", 2237s # (gchar *) "a{sv}", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers[] = 2237s # { 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv.parent_struct, 2237s # NULL 2237s # }; 2237s # 2237s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_same_method_with_many_args = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "SameMethodWithManyArgs", 2237s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers, 2237s # NULL, 2237s # NULL 2237s # }, 2237s # "handle-same-method-with-many-args", 2237s # FALSE 2237s # }; 2237s # 2237s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 2237s # { 2237s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 2237s # &_org_project_callable_iface_method_info_same_method_with_many_args.parent_struct, 2237s # NULL 2237s # }; 2237s # 2237s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "org.project.CallableIface", 2237s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 2237s # NULL, 2237s # NULL, 2237s # NULL 2237s # }, 2237s # "org-project-callable-iface", 2237s # }; 2237s # 2237s # 2237s # /** 2237s # * org_project_callable_iface_interface_info: 2237s # * 2237s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 2237s # * 2237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2237s # */ 2237s # GDBusInterfaceInfo * 2237s # org_project_callable_iface_interface_info (void) 2237s # { 2237s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_override_properties: 2237s # * @klass: The class structure for a #GObject derived class. 2237s # * @property_id_begin: The property id to assign to the first overridden property. 2237s # * 2237s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 2237s # * The properties are overridden in the order they are defined. 2237s # * 2237s # * Returns: The last property id. 2237s # */ 2237s # guint 2237s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2237s # { 2237s # return property_id_begin - 1; 2237s # } 2237s # 2237s # 2237s # inline static void 2237s # org_project_callable_iface_method_marshal_method_with_many_args ( 2237s # GClosure *closure, 2237s # GValue *return_value, 2237s # unsigned int n_param_values, 2237s # const GValue *param_values, 2237s # void *invocation_hint, 2237s # void *marshal_data) 2237s # { 2237s # _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, 2237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2237s # } 2237s # 2237s # inline static void 2237s # org_project_callable_iface_method_marshal_same_method_with_many_args ( 2237s # GClosure *closure, 2237s # GValue *return_value, 2237s # unsigned int n_param_values, 2237s # const GValue *param_values, 2237s # void *invocation_hint, 2237s # void *marshal_data) 2237s # { 2237s # _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, 2237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2237s # } 2237s # 2237s # 2237s # /** 2237s # * OrgProjectCallableIface: 2237s # * 2237s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 2237s # */ 2237s # 2237s # /** 2237s # * OrgProjectCallableIfaceIface: 2237s # * @parent_iface: The parent interface. 2237s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 2237s # * @handle_same_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-same-method-with-many-args signal. 2237s # * 2237s # * Virtual table for the D-Bus interface org.project.CallableIface. 2237s # */ 2237s # 2237s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 2237s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 2237s # 2237s # static void 2237s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 2237s # { 2237s # /* GObject signals for incoming D-Bus method calls: */ 2237s # /** 2237s # * OrgProjectCallableIface::handle-method-with-many-args: 2237s # * @object: A #OrgProjectCallableIface. 2237s # * @invocation: A #GDBusMethodInvocation. 2237s # * @arg_an_b: Argument passed by remote caller. 2237s # * @arg_an_y: Argument passed by remote caller. 2237s # * @arg_an_n: Argument passed by remote caller. 2237s # * @arg_an_q: Argument passed by remote caller. 2237s # * @arg_an_i: Argument passed by remote caller. 2237s # * @arg_an_u: Argument passed by remote caller. 2237s # * @arg_an_x: Argument passed by remote caller. 2237s # * @arg_an_t: Argument passed by remote caller. 2237s # * @arg_an_d: Argument passed by remote caller. 2237s # * @arg_an_s: Argument passed by remote caller. 2237s # * @arg_an_o: Argument passed by remote caller. 2237s # * @arg_an_g: Argument passed by remote caller. 2237s # * @arg_an_h: Argument passed by remote caller. 2237s # * @arg_an_ay: Argument passed by remote caller. 2237s # * @arg_an_as: Argument passed by remote caller. 2237s # * @arg_an_ao: Argument passed by remote caller. 2237s # * @arg_an_aay: Argument passed by remote caller. 2237s # * @arg_an_asv: Argument passed by remote caller. 2237s # * 2237s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 2237s # * 2237s # * 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. 2237s # * 2237s # * 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. 2237s # */ 2237s # g_signal_new ("handle-method-with-many-args", 2237s # G_TYPE_FROM_INTERFACE (iface), 2237s # G_SIGNAL_RUN_LAST, 2237s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 2237s # g_signal_accumulator_true_handled, 2237s # NULL, 2237s # org_project_callable_iface_method_marshal_method_with_many_args, 2237s # G_TYPE_BOOLEAN, 2237s # 19, 2237s # 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); 2237s # 2237s # /** 2237s # * OrgProjectCallableIface::handle-same-method-with-many-args: 2237s # * @object: A #OrgProjectCallableIface. 2237s # * @invocation: A #GDBusMethodInvocation. 2237s # * @arg_an_b: Argument passed by remote caller. 2237s # * @arg_an_y: Argument passed by remote caller. 2237s # * @arg_an_n: Argument passed by remote caller. 2237s # * @arg_an_q: Argument passed by remote caller. 2237s # * @arg_an_i: Argument passed by remote caller. 2237s # * @arg_an_u: Argument passed by remote caller. 2237s # * @arg_an_x: Argument passed by remote caller. 2237s # * @arg_an_t: Argument passed by remote caller. 2237s # * @arg_an_d: Argument passed by remote caller. 2237s # * @arg_an_s: Argument passed by remote caller. 2237s # * @arg_an_o: Argument passed by remote caller. 2237s # * @arg_an_g: Argument passed by remote caller. 2237s # * @arg_an_h: Argument passed by remote caller. 2237s # * @arg_an_ay: Argument passed by remote caller. 2237s # * @arg_an_as: Argument passed by remote caller. 2237s # * @arg_an_ao: Argument passed by remote caller. 2237s # * @arg_an_aay: Argument passed by remote caller. 2237s # * @arg_an_asv: Argument passed by remote caller. 2237s # * 2237s # * Signal emitted when a remote caller is invoking the SameMethodWithManyArgs() D-Bus method. 2237s # * 2237s # * 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. 2237s # * 2237s # * 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. 2237s # */ 2237s # g_signal_new ("handle-same-method-with-many-args", 2237s # G_TYPE_FROM_INTERFACE (iface), 2237s # G_SIGNAL_RUN_LAST, 2237s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_same_method_with_many_args), 2237s # g_signal_accumulator_true_handled, 2237s # NULL, 2237s # org_project_callable_iface_method_marshal_same_method_with_many_args, 2237s # G_TYPE_BOOLEAN, 2237s # 19, 2237s # 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); 2237s # 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_call_method_with_many_args: 2237s # * @proxy: A #OrgProjectCallableIfaceProxy. 2237s # * @arg_an_b: Argument to pass with the method invocation. 2237s # * @arg_an_y: Argument to pass with the method invocation. 2237s # * @arg_an_n: Argument to pass with the method invocation. 2237s # * @arg_an_q: Argument to pass with the method invocation. 2237s # * @arg_an_i: Argument to pass with the method invocation. 2237s # * @arg_an_u: Argument to pass with the method invocation. 2237s # * @arg_an_x: Argument to pass with the method invocation. 2237s # * @arg_an_t: Argument to pass with the method invocation. 2237s # * @arg_an_d: Argument to pass with the method invocation. 2237s # * @arg_an_s: Argument to pass with the method invocation. 2237s # * @arg_an_o: Argument to pass with the method invocation. 2237s # * @arg_an_g: Argument to pass with the method invocation. 2237s # * @arg_an_h: Argument to pass with the method invocation. 2237s # * @arg_an_ay: Argument to pass with the method invocation. 2237s # * @arg_an_as: Argument to pass with the method invocation. 2237s # * @arg_an_ao: Argument to pass with the method invocation. 2237s # * @arg_an_aay: Argument to pass with the method invocation. 2237s # * @arg_an_asv: Argument to pass with the method invocation. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2237s # * @user_data: User data to pass to @callback. 2237s # * 2237s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 2237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2237s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 2237s # * 2237s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 2237s # */ 2237s # void 2237s # org_project_callable_iface_call_method_with_many_args ( 2237s # OrgProjectCallableIface *proxy, 2237s # gboolean arg_an_b, 2237s # guchar arg_an_y, 2237s # gint16 arg_an_n, 2237s # guint16 arg_an_q, 2237s # gint arg_an_i, 2237s # guint arg_an_u, 2237s # gint64 arg_an_x, 2237s # guint64 arg_an_t, 2237s # gdouble arg_an_d, 2237s # const gchar *arg_an_s, 2237s # const gchar *arg_an_o, 2237s # const gchar *arg_an_g, 2237s # GVariant *arg_an_h, 2237s # const gchar *arg_an_ay, 2237s # const gchar *const *arg_an_as, 2237s # const gchar *const *arg_an_ao, 2237s # const gchar *const *arg_an_aay, 2237s # GVariant *arg_an_asv, 2237s # GCancellable *cancellable, 2237s # GAsyncReadyCallback callback, 2237s # gpointer user_data) 2237s # { 2237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2237s # "MethodWithManyArgs", 2237s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 2237s # arg_an_b, 2237s # arg_an_y, 2237s # arg_an_n, 2237s # arg_an_q, 2237s # arg_an_i, 2237s # arg_an_u, 2237s # arg_an_x, 2237s # arg_an_t, 2237s # arg_an_d, 2237s # arg_an_s, 2237s # arg_an_o, 2237s # arg_an_g, 2237s # arg_an_h, 2237s # arg_an_ay, 2237s # arg_an_as, 2237s # arg_an_ao, 2237s # arg_an_aay, 2237s # arg_an_asv), 2237s # G_DBUS_CALL_FLAGS_NONE, 2237s # -1, 2237s # cancellable, 2237s # callback, 2237s # user_data); 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_call_method_with_many_args_finish: 2237s # * @proxy: A #OrgProjectCallableIfaceProxy. 2237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 2237s # * @error: Return location for error or %NULL. 2237s # * 2237s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 2237s # * 2237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2237s # */ 2237s # gboolean 2237s # org_project_callable_iface_call_method_with_many_args_finish ( 2237s # OrgProjectCallableIface *proxy, 2237s # GAsyncResult *res, 2237s # GError **error) 2237s # { 2237s # GVariant *_ret; 2237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2237s # if (_ret == NULL) 2237s # goto _out; 2237s # g_variant_get (_ret, 2237s # "()"); 2237s # g_variant_unref (_ret); 2237s # _out: 2237s # return _ret != NULL; 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_call_method_with_many_args_sync: 2237s # * @proxy: A #OrgProjectCallableIfaceProxy. 2237s # * @arg_an_b: Argument to pass with the method invocation. 2237s # * @arg_an_y: Argument to pass with the method invocation. 2237s # * @arg_an_n: Argument to pass with the method invocation. 2237s # * @arg_an_q: Argument to pass with the method invocation. 2237s # * @arg_an_i: Argument to pass with the method invocation. 2237s # * @arg_an_u: Argument to pass with the method invocation. 2237s # * @arg_an_x: Argument to pass with the method invocation. 2237s # * @arg_an_t: Argument to pass with the method invocation. 2237s # * @arg_an_d: Argument to pass with the method invocation. 2237s # * @arg_an_s: Argument to pass with the method invocation. 2237s # * @arg_an_o: Argument to pass with the method invocation. 2237s # * @arg_an_g: Argument to pass with the method invocation. 2237s # * @arg_an_h: Argument to pass with the method invocation. 2237s # * @arg_an_ay: Argument to pass with the method invocation. 2237s # * @arg_an_as: Argument to pass with the method invocation. 2237s # * @arg_an_ao: Argument to pass with the method invocation. 2237s # * @arg_an_aay: Argument to pass with the method invocation. 2237s # * @arg_an_asv: Argument to pass with the method invocation. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @error: Return location for error or %NULL. 2237s # * 2237s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2237s # * 2237s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 2237s # * 2237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2237s # */ 2237s # gboolean 2237s # org_project_callable_iface_call_method_with_many_args_sync ( 2237s # OrgProjectCallableIface *proxy, 2237s # gboolean arg_an_b, 2237s # guchar arg_an_y, 2237s # gint16 arg_an_n, 2237s # guint16 arg_an_q, 2237s # gint arg_an_i, 2237s # guint arg_an_u, 2237s # gint64 arg_an_x, 2237s # guint64 arg_an_t, 2237s # gdouble arg_an_d, 2237s # const gchar *arg_an_s, 2237s # const gchar *arg_an_o, 2237s # const gchar *arg_an_g, 2237s # GVariant *arg_an_h, 2237s # const gchar *arg_an_ay, 2237s # const gchar *const *arg_an_as, 2237s # const gchar *const *arg_an_ao, 2237s # const gchar *const *arg_an_aay, 2237s # GVariant *arg_an_asv, 2237s # GCancellable *cancellable, 2237s # GError **error) 2237s # { 2237s # GVariant *_ret; 2237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2237s # "MethodWithManyArgs", 2237s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 2237s # arg_an_b, 2237s # arg_an_y, 2237s # arg_an_n, 2237s # arg_an_q, 2237s # arg_an_i, 2237s # arg_an_u, 2237s # arg_an_x, 2237s # arg_an_t, 2237s # arg_an_d, 2237s # arg_an_s, 2237s # arg_an_o, 2237s # arg_an_g, 2237s # arg_an_h, 2237s # arg_an_ay, 2237s # arg_an_as, 2237s # arg_an_ao, 2237s # arg_an_aay, 2237s # arg_an_asv), 2237s # G_DBUS_CALL_FLAGS_NONE, 2237s # -1, 2237s # cancellable, 2237s # error); 2237s # if (_ret == NULL) 2237s # goto _out; 2237s # g_variant_get (_ret, 2237s # "()"); 2237s # g_variant_unref (_ret); 2237s # _out: 2237s # return _ret != NULL; 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_call_same_method_with_many_args: 2237s # * @proxy: A #OrgProjectCallableIfaceProxy. 2237s # * @arg_an_b: Argument to pass with the method invocation. 2237s # * @arg_an_y: Argument to pass with the method invocation. 2237s # * @arg_an_n: Argument to pass with the method invocation. 2237s # * @arg_an_q: Argument to pass with the method invocation. 2237s # * @arg_an_i: Argument to pass with the method invocation. 2237s # * @arg_an_u: Argument to pass with the method invocation. 2237s # * @arg_an_x: Argument to pass with the method invocation. 2237s # * @arg_an_t: Argument to pass with the method invocation. 2237s # * @arg_an_d: Argument to pass with the method invocation. 2237s # * @arg_an_s: Argument to pass with the method invocation. 2237s # * @arg_an_o: Argument to pass with the method invocation. 2237s # * @arg_an_g: Argument to pass with the method invocation. 2237s # * @arg_an_h: Argument to pass with the method invocation. 2237s # * @arg_an_ay: Argument to pass with the method invocation. 2237s # * @arg_an_as: Argument to pass with the method invocation. 2237s # * @arg_an_ao: Argument to pass with the method invocation. 2237s # * @arg_an_aay: Argument to pass with the method invocation. 2237s # * @arg_an_asv: Argument to pass with the method invocation. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2237s # * @user_data: User data to pass to @callback. 2237s # * 2237s # * Asynchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. 2237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2237s # * You can then call org_project_callable_iface_call_same_method_with_many_args_finish() to get the result of the operation. 2237s # * 2237s # * See org_project_callable_iface_call_same_method_with_many_args_sync() for the synchronous, blocking version of this method. 2237s # */ 2237s # void 2237s # org_project_callable_iface_call_same_method_with_many_args ( 2237s # OrgProjectCallableIface *proxy, 2237s # gboolean arg_an_b, 2237s # guchar arg_an_y, 2237s # gint16 arg_an_n, 2237s # guint16 arg_an_q, 2237s # gint arg_an_i, 2237s # guint arg_an_u, 2237s # gint64 arg_an_x, 2237s # guint64 arg_an_t, 2237s # gdouble arg_an_d, 2237s # const gchar *arg_an_s, 2237s # const gchar *arg_an_o, 2237s # const gchar *arg_an_g, 2237s # GVariant *arg_an_h, 2237s # const gchar *arg_an_ay, 2237s # const gchar *const *arg_an_as, 2237s # const gchar *const *arg_an_ao, 2237s # const gchar *const *arg_an_aay, 2237s # GVariant *arg_an_asv, 2237s # GCancellable *cancellable, 2237s # GAsyncReadyCallback callback, 2237s # gpointer user_data) 2237s # { 2237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2237s # "SameMethodWithManyArgs", 2237s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 2237s # arg_an_b, 2237s # arg_an_y, 2237s # arg_an_n, 2237s # arg_an_q, 2237s # arg_an_i, 2237s # arg_an_u, 2237s # arg_an_x, 2237s # arg_an_t, 2237s # arg_an_d, 2237s # arg_an_s, 2237s # arg_an_o, 2237s # arg_an_g, 2237s # arg_an_h, 2237s # arg_an_ay, 2237s # arg_an_as, 2237s # arg_an_ao, 2237s # arg_an_aay, 2237s # arg_an_asv), 2237s # G_DBUS_CALL_FLAGS_NONE, 2237s # -1, 2237s # cancellable, 2237s # callback, 2237s # user_data); 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_call_same_method_with_many_args_finish: 2237s # * @proxy: A #OrgProjectCallableIfaceProxy. 2237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_same_method_with_many_args(). 2237s # * @error: Return location for error or %NULL. 2237s # * 2237s # * Finishes an operation started with org_project_callable_iface_call_same_method_with_many_args(). 2237s # * 2237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2237s # */ 2237s # gboolean 2237s # org_project_callable_iface_call_same_method_with_many_args_finish ( 2237s # OrgProjectCallableIface *proxy, 2237s # GAsyncResult *res, 2237s # GError **error) 2237s # { 2237s # GVariant *_ret; 2237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2237s # if (_ret == NULL) 2237s # goto _out; 2237s # g_variant_get (_ret, 2237s # "()"); 2237s # g_variant_unref (_ret); 2237s # _out: 2237s # return _ret != NULL; 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_call_same_method_with_many_args_sync: 2237s # * @proxy: A #OrgProjectCallableIfaceProxy. 2237s # * @arg_an_b: Argument to pass with the method invocation. 2237s # * @arg_an_y: Argument to pass with the method invocation. 2237s # * @arg_an_n: Argument to pass with the method invocation. 2237s # * @arg_an_q: Argument to pass with the method invocation. 2237s # * @arg_an_i: Argument to pass with the method invocation. 2237s # * @arg_an_u: Argument to pass with the method invocation. 2237s # * @arg_an_x: Argument to pass with the method invocation. 2237s # * @arg_an_t: Argument to pass with the method invocation. 2237s # * @arg_an_d: Argument to pass with the method invocation. 2237s # * @arg_an_s: Argument to pass with the method invocation. 2237s # * @arg_an_o: Argument to pass with the method invocation. 2237s # * @arg_an_g: Argument to pass with the method invocation. 2237s # * @arg_an_h: Argument to pass with the method invocation. 2237s # * @arg_an_ay: Argument to pass with the method invocation. 2237s # * @arg_an_as: Argument to pass with the method invocation. 2237s # * @arg_an_ao: Argument to pass with the method invocation. 2237s # * @arg_an_aay: Argument to pass with the method invocation. 2237s # * @arg_an_asv: Argument to pass with the method invocation. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @error: Return location for error or %NULL. 2237s # * 2237s # * Synchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2237s # * 2237s # * See org_project_callable_iface_call_same_method_with_many_args() for the asynchronous version of this method. 2237s # * 2237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2237s # */ 2237s # gboolean 2237s # org_project_callable_iface_call_same_method_with_many_args_sync ( 2237s # OrgProjectCallableIface *proxy, 2237s # gboolean arg_an_b, 2237s # guchar arg_an_y, 2237s # gint16 arg_an_n, 2237s # guint16 arg_an_q, 2237s # gint arg_an_i, 2237s # guint arg_an_u, 2237s # gint64 arg_an_x, 2237s # guint64 arg_an_t, 2237s # gdouble arg_an_d, 2237s # const gchar *arg_an_s, 2237s # const gchar *arg_an_o, 2237s # const gchar *arg_an_g, 2237s # GVariant *arg_an_h, 2237s # const gchar *arg_an_ay, 2237s # const gchar *const *arg_an_as, 2237s # const gchar *const *arg_an_ao, 2237s # const gchar *const *arg_an_aay, 2237s # GVariant *arg_an_asv, 2237s # GCancellable *cancellable, 2237s # GError **error) 2237s # { 2237s # GVariant *_ret; 2237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2237s # "SameMethodWithManyArgs", 2237s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 2237s # arg_an_b, 2237s # arg_an_y, 2237s # arg_an_n, 2237s # arg_an_q, 2237s # arg_an_i, 2237s # arg_an_u, 2237s # arg_an_x, 2237s # arg_an_t, 2237s # arg_an_d, 2237s # arg_an_s, 2237s # arg_an_o, 2237s # arg_an_g, 2237s # arg_an_h, 2237s # arg_an_ay, 2237s # arg_an_as, 2237s # arg_an_ao, 2237s # arg_an_aay, 2237s # arg_an_asv), 2237s # G_DBUS_CALL_FLAGS_NONE, 2237s # -1, 2237s # cancellable, 2237s # error); 2237s # if (_ret == NULL) 2237s # goto _out; 2237s # g_variant_get (_ret, 2237s # "()"); 2237s # g_variant_unref (_ret); 2237s # _out: 2237s # return _ret != NULL; 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_complete_method_with_many_args: 2237s # * @object: A #OrgProjectCallableIface. 2237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2237s # * 2237s # * 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. 2237s # * 2237s # * This method will free @invocation, you cannot use it afterwards. 2237s # */ 2237s # void 2237s # org_project_callable_iface_complete_method_with_many_args ( 2237s # OrgProjectCallableIface *object G_GNUC_UNUSED, 2237s # GDBusMethodInvocation *invocation) 2237s # { 2237s # g_dbus_method_invocation_return_value (invocation, 2237s # g_variant_new ("()")); 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_complete_same_method_with_many_args: 2237s # * @object: A #OrgProjectCallableIface. 2237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2237s # * 2237s # * 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. 2237s # * 2237s # * This method will free @invocation, you cannot use it afterwards. 2237s # */ 2237s # void 2237s # org_project_callable_iface_complete_same_method_with_many_args ( 2237s # OrgProjectCallableIface *object G_GNUC_UNUSED, 2237s # GDBusMethodInvocation *invocation) 2237s # { 2237s # g_dbus_method_invocation_return_value (invocation, 2237s # g_variant_new ("()")); 2237s # } 2237s # 2237s # /* ------------------------------------------------------------------------ */ 2237s # 2237s # /** 2237s # * OrgProjectCallableIfaceProxy: 2237s # * 2237s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 2237s # */ 2237s # 2237s # /** 2237s # * OrgProjectCallableIfaceProxyClass: 2237s # * @parent_class: The parent class. 2237s # * 2237s # * Class structure for #OrgProjectCallableIfaceProxy. 2237s # */ 2237s # 2237s # struct _OrgProjectCallableIfaceProxyPrivate 2237s # { 2237s # GData *qdata; 2237s # }; 2237s # 2237s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 2237s # 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 2237s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 2237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 2237s # 2237s # #else 2237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 2237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 2237s # 2237s # #endif 2237s # static void 2237s # org_project_callable_iface_proxy_finalize (GObject *object) 2237s # { 2237s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 2237s # g_datalist_clear (&proxy->priv->qdata); 2237s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2237s # guint prop_id G_GNUC_UNUSED, 2237s # GValue *value G_GNUC_UNUSED, 2237s # GParamSpec *pspec G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2237s # guint prop_id G_GNUC_UNUSED, 2237s # const GValue *value G_GNUC_UNUSED, 2237s # GParamSpec *pspec G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 2237s # const gchar *sender_name G_GNUC_UNUSED, 2237s # const gchar *signal_name, 2237s # GVariant *parameters) 2237s # { 2237s # _ExtendedGDBusSignalInfo *info; 2237s # GVariantIter iter; 2237s # GVariant *child; 2237s # GValue *paramv; 2237s # gsize num_params; 2237s # gsize n; 2237s # guint signal_id; 2237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 2237s # if (info == NULL) 2237s # return; 2237s # num_params = g_variant_n_children (parameters); 2237s # paramv = g_new0 (GValue, num_params + 1); 2237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 2237s # g_value_set_object (¶mv[0], proxy); 2237s # g_variant_iter_init (&iter, parameters); 2237s # n = 1; 2237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2237s # { 2237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2237s # if (arg_info->use_gvariant) 2237s # { 2237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2237s # g_value_set_variant (¶mv[n], child); 2237s # n++; 2237s # } 2237s # else 2237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2237s # g_variant_unref (child); 2237s # } 2237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 2237s # g_signal_emitv (paramv, signal_id, 0, NULL); 2237s # for (n = 0; n < num_params + 1; n++) 2237s # g_value_unset (¶mv[n]); 2237s # g_free (paramv); 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2237s # GVariant *changed_properties, 2237s # const gchar *const *invalidated_properties) 2237s # { 2237s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 2237s # guint n; 2237s # const gchar *key; 2237s # GVariantIter *iter; 2237s # _ExtendedGDBusPropertyInfo *info; 2237s # g_variant_get (changed_properties, "a{sv}", &iter); 2237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2237s # { 2237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 2237s # g_datalist_remove_data (&proxy->priv->qdata, key); 2237s # if (info != NULL) 2237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2237s # } 2237s # g_variant_iter_free (iter); 2237s # for (n = 0; invalidated_properties[n] != NULL; n++) 2237s # { 2237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 2237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2237s # if (info != NULL) 2237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2237s # } 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 2237s # { 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2237s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 2237s # #else 2237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 2237s # #endif 2237s # 2237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 2237s # { 2237s # GObjectClass *gobject_class; 2237s # GDBusProxyClass *proxy_class; 2237s # 2237s # gobject_class = G_OBJECT_CLASS (klass); 2237s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 2237s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 2237s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 2237s # 2237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2237s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 2237s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 2237s # 2237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2237s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 2237s # #endif 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_proxy_new: 2237s # * @connection: A #GDBusConnection. 2237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2237s # * @object_path: An object path. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2237s # * @user_data: User data to pass to @callback. 2237s # * 2237s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 2237s # * 2237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2237s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 2237s # * 2237s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2237s # */ 2237s # void 2237s # org_project_callable_iface_proxy_new ( 2237s # GDBusConnection *connection, 2237s # GDBusProxyFlags flags, 2237s # const gchar *name, 2237s # const gchar *object_path, 2237s # GCancellable *cancellable, 2237s # GAsyncReadyCallback callback, 2237s # gpointer user_data) 2237s # { 2237s # 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); 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_proxy_new_finish: 2237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 2237s # * @error: Return location for error or %NULL 2237s # * 2237s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 2237s # * 2237s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2237s # */ 2237s # OrgProjectCallableIface * 2237s # org_project_callable_iface_proxy_new_finish ( 2237s # GAsyncResult *res, 2237s # GError **error) 2237s # { 2237s # GObject *ret; 2237s # GObject *source_object; 2237s # source_object = g_async_result_get_source_object (res); 2237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2237s # g_object_unref (source_object); 2237s # if (ret != NULL) 2237s # return ORG_PROJECT_CALLABLE_IFACE (ret); 2237s # else 2237s # return NULL; 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_proxy_new_sync: 2237s # * @connection: A #GDBusConnection. 2237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2237s # * @object_path: An object path. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @error: Return location for error or %NULL 2237s # * 2237s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 2237s # * 2237s # * The calling thread is blocked until a reply is received. 2237s # * 2237s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 2237s # * 2237s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2237s # */ 2237s # OrgProjectCallableIface * 2237s # org_project_callable_iface_proxy_new_sync ( 2237s # GDBusConnection *connection, 2237s # GDBusProxyFlags flags, 2237s # const gchar *name, 2237s # const gchar *object_path, 2237s # GCancellable *cancellable, 2237s # GError **error) 2237s # { 2237s # GInitable *ret; 2237s # 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); 2237s # if (ret != NULL) 2237s # return ORG_PROJECT_CALLABLE_IFACE (ret); 2237s # else 2237s # return NULL; 2237s # } 2237s # 2237s # 2237s # /** 2237s # * org_project_callable_iface_proxy_new_for_bus: 2237s # * @bus_type: A #GBusType. 2237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2237s # * @name: A bus name (well-known or unique). 2237s # * @object_path: An object path. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2237s # * @user_data: User data to pass to @callback. 2237s # * 2237s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2237s # * 2237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2237s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 2237s # * 2237s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2237s # */ 2237s # void 2237s # org_project_callable_iface_proxy_new_for_bus ( 2237s # GBusType bus_type, 2237s # GDBusProxyFlags flags, 2237s # const gchar *name, 2237s # const gchar *object_path, 2237s # GCancellable *cancellable, 2237s # GAsyncReadyCallback callback, 2237s # gpointer user_data) 2237s # { 2237s # 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); 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_proxy_new_for_bus_finish: 2237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 2237s # * @error: Return location for error or %NULL 2237s # * 2237s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 2237s # * 2237s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2237s # */ 2237s # OrgProjectCallableIface * 2237s # org_project_callable_iface_proxy_new_for_bus_finish ( 2237s # GAsyncResult *res, 2237s # GError **error) 2237s # { 2237s # GObject *ret; 2237s # GObject *source_object; 2237s # source_object = g_async_result_get_source_object (res); 2237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2237s # g_object_unref (source_object); 2237s # if (ret != NULL) 2237s # return ORG_PROJECT_CALLABLE_IFACE (ret); 2237s # else 2237s # return NULL; 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_proxy_new_for_bus_sync: 2237s # * @bus_type: A #GBusType. 2237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2237s # * @name: A bus name (well-known or unique). 2237s # * @object_path: An object path. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @error: Return location for error or %NULL 2237s # * 2237s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2237s # * 2237s # * The calling thread is blocked until a reply is received. 2237s # * 2237s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2237s # * 2237s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2237s # */ 2237s # OrgProjectCallableIface * 2237s # org_project_callable_iface_proxy_new_for_bus_sync ( 2237s # GBusType bus_type, 2237s # GDBusProxyFlags flags, 2237s # const gchar *name, 2237s # const gchar *object_path, 2237s # GCancellable *cancellable, 2237s # GError **error) 2237s # { 2237s # GInitable *ret; 2237s # 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); 2237s # if (ret != NULL) 2237s # return ORG_PROJECT_CALLABLE_IFACE (ret); 2237s # else 2237s # return NULL; 2237s # } 2237s # 2237s # 2237s # /* ------------------------------------------------------------------------ */ 2237s # 2237s # /** 2237s # * OrgProjectCallableIfaceSkeleton: 2237s # * 2237s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2237s # */ 2237s # 2237s # /** 2237s # * OrgProjectCallableIfaceSkeletonClass: 2237s # * @parent_class: The parent class. 2237s # * 2237s # * Class structure for #OrgProjectCallableIfaceSkeleton. 2237s # */ 2237s # 2237s # struct _OrgProjectCallableIfaceSkeletonPrivate 2237s # { 2237s # GValue *properties; 2237s # GList *changed_properties; 2237s # GSource *changed_properties_idle_source; 2237s # GMainContext *context; 2237s # GMutex lock; 2237s # }; 2237s # 2237s # static void 2237s # _org_project_callable_iface_skeleton_handle_method_call ( 2237s # GDBusConnection *connection G_GNUC_UNUSED, 2237s # const gchar *sender G_GNUC_UNUSED, 2237s # const gchar *object_path G_GNUC_UNUSED, 2237s # const gchar *interface_name, 2237s # const gchar *method_name, 2237s # GVariant *parameters, 2237s # GDBusMethodInvocation *invocation, 2237s # gpointer user_data) 2237s # { 2237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 2237s # _ExtendedGDBusMethodInfo *info; 2237s # GVariantIter iter; 2237s # GVariant *child; 2237s # GValue *paramv; 2237s # gsize num_params; 2237s # guint num_extra; 2237s # gsize n; 2237s # guint signal_id; 2237s # GValue return_value = G_VALUE_INIT; 2237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2237s # g_assert (info != NULL); 2237s # num_params = g_variant_n_children (parameters); 2237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2237s # n = 0; 2237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 2237s # g_value_set_object (¶mv[n++], skeleton); 2237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2237s # g_value_set_object (¶mv[n++], invocation); 2237s # if (info->pass_fdlist) 2237s # { 2237s # #ifdef G_OS_UNIX 2237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2237s # #else 2237s # g_assert_not_reached (); 2237s # #endif 2237s # } 2237s # g_variant_iter_init (&iter, parameters); 2237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2237s # { 2237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2237s # if (arg_info->use_gvariant) 2237s # { 2237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2237s # g_value_set_variant (¶mv[n], child); 2237s # n++; 2237s # } 2237s # else 2237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2237s # g_variant_unref (child); 2237s # } 2237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 2237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2237s # if (!g_value_get_boolean (&return_value)) 2237s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2237s # g_value_unset (&return_value); 2237s # for (n = 0; n < num_params + num_extra; n++) 2237s # g_value_unset (¶mv[n]); 2237s # g_free (paramv); 2237s # } 2237s # 2237s # static GVariant * 2237s # _org_project_callable_iface_skeleton_handle_get_property ( 2237s # GDBusConnection *connection G_GNUC_UNUSED, 2237s # const gchar *sender G_GNUC_UNUSED, 2237s # const gchar *object_path G_GNUC_UNUSED, 2237s # const gchar *interface_name G_GNUC_UNUSED, 2237s # const gchar *property_name, 2237s # GError **error, 2237s # gpointer user_data) 2237s # { 2237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 2237s # GValue value = G_VALUE_INIT; 2237s # GParamSpec *pspec; 2237s # _ExtendedGDBusPropertyInfo *info; 2237s # GVariant *ret; 2237s # ret = NULL; 2237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 2237s # g_assert (info != NULL); 2237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2237s # if (pspec == NULL) 2237s # { 2237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2237s # } 2237s # else 2237s # { 2237s # g_value_init (&value, pspec->value_type); 2237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2237s # g_value_unset (&value); 2237s # } 2237s # return ret; 2237s # } 2237s # 2237s # static gboolean 2237s # _org_project_callable_iface_skeleton_handle_set_property ( 2237s # GDBusConnection *connection G_GNUC_UNUSED, 2237s # const gchar *sender G_GNUC_UNUSED, 2237s # const gchar *object_path G_GNUC_UNUSED, 2237s # const gchar *interface_name G_GNUC_UNUSED, 2237s # const gchar *property_name, 2237s # GVariant *variant, 2237s # GError **error, 2237s # gpointer user_data) 2237s # { 2237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 2237s # GValue value = G_VALUE_INIT; 2237s # GParamSpec *pspec; 2237s # _ExtendedGDBusPropertyInfo *info; 2237s # gboolean ret; 2237s # ret = FALSE; 2237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 2237s # g_assert (info != NULL); 2237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2237s # if (pspec == NULL) 2237s # { 2237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2237s # } 2237s # else 2237s # { 2237s # if (info->use_gvariant) 2237s # g_value_set_variant (&value, variant); 2237s # else 2237s # g_dbus_gvariant_to_gvalue (variant, &value); 2237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2237s # g_value_unset (&value); 2237s # ret = TRUE; 2237s # } 2237s # return ret; 2237s # } 2237s # 2237s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 2237s # { 2237s # _org_project_callable_iface_skeleton_handle_method_call, 2237s # _org_project_callable_iface_skeleton_handle_get_property, 2237s # _org_project_callable_iface_skeleton_handle_set_property, 2237s # {NULL} 2237s # }; 2237s # 2237s # static GDBusInterfaceInfo * 2237s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2237s # { 2237s # return org_project_callable_iface_interface_info (); 2237s # } 2237s # 2237s # static GDBusInterfaceVTable * 2237s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2237s # { 2237s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 2237s # } 2237s # 2237s # static GVariant * 2237s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2237s # { 2237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 2237s # 2237s # GVariantBuilder builder; 2237s # guint n; 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2237s # #else 2237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2237s # #endif 2237s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 2237s # goto out; 2237s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2237s # { 2237s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 2237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2237s # { 2237s # GVariant *value; 2237s # 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); 2237s # if (value != NULL) 2237s # { 2237s # g_variant_take_ref (value); 2237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2237s # g_variant_unref (value); 2237s # } 2237s # } 2237s # } 2237s # out: 2237s # return g_variant_builder_end (&builder); 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2237s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 2237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 2237s # 2237s # #else 2237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 2237s # 2237s # #endif 2237s # static void 2237s # org_project_callable_iface_skeleton_finalize (GObject *object) 2237s # { 2237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 2237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2237s # if (skeleton->priv->changed_properties_idle_source != NULL) 2237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2237s # g_main_context_unref (skeleton->priv->context); 2237s # g_mutex_clear (&skeleton->priv->lock); 2237s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 2237s # { 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2237s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 2237s # #else 2237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 2237s # #endif 2237s # 2237s # g_mutex_init (&skeleton->priv->lock); 2237s # skeleton->priv->context = g_main_context_ref_thread_default (); 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 2237s # { 2237s # GObjectClass *gobject_class; 2237s # GDBusInterfaceSkeletonClass *skeleton_class; 2237s # 2237s # gobject_class = G_OBJECT_CLASS (klass); 2237s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 2237s # 2237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2237s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 2237s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 2237s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 2237s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 2237s # 2237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2237s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 2237s # #endif 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_skeleton_new: 2237s # * 2237s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 2237s # * 2237s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 2237s # */ 2237s # OrgProjectCallableIface * 2237s # org_project_callable_iface_skeleton_new (void) 2237s # { 2237s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 2237s # } 2237s # 2237s # /* ------------------------------------------------------------------------ 2237s # * Code for interface org.project.OtherCallableIface 2237s # * ------------------------------------------------------------------------ 2237s # */ 2237s # 2237s # /** 2237s # * SECTION:OrgProjectOtherCallableIface 2237s # * @title: OrgProjectOtherCallableIface 2237s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 2237s # * 2237s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 2237s # */ 2237s # 2237s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_b", 2237s # (gchar *) "b", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_y", 2237s # (gchar *) "y", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_n", 2237s # (gchar *) "n", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_q", 2237s # (gchar *) "q", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_i", 2237s # (gchar *) "i", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_u", 2237s # (gchar *) "u", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_x", 2237s # (gchar *) "x", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_t", 2237s # (gchar *) "t", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_d", 2237s # (gchar *) "d", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_s", 2237s # (gchar *) "s", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_o", 2237s # (gchar *) "o", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_g", 2237s # (gchar *) "g", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_h", 2237s # (gchar *) "h", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_ay", 2237s # (gchar *) "ay", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_as", 2237s # (gchar *) "as", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_ao", 2237s # (gchar *) "ao", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_aay", 2237s # (gchar *) "aay", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_asv", 2237s # (gchar *) "a{sv}", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const GDBusArgInfo * const _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 2237s # { 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 2237s # NULL 2237s # }; 2237s # 2237s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_method_with_many_args = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "MethodWithManyArgs", 2237s # (GDBusArgInfo **) &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 2237s # NULL, 2237s # NULL 2237s # }, 2237s # "handle-method-with-many-args", 2237s # FALSE 2237s # }; 2237s # 2237s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 2237s # { 2237s # &_org_project_other_callable_iface_method_info_method_with_many_args.parent_struct, 2237s # NULL 2237s # }; 2237s # 2237s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "org.project.OtherCallableIface", 2237s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 2237s # NULL, 2237s # NULL, 2237s # NULL 2237s # }, 2237s # "org-project-other-callable-iface", 2237s # }; 2237s # 2237s # 2237s # /** 2237s # * org_project_other_callable_iface_interface_info: 2237s # * 2237s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 2237s # * 2237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2237s # */ 2237s # GDBusInterfaceInfo * 2237s # org_project_other_callable_iface_interface_info (void) 2237s # { 2237s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 2237s # } 2237s # 2237s # /** 2237s # * org_project_other_callable_iface_override_properties: 2237s # * @klass: The class structure for a #GObject derived class. 2237s # * @property_id_begin: The property id to assign to the first overridden property. 2237s # * 2237s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 2237s # * The properties are overridden in the order they are defined. 2237s # * 2237s # * Returns: The last property id. 2237s # */ 2237s # guint 2237s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2237s # { 2237s # return property_id_begin - 1; 2237s # } 2237s # 2237s # 2237s # inline static void 2237s # org_project_other_callable_iface_method_marshal_method_with_many_args ( 2237s # GClosure *closure, 2237s # GValue *return_value, 2237s # unsigned int n_param_values, 2237s # const GValue *param_values, 2237s # void *invocation_hint, 2237s # void *marshal_data) 2237s # { 2237s # _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, 2237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2237s # } 2237s # 2237s # 2237s # /** 2237s # * OrgProjectOtherCallableIface: 2237s # * 2237s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 2237s # */ 2237s # 2237s # /** 2237s # * OrgProjectOtherCallableIfaceIface: 2237s # * @parent_iface: The parent interface. 2237s # * @handle_method_with_many_args: Handler for the #OrgProjectOtherCallableIface::handle-method-with-many-args signal. 2237s # * 2237s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 2237s # */ 2237s # 2237s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 2237s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 2237s # 2237s # static void 2237s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 2237s # { 2237s # /* GObject signals for incoming D-Bus method calls: */ 2237s # /** 2237s # * OrgProjectOtherCallableIface::handle-method-with-many-args: 2237s # * @object: A #OrgProjectOtherCallableIface. 2237s # * @invocation: A #GDBusMethodInvocation. 2237s # * @arg_an_b: Argument passed by remote caller. 2237s # * @arg_an_y: Argument passed by remote caller. 2237s # * @arg_an_n: Argument passed by remote caller. 2237s # * @arg_an_q: Argument passed by remote caller. 2237s # * @arg_an_i: Argument passed by remote caller. 2237s # * @arg_an_u: Argument passed by remote caller. 2237s # * @arg_an_x: Argument passed by remote caller. 2237s # * @arg_an_t: Argument passed by remote caller. 2237s # * @arg_an_d: Argument passed by remote caller. 2237s # * @arg_an_s: Argument passed by remote caller. 2237s # * @arg_an_o: Argument passed by remote caller. 2237s # * @arg_an_g: Argument passed by remote caller. 2237s # * @arg_an_h: Argument passed by remote caller. 2237s # * @arg_an_ay: Argument passed by remote caller. 2237s # * @arg_an_as: Argument passed by remote caller. 2237s # * @arg_an_ao: Argument passed by remote caller. 2237s # * @arg_an_aay: Argument passed by remote caller. 2237s # * @arg_an_asv: Argument passed by remote caller. 2237s # * 2237s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 2237s # * 2237s # * 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. 2237s # * 2237s # * 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. 2237s # */ 2237s # g_signal_new ("handle-method-with-many-args", 2237s # G_TYPE_FROM_INTERFACE (iface), 2237s # G_SIGNAL_RUN_LAST, 2237s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_method_with_many_args), 2237s # g_signal_accumulator_true_handled, 2237s # NULL, 2237s # org_project_other_callable_iface_method_marshal_method_with_many_args, 2237s # G_TYPE_BOOLEAN, 2237s # 19, 2237s # 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); 2237s # 2237s # } 2237s # 2237s # /** 2237s # * org_project_other_callable_iface_call_method_with_many_args: 2237s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 2237s # * @arg_an_b: Argument to pass with the method invocation. 2237s # * @arg_an_y: Argument to pass with the method invocation. 2237s # * @arg_an_n: Argument to pass with the method invocation. 2237s # * @arg_an_q: Argument to pass with the method invocation. 2237s # * @arg_an_i: Argument to pass with the method invocation. 2237s # * @arg_an_u: Argument to pass with the method invocation. 2237s # * @arg_an_x: Argument to pass with the method invocation. 2237s # * @arg_an_t: Argument to pass with the method invocation. 2237s # * @arg_an_d: Argument to pass with the method invocation. 2237s # * @arg_an_s: Argument to pass with the method invocation. 2237s # * @arg_an_o: Argument to pass with the method invocation. 2237s # * @arg_an_g: Argument to pass with the method invocation. 2237s # * @arg_an_h: Argument to pass with the method invocation. 2237s # * @arg_an_ay: Argument to pass with the method invocation. 2237s # * @arg_an_as: Argument to pass with the method invocation. 2237s # * @arg_an_ao: Argument to pass with the method invocation. 2237s # * @arg_an_aay: Argument to pass with the method invocation. 2237s # * @arg_an_asv: Argument to pass with the method invocation. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2237s # * @user_data: User data to pass to @callback. 2237s # * 2237s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 2237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2237s # * You can then call org_project_other_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 2237s # * 2237s # * See org_project_other_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 2237s # */ 2237s # void 2237s # org_project_other_callable_iface_call_method_with_many_args ( 2237s # OrgProjectOtherCallableIface *proxy, 2237s # gboolean arg_an_b, 2237s # guchar arg_an_y, 2237s # gint16 arg_an_n, 2237s # guint16 arg_an_q, 2237s # gint arg_an_i, 2237s # guint arg_an_u, 2237s # gint64 arg_an_x, 2237s # guint64 arg_an_t, 2237s # gdouble arg_an_d, 2237s # const gchar *arg_an_s, 2237s # const gchar *arg_an_o, 2237s # const gchar *arg_an_g, 2237s # GVariant *arg_an_h, 2237s # const gchar *arg_an_ay, 2237s # const gchar *const *arg_an_as, 2237s # const gchar *const *arg_an_ao, 2237s # const gchar *const *arg_an_aay, 2237s # GVariant *arg_an_asv, 2237s # GCancellable *cancellable, 2237s # GAsyncReadyCallback callback, 2237s # gpointer user_data) 2237s # { 2237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2237s # "MethodWithManyArgs", 2237s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 2237s # arg_an_b, 2237s # arg_an_y, 2237s # arg_an_n, 2237s # arg_an_q, 2237s # arg_an_i, 2237s # arg_an_u, 2237s # arg_an_x, 2237s # arg_an_t, 2237s # arg_an_d, 2237s # arg_an_s, 2237s # arg_an_o, 2237s # arg_an_g, 2237s # arg_an_h, 2237s # arg_an_ay, 2237s # arg_an_as, 2237s # arg_an_ao, 2237s # arg_an_aay, 2237s # arg_an_asv), 2237s # G_DBUS_CALL_FLAGS_NONE, 2237s # -1, 2237s # cancellable, 2237s # callback, 2237s # user_data); 2237s # } 2237s # 2237s # /** 2237s # * org_project_other_callable_iface_call_method_with_many_args_finish: 2237s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 2237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_method_with_many_args(). 2237s # * @error: Return location for error or %NULL. 2237s # * 2237s # * Finishes an operation started with org_project_other_callable_iface_call_method_with_many_args(). 2237s # * 2237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2237s # */ 2237s # gboolean 2237s # org_project_other_callable_iface_call_method_with_many_args_finish ( 2237s # OrgProjectOtherCallableIface *proxy, 2237s # GAsyncResult *res, 2237s # GError **error) 2237s # { 2237s # GVariant *_ret; 2237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2237s # if (_ret == NULL) 2237s # goto _out; 2237s # g_variant_get (_ret, 2237s # "()"); 2237s # g_variant_unref (_ret); 2237s # _out: 2237s # return _ret != NULL; 2237s # } 2237s # 2237s # /** 2237s # * org_project_other_callable_iface_call_method_with_many_args_sync: 2237s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 2237s # * @arg_an_b: Argument to pass with the method invocation. 2237s # * @arg_an_y: Argument to pass with the method invocation. 2237s # * @arg_an_n: Argument to pass with the method invocation. 2237s # * @arg_an_q: Argument to pass with the method invocation. 2237s # * @arg_an_i: Argument to pass with the method invocation. 2237s # * @arg_an_u: Argument to pass with the method invocation. 2237s # * @arg_an_x: Argument to pass with the method invocation. 2237s # * @arg_an_t: Argument to pass with the method invocation. 2237s # * @arg_an_d: Argument to pass with the method invocation. 2237s # * @arg_an_s: Argument to pass with the method invocation. 2237s # * @arg_an_o: Argument to pass with the method invocation. 2237s # * @arg_an_g: Argument to pass with the method invocation. 2237s # * @arg_an_h: Argument to pass with the method invocation. 2237s # * @arg_an_ay: Argument to pass with the method invocation. 2237s # * @arg_an_as: Argument to pass with the method invocation. 2237s # * @arg_an_ao: Argument to pass with the method invocation. 2237s # * @arg_an_aay: Argument to pass with the method invocation. 2237s # * @arg_an_asv: Argument to pass with the method invocation. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @error: Return location for error or %NULL. 2237s # * 2237s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2237s # * 2237s # * See org_project_other_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 2237s # * 2237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2237s # */ 2237s # gboolean 2237s # org_project_other_callable_iface_call_method_with_many_args_sync ( 2237s # OrgProjectOtherCallableIface *proxy, 2237s # gboolean arg_an_b, 2237s # guchar arg_an_y, 2237s # gint16 arg_an_n, 2237s # guint16 arg_an_q, 2237s # gint arg_an_i, 2237s # guint arg_an_u, 2237s # gint64 arg_an_x, 2237s # guint64 arg_an_t, 2237s # gdouble arg_an_d, 2237s # const gchar *arg_an_s, 2237s # const gchar *arg_an_o, 2237s # const gchar *arg_an_g, 2237s # GVariant *arg_an_h, 2237s # const gchar *arg_an_ay, 2237s # const gchar *const *arg_an_as, 2237s # const gchar *const *arg_an_ao, 2237s # const gchar *const *arg_an_aay, 2237s # GVariant *arg_an_asv, 2237s # GCancellable *cancellable, 2237s # GError **error) 2237s # { 2237s # GVariant *_ret; 2237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2237s # "MethodWithManyArgs", 2237s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 2237s # arg_an_b, 2237s # arg_an_y, 2237s # arg_an_n, 2237s # arg_an_q, 2237s # arg_an_i, 2237s # arg_an_u, 2237s # arg_an_x, 2237s # arg_an_t, 2237s # arg_an_d, 2237s # arg_an_s, 2237s # arg_an_o, 2237s # arg_an_g, 2237s # arg_an_h, 2237s # arg_an_ay, 2237s # arg_an_as, 2237s # arg_an_ao, 2237s # arg_an_aay, 2237s # arg_an_asv), 2237s # G_DBUS_CALL_FLAGS_NONE, 2237s # -1, 2237s # cancellable, 2237s # error); 2237s # if (_ret == NULL) 2237s # goto _out; 2237s # g_variant_get (_ret, 2237s # "()"); 2237s # g_variant_unref (_ret); 2237s # _out: 2237s # return _ret != NULL; 2237s # } 2237s # 2237s # /** 2237s # * org_project_other_callable_iface_complete_method_with_many_args: 2237s # * @object: A #OrgProjectOtherCallableIface. 2237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2237s # * 2237s # * 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. 2237s # * 2237s # * This method will free @invocation, you cannot use it afterwards. 2237s # */ 2237s # void 2237s # org_project_other_callable_iface_complete_method_with_many_args ( 2237s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 2237s # GDBusMethodInvocation *invocation) 2237s # { 2237s # g_dbus_method_invocation_return_value (invocation, 2237s # g_variant_new ("()")); 2237s # } 2237s # 2237s # /* ------------------------------------------------------------------------ */ 2237s # 2237s # /** 2237s # * OrgProjectOtherCallableIfaceProxy: 2237s # * 2237s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 2237s # */ 2237s # 2237s # /** 2237s # * OrgProjectOtherCallableIfaceProxyClass: 2237s # * @parent_class: The parent class. 2237s # * 2237s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 2237s # */ 2237s # 2237s # struct _OrgProjectOtherCallableIfaceProxyPrivate 2237s # { 2237s # GData *qdata; 2237s # }; 2237s # 2237s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 2237s # 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 2237s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 2237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 2237s # 2237s # #else 2237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 2237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 2237s # 2237s # #endif 2237s # static void 2237s # org_project_other_callable_iface_proxy_finalize (GObject *object) 2237s # { 2237s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 2237s # g_datalist_clear (&proxy->priv->qdata); 2237s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 2237s # } 2237s # 2237s # static void 2237s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2237s # guint prop_id G_GNUC_UNUSED, 2237s # GValue *value G_GNUC_UNUSED, 2237s # GParamSpec *pspec G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # static void 2237s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2237s # guint prop_id G_GNUC_UNUSED, 2237s # const GValue *value G_GNUC_UNUSED, 2237s # GParamSpec *pspec G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # static void 2237s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 2237s # const gchar *sender_name G_GNUC_UNUSED, 2237s # const gchar *signal_name, 2237s # GVariant *parameters) 2237s # { 2237s # _ExtendedGDBusSignalInfo *info; 2237s # GVariantIter iter; 2237s # GVariant *child; 2237s # GValue *paramv; 2237s # gsize num_params; 2237s # gsize n; 2237s # guint signal_id; 2237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 2237s # if (info == NULL) 2237s # return; 2237s # num_params = g_variant_n_children (parameters); 2237s # paramv = g_new0 (GValue, num_params + 1); 2237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 2237s # g_value_set_object (¶mv[0], proxy); 2237s # g_variant_iter_init (&iter, parameters); 2237s # n = 1; 2237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2237s # { 2237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2237s # if (arg_info->use_gvariant) 2237s # { 2237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2237s # g_value_set_variant (¶mv[n], child); 2237s # n++; 2237s # } 2237s # else 2237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2237s # g_variant_unref (child); 2237s # } 2237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 2237s # g_signal_emitv (paramv, signal_id, 0, NULL); 2237s # for (n = 0; n < num_params + 1; n++) 2237s # g_value_unset (¶mv[n]); 2237s # g_free (paramv); 2237s # } 2237s # 2237s # static void 2237s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2237s # GVariant *changed_properties, 2237s # const gchar *const *invalidated_properties) 2237s # { 2237s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 2237s # guint n; 2237s # const gchar *key; 2237s # GVariantIter *iter; 2237s # _ExtendedGDBusPropertyInfo *info; 2237s # g_variant_get (changed_properties, "a{sv}", &iter); 2237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2237s # { 2237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 2237s # g_datalist_remove_data (&proxy->priv->qdata, key); 2237s # if (info != NULL) 2237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2237s # } 2237s # g_variant_iter_free (iter); 2237s # for (n = 0; invalidated_properties[n] != NULL; n++) 2237s # { 2237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 2237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2237s # if (info != NULL) 2237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2237s # } 2237s # } 2237s # 2237s # static void 2237s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 2237s # { 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2237s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 2237s # #else 2237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 2237s # #endif 2237s # 2237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 2237s # } 2237s # 2237s # static void 2237s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 2237s # { 2237s # GObjectClass *gobject_class; 2237s # GDBusProxyClass *proxy_class; 2237s # 2237s # gobject_class = G_OBJECT_CLASS (klass); 2237s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 2237s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 2237s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 2237s # 2237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2237s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 2237s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 2237s # 2237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2237s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 2237s # #endif 2237s # } 2237s # 2237s # static void 2237s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # /** 2237s # * org_project_other_callable_iface_proxy_new: 2237s # * @connection: A #GDBusConnection. 2237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2237s # * @object_path: An object path. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2237s # * @user_data: User data to pass to @callback. 2237s # * 2237s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 2237s # * 2237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2237s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 2237s # * 2237s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2237s # */ 2237s # void 2237s # org_project_other_callable_iface_proxy_new ( 2237s # GDBusConnection *connection, 2237s # GDBusProxyFlags flags, 2237s # const gchar *name, 2237s # const gchar *object_path, 2237s # GCancellable *cancellable, 2237s # GAsyncReadyCallback callback, 2237s # gpointer user_data) 2237s # { 2237s # 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); 2237s # } 2237s # 2237s # /** 2237s # * org_project_other_callable_iface_proxy_new_finish: 2237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 2237s # * @error: Return location for error or %NULL 2237s # * 2237s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 2237s # * 2237s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2237s # */ 2237s # OrgProjectOtherCallableIface * 2237s # org_project_other_callable_iface_proxy_new_finish ( 2237s # GAsyncResult *res, 2237s # GError **error) 2237s # { 2237s # GObject *ret; 2237s # GObject *source_object; 2237s # source_object = g_async_result_get_source_object (res); 2237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2237s # g_object_unref (source_object); 2237s # if (ret != NULL) 2237s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 2237s # else 2237s # return NULL; 2237s # } 2237s # 2237s # /** 2237s # * org_project_other_callable_iface_proxy_new_sync: 2237s # * @connection: A #GDBusConnection. 2237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2237s # * @object_path: An object path. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @error: Return location for error or %NULL 2237s # * 2237s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 2237s # * 2237s # * The calling thread is blocked until a reply is received. 2237s # * 2237s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 2237s # * 2237s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2237s # */ 2237s # OrgProjectOtherCallableIface * 2237s # org_project_other_callable_iface_proxy_new_sync ( 2237s # GDBusConnection *connection, 2237s # GDBusProxyFlags flags, 2237s # const gchar *name, 2237s # const gchar *object_path, 2237s # GCancellable *cancellable, 2237s # GError **error) 2237s # { 2237s # GInitable *ret; 2237s # 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); 2237s # if (ret != NULL) 2237s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 2237s # else 2237s # return NULL; 2237s # } 2237s # 2237s # 2237s # /** 2237s # * org_project_other_callable_iface_proxy_new_for_bus: 2237s # * @bus_type: A #GBusType. 2237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2237s # * @name: A bus name (well-known or unique). 2237s # * @object_path: An object path. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2237s # * @user_data: User data to pass to @callback. 2237s # * 2237s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2237s # * 2237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2237s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 2237s # * 2237s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2237s # */ 2237s # void 2237s # org_project_other_callable_iface_proxy_new_for_bus ( 2237s # GBusType bus_type, 2237s # GDBusProxyFlags flags, 2237s # const gchar *name, 2237s # const gchar *object_path, 2237s # GCancellable *cancellable, 2237s # GAsyncReadyCallback callback, 2237s # gpointer user_data) 2237s # { 2237s # 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); 2237s # } 2237s # 2237s # /** 2237s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 2237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 2237s # * @error: Return location for error or %NULL 2237s # * 2237s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 2237s # * 2237s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2237s # */ 2237s # OrgProjectOtherCallableIface * 2237s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 2237s # GAsyncResult *res, 2237s # GError **error) 2237s # { 2237s # GObject *ret; 2237s # GObject *source_object; 2237s # source_object = g_async_result_get_source_object (res); 2237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2237s # g_object_unref (source_object); 2237s # if (ret != NULL) 2237s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 2237s # else 2237s # return NULL; 2237s # } 2237s # 2237s # /** 2237s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 2237s # * @bus_type: A #GBusType. 2237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2237s # * @name: A bus name (well-known or unique). 2237s # * @object_path: An object path. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @error: Return location for error or %NULL 2237s # * 2237s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2237s # * 2237s # * The calling thread is blocked until a reply is received. 2237s # * 2237s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2237s # * 2237s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2237s # */ 2237s # OrgProjectOtherCallableIface * 2237s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 2237s # GBusType bus_type, 2237s # GDBusProxyFlags flags, 2237s # const gchar *name, 2237s # const gchar *object_path, 2237s # GCancellable *cancellable, 2237s # GError **error) 2237s # { 2237s # GInitable *ret; 2237s # 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); 2237s # if (ret != NULL) 2237s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 2237s # else 2237s # return NULL; 2237s # } 2237s # 2237s # 2237s # /* ------------------------------------------------------------------------ */ 2237s # 2237s # /** 2237s # * OrgProjectOtherCallableIfaceSkeleton: 2237s # * 2237s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2237s # */ 2237s # 2237s # /** 2237s # * OrgProjectOtherCallableIfaceSkeletonClass: 2237s # * @parent_class: The parent class. 2237s # * 2237s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 2237s # */ 2237s # 2237s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 2237s # { 2237s # GValue *properties; 2237s # GList *changed_properties; 2237s # GSource *changed_properties_idle_source; 2237s # GMainContext *context; 2237s # GMutex lock; 2237s # }; 2237s # 2237s # static void 2237s # _org_project_other_callable_iface_skeleton_handle_method_call ( 2237s # GDBusConnection *connection G_GNUC_UNUSED, 2237s # const gchar *sender G_GNUC_UNUSED, 2237s # const gchar *object_path G_GNUC_UNUSED, 2237s # const gchar *interface_name, 2237s # const gchar *method_name, 2237s # GVariant *parameters, 2237s # GDBusMethodInvocation *invocation, 2237s # gpointer user_data) 2237s # { 2237s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 2237s # _ExtendedGDBusMethodInfo *info; 2237s # GVariantIter iter; 2237s # GVariant *child; 2237s # GValue *paramv; 2237s # gsize num_params; 2237s # guint num_extra; 2237s # gsize n; 2237s # guint signal_id; 2237s # GValue return_value = G_VALUE_INIT; 2237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2237s # g_assert (info != NULL); 2237s # num_params = g_variant_n_children (parameters); 2237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2237s # n = 0; 2237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 2237s # g_value_set_object (¶mv[n++], skeleton); 2237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2237s # g_value_set_object (¶mv[n++], invocation); 2237s # if (info->pass_fdlist) 2237s # { 2237s # #ifdef G_OS_UNIX 2237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2237s # #else 2237s # g_assert_not_reached (); 2237s # #endif 2237s # } 2237s # g_variant_iter_init (&iter, parameters); 2237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2237s # { 2237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2237s # if (arg_info->use_gvariant) 2237s # { 2237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2237s # g_value_set_variant (¶mv[n], child); 2237s # n++; 2237s # } 2237s # else 2237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2237s # g_variant_unref (child); 2237s # } 2237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 2237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2237s # if (!g_value_get_boolean (&return_value)) 2237s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2237s # g_value_unset (&return_value); 2237s # for (n = 0; n < num_params + num_extra; n++) 2237s # g_value_unset (¶mv[n]); 2237s # g_free (paramv); 2237s # } 2237s # 2237s # static GVariant * 2237s # _org_project_other_callable_iface_skeleton_handle_get_property ( 2237s # GDBusConnection *connection G_GNUC_UNUSED, 2237s # const gchar *sender G_GNUC_UNUSED, 2237s # const gchar *object_path G_GNUC_UNUSED, 2237s # const gchar *interface_name G_GNUC_UNUSED, 2237s # const gchar *property_name, 2237s # GError **error, 2237s # gpointer user_data) 2237s # { 2237s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 2237s # GValue value = G_VALUE_INIT; 2237s # GParamSpec *pspec; 2237s # _ExtendedGDBusPropertyInfo *info; 2237s # GVariant *ret; 2237s # ret = NULL; 2237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 2237s # g_assert (info != NULL); 2237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2237s # if (pspec == NULL) 2237s # { 2237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2237s # } 2237s # else 2237s # { 2237s # g_value_init (&value, pspec->value_type); 2237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2237s # g_value_unset (&value); 2237s # } 2237s # return ret; 2237s # } 2237s # 2237s # static gboolean 2237s # _org_project_other_callable_iface_skeleton_handle_set_property ( 2237s # GDBusConnection *connection G_GNUC_UNUSED, 2237s # const gchar *sender G_GNUC_UNUSED, 2237s # const gchar *object_path G_GNUC_UNUSED, 2237s # const gchar *interface_name G_GNUC_UNUSED, 2237s # const gchar *property_name, 2237s # GVariant *variant, 2237s # GError **error, 2237s # gpointer user_data) 2237s # { 2237s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 2237s # GValue value = G_VALUE_INIT; 2237s # GParamSpec *pspec; 2237s # _ExtendedGDBusPropertyInfo *info; 2237s # gboolean ret; 2237s # ret = FALSE; 2237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 2237s # g_assert (info != NULL); 2237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2237s # if (pspec == NULL) 2237s # { 2237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2237s # } 2237s # else 2237s # { 2237s # if (info->use_gvariant) 2237s # g_value_set_variant (&value, variant); 2237s # else 2237s # g_dbus_gvariant_to_gvalue (variant, &value); 2237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2237s # g_value_unset (&value); 2237s # ret = TRUE; 2237s # } 2237s # return ret; 2237s # } 2237s # 2237s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 2237s # { 2237s # _org_project_other_callable_iface_skeleton_handle_method_call, 2237s # _org_project_other_callable_iface_skeleton_handle_get_property, 2237s # _org_project_other_callable_iface_skeleton_handle_set_property, 2237s # {NULL} 2237s # }; 2237s # 2237s # static GDBusInterfaceInfo * 2237s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2237s # { 2237s # return org_project_other_callable_iface_interface_info (); 2237s # } 2237s # 2237s # static GDBusInterfaceVTable * 2237s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2237s # { 2237s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 2237s # } 2237s # 2237s # static GVariant * 2237s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2237s # { 2237s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 2237s # 2237s # GVariantBuilder builder; 2237s # guint n; 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2237s # #else 2237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2237s # #endif 2237s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 2237s # goto out; 2237s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2237s # { 2237s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 2237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2237s # { 2237s # GVariant *value; 2237s # 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); 2237s # if (value != NULL) 2237s # { 2237s # g_variant_take_ref (value); 2237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2237s # g_variant_unref (value); 2237s # } 2237s # } 2237s # } 2237s # out: 2237s # return g_variant_builder_end (&builder); 2237s # } 2237s # 2237s # static void 2237s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2237s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 2237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 2237s # 2237s # #else 2237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 2237s # 2237s # #endif 2237s # static void 2237s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 2237s # { 2237s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 2237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2237s # if (skeleton->priv->changed_properties_idle_source != NULL) 2237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2237s # g_main_context_unref (skeleton->priv->context); 2237s # g_mutex_clear (&skeleton->priv->lock); 2237s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 2237s # } 2237s # 2237s # static void 2237s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 2237s # { 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2237s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 2237s # #else 2237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 2237s # #endif 2237s # 2237s # g_mutex_init (&skeleton->priv->lock); 2237s # skeleton->priv->context = g_main_context_ref_thread_default (); 2237s # } 2237s # 2237s # static void 2237s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 2237s # { 2237s # GObjectClass *gobject_class; 2237s # GDBusInterfaceSkeletonClass *skeleton_class; 2237s # 2237s # gobject_class = G_OBJECT_CLASS (klass); 2237s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 2237s # 2237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2237s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 2237s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 2237s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 2237s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 2237s # 2237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2237s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 2237s # #endif 2237s # } 2237s # 2237s # static void 2237s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # /** 2237s # * org_project_other_callable_iface_skeleton_new: 2237s # * 2237s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 2237s # * 2237s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 2237s # */ 2237s # OrgProjectOtherCallableIface * 2237s # org_project_other_callable_iface_skeleton_new (void) 2237s # { 2237s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 2237s # } 2237s # Error: 2237s ok 13 __main__.TestCodegen.test_generate_methods_marshallers_multiple_out_args 2237s # gdbus-codegen: /usr/bin/gdbus-codegen 2237s # tmpdir: /tmp/tmp8b4iesyi 2237s # /tmp/tmp8b4iesyi/tmpgs23qlev.xml: 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8b4iesyi/tmpgs23qlev.xml', '--output', '-', '--body'] 2237s # Return code: 0 2237s # Output: 2237s # /* 2237s # * This file is generated by gdbus-codegen, do not modify it. 2237s # * 2237s # * The license of this code is the same as for the D-Bus interface description 2237s # * it was derived from. Note that it links to GLib, so must comply with the 2237s # * LGPL linking clauses. 2237s # */ 2237s # 2237s # #ifdef HAVE_CONFIG_H 2237s # # include "config.h" 2237s # #endif 2237s # 2237s # #include 2237s # #ifdef G_OS_UNIX 2237s # # include 2237s # #endif 2237s # 2237s # #ifdef G_ENABLE_DEBUG 2237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2237s # #else /* !G_ENABLE_DEBUG */ 2237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2237s # * Do not access GValues directly in your code. Instead, use the 2237s # * g_value_get_*() functions 2237s # */ 2237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2237s # #endif /* !G_ENABLE_DEBUG */ 2237s # 2237s # typedef struct 2237s # { 2237s # GDBusArgInfo parent_struct; 2237s # gboolean use_gvariant; 2237s # } _ExtendedGDBusArgInfo; 2237s # 2237s # typedef struct 2237s # { 2237s # GDBusMethodInfo parent_struct; 2237s # const gchar *signal_name; 2237s # gboolean pass_fdlist; 2237s # } _ExtendedGDBusMethodInfo; 2237s # 2237s # typedef struct 2237s # { 2237s # GDBusSignalInfo parent_struct; 2237s # const gchar *signal_name; 2237s # } _ExtendedGDBusSignalInfo; 2237s # 2237s # typedef struct 2237s # { 2237s # GDBusPropertyInfo parent_struct; 2237s # const gchar *hyphen_name; 2237s # guint use_gvariant : 1; 2237s # guint emits_changed_signal : 1; 2237s # } _ExtendedGDBusPropertyInfo; 2237s # 2237s # typedef struct 2237s # { 2237s # GDBusInterfaceInfo parent_struct; 2237s # const gchar *hyphen_name; 2237s # } _ExtendedGDBusInterfaceInfo; 2237s # 2237s # typedef struct 2237s # { 2237s # const _ExtendedGDBusPropertyInfo *info; 2237s # guint prop_id; 2237s # GValue orig_value; /* the value before the change */ 2237s # } ChangedProperty; 2237s # 2237s # static void 2237s # _changed_property_free (ChangedProperty *data) 2237s # { 2237s # g_value_unset (&data->orig_value); 2237s # g_free (data); 2237s # } 2237s # 2237s # static gboolean 2237s # _g_strv_equal0 (gchar **a, gchar **b) 2237s # { 2237s # gboolean ret = FALSE; 2237s # guint n; 2237s # if (a == NULL && b == NULL) 2237s # { 2237s # ret = TRUE; 2237s # goto out; 2237s # } 2237s # if (a == NULL || b == NULL) 2237s # goto out; 2237s # if (g_strv_length (a) != g_strv_length (b)) 2237s # goto out; 2237s # for (n = 0; a[n] != NULL; n++) 2237s # if (g_strcmp0 (a[n], b[n]) != 0) 2237s # goto out; 2237s # ret = TRUE; 2237s # out: 2237s # return ret; 2237s # } 2237s # 2237s # static gboolean 2237s # _g_variant_equal0 (GVariant *a, GVariant *b) 2237s # { 2237s # gboolean ret = FALSE; 2237s # if (a == NULL && b == NULL) 2237s # { 2237s # ret = TRUE; 2237s # goto out; 2237s # } 2237s # if (a == NULL || b == NULL) 2237s # goto out; 2237s # ret = g_variant_equal (a, b); 2237s # out: 2237s # return ret; 2237s # } 2237s # 2237s # G_GNUC_UNUSED static gboolean 2237s # _g_value_equal (const GValue *a, const GValue *b) 2237s # { 2237s # gboolean ret = FALSE; 2237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2237s # switch (G_VALUE_TYPE (a)) 2237s # { 2237s # case G_TYPE_BOOLEAN: 2237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2237s # break; 2237s # case G_TYPE_UCHAR: 2237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2237s # break; 2237s # case G_TYPE_INT: 2237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2237s # break; 2237s # case G_TYPE_UINT: 2237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2237s # break; 2237s # case G_TYPE_INT64: 2237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2237s # break; 2237s # case G_TYPE_UINT64: 2237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2237s # break; 2237s # case G_TYPE_DOUBLE: 2237s # { 2237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2237s # gdouble da = g_value_get_double (a); 2237s # gdouble db = g_value_get_double (b); 2237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2237s # } 2237s # break; 2237s # case G_TYPE_STRING: 2237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2237s # break; 2237s # case G_TYPE_VARIANT: 2237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2237s # break; 2237s # default: 2237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2237s # else 2237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2237s # break; 2237s # } 2237s # return ret; 2237s # } 2237s # 2237s # static void 2237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2237s # GClosure *closure, 2237s # GValue *return_value, 2237s # unsigned int n_param_values, 2237s # const GValue *param_values, 2237s # void *invocation_hint G_GNUC_UNUSED, 2237s # void *marshal_data) 2237s # { 2237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2237s # (void *data1, 2237s # GDBusMethodInvocation *arg_method_invocation, 2237s # void *data2); 2237s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2237s # GCClosure *cc = (GCClosure*) closure; 2237s # void *data1, *data2; 2237s # gboolean v_return; 2237s # 2237s # g_return_if_fail (return_value != NULL); 2237s # g_return_if_fail (n_param_values == 2); 2237s # 2237s # if (G_CCLOSURE_SWAP_DATA (closure)) 2237s # { 2237s # data1 = closure->data; 2237s # data2 = g_value_peek_pointer (param_values + 0); 2237s # } 2237s # else 2237s # { 2237s # data1 = g_value_peek_pointer (param_values + 0); 2237s # data2 = closure->data; 2237s # } 2237s # 2237s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2237s # (marshal_data ? marshal_data : cc->callback); 2237s # 2237s # v_return = 2237s # callback (data1, 2237s # g_marshal_value_peek_object (param_values + 1), 2237s # data2); 2237s # 2237s # g_value_set_boolean (return_value, v_return); 2237s # } 2237s # 2237s # /* ------------------------------------------------------------------------ 2237s # * Code for interface org.project.CallableIface 2237s # * ------------------------------------------------------------------------ 2237s # */ 2237s # 2237s # /** 2237s # * SECTION:OrgProjectCallableIface 2237s # * @title: OrgProjectCallableIface 2237s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 2237s # * 2237s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 2237s # */ 2237s # 2237s # /* ---- Introspection data for org.project.CallableIface ---- */ 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_b", 2237s # (gchar *) "b", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_y", 2237s # (gchar *) "y", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_n", 2237s # (gchar *) "n", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_q", 2237s # (gchar *) "q", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_i", 2237s # (gchar *) "i", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_u", 2237s # (gchar *) "u", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_x", 2237s # (gchar *) "x", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_t", 2237s # (gchar *) "t", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_d", 2237s # (gchar *) "d", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_s", 2237s # (gchar *) "s", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_o", 2237s # (gchar *) "o", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_g", 2237s # (gchar *) "g", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_h", 2237s # (gchar *) "h", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_ay", 2237s # (gchar *) "ay", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_as", 2237s # (gchar *) "as", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_ao", 2237s # (gchar *) "ao", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_aay", 2237s # (gchar *) "aay", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "an_asv", 2237s # (gchar *) "a{sv}", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers[] = 2237s # { 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay.parent_struct, 2237s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv.parent_struct, 2237s # NULL 2237s # }; 2237s # 2237s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "MethodWithManyArgs", 2237s # NULL, 2237s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers, 2237s # NULL 2237s # }, 2237s # "handle-method-with-many-args", 2237s # FALSE 2237s # }; 2237s # 2237s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 2237s # { 2237s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 2237s # NULL 2237s # }; 2237s # 2237s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "org.project.CallableIface", 2237s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 2237s # NULL, 2237s # NULL, 2237s # NULL 2237s # }, 2237s # "org-project-callable-iface", 2237s # }; 2237s # 2237s # 2237s # /** 2237s # * org_project_callable_iface_interface_info: 2237s # * 2237s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 2237s # * 2237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2237s # */ 2237s # GDBusInterfaceInfo * 2237s # org_project_callable_iface_interface_info (void) 2237s # { 2237s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_override_properties: 2237s # * @klass: The class structure for a #GObject derived class. 2237s # * @property_id_begin: The property id to assign to the first overridden property. 2237s # * 2237s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 2237s # * The properties are overridden in the order they are defined. 2237s # * 2237s # * Returns: The last property id. 2237s # */ 2237s # guint 2237s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2237s # { 2237s # return property_id_begin - 1; 2237s # } 2237s # 2237s # 2237s # inline static void 2237s # org_project_callable_iface_method_marshal_method_with_many_args ( 2237s # GClosure *closure, 2237s # GValue *return_value, 2237s # unsigned int n_param_values, 2237s # const GValue *param_values, 2237s # void *invocation_hint, 2237s # void *marshal_data) 2237s # { 2237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2237s # } 2237s # 2237s # 2237s # /** 2237s # * OrgProjectCallableIface: 2237s # * 2237s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 2237s # */ 2237s # 2237s # /** 2237s # * OrgProjectCallableIfaceIface: 2237s # * @parent_iface: The parent interface. 2237s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 2237s # * 2237s # * Virtual table for the D-Bus interface org.project.CallableIface. 2237s # */ 2237s # 2237s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 2237s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 2237s # 2237s # static void 2237s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 2237s # { 2237s # /* GObject signals for incoming D-Bus method calls: */ 2237s # /** 2237s # * OrgProjectCallableIface::handle-method-with-many-args: 2237s # * @object: A #OrgProjectCallableIface. 2237s # * @invocation: A #GDBusMethodInvocation. 2237s # * 2237s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 2237s # * 2237s # * 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. 2237s # * 2237s # * 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. 2237s # */ 2237s # g_signal_new ("handle-method-with-many-args", 2237s # G_TYPE_FROM_INTERFACE (iface), 2237s # G_SIGNAL_RUN_LAST, 2237s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 2237s # g_signal_accumulator_true_handled, 2237s # NULL, 2237s # org_project_callable_iface_method_marshal_method_with_many_args, 2237s # G_TYPE_BOOLEAN, 2237s # 1, 2237s # G_TYPE_DBUS_METHOD_INVOCATION); 2237s # 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_call_method_with_many_args: 2237s # * @proxy: A #OrgProjectCallableIfaceProxy. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2237s # * @user_data: User data to pass to @callback. 2237s # * 2237s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 2237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2237s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 2237s # * 2237s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 2237s # */ 2237s # void 2237s # org_project_callable_iface_call_method_with_many_args ( 2237s # OrgProjectCallableIface *proxy, 2237s # GCancellable *cancellable, 2237s # GAsyncReadyCallback callback, 2237s # gpointer user_data) 2237s # { 2237s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2237s # "MethodWithManyArgs", 2237s # g_variant_new ("()"), 2237s # G_DBUS_CALL_FLAGS_NONE, 2237s # -1, 2237s # cancellable, 2237s # callback, 2237s # user_data); 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_call_method_with_many_args_finish: 2237s # * @proxy: A #OrgProjectCallableIfaceProxy. 2237s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 2237s # * @error: Return location for error or %NULL. 2237s # * 2237s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 2237s # * 2237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2237s # */ 2237s # gboolean 2237s # org_project_callable_iface_call_method_with_many_args_finish ( 2237s # OrgProjectCallableIface *proxy, 2237s # gboolean *out_an_b, 2237s # guchar *out_an_y, 2237s # gint16 *out_an_n, 2237s # guint16 *out_an_q, 2237s # gint *out_an_i, 2237s # guint *out_an_u, 2237s # gint64 *out_an_x, 2237s # guint64 *out_an_t, 2237s # gdouble *out_an_d, 2237s # gchar **out_an_s, 2237s # gchar **out_an_o, 2237s # gchar **out_an_g, 2237s # GVariant **out_an_h, 2237s # gchar **out_an_ay, 2237s # gchar ***out_an_as, 2237s # gchar ***out_an_ao, 2237s # gchar ***out_an_aay, 2237s # GVariant **out_an_asv, 2237s # GAsyncResult *res, 2237s # GError **error) 2237s # { 2237s # GVariant *_ret; 2237s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2237s # if (_ret == NULL) 2237s # goto _out; 2237s # g_variant_get (_ret, 2237s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 2237s # out_an_b, 2237s # out_an_y, 2237s # out_an_n, 2237s # out_an_q, 2237s # out_an_i, 2237s # out_an_u, 2237s # out_an_x, 2237s # out_an_t, 2237s # out_an_d, 2237s # out_an_s, 2237s # out_an_o, 2237s # out_an_g, 2237s # out_an_h, 2237s # out_an_ay, 2237s # out_an_as, 2237s # out_an_ao, 2237s # out_an_aay, 2237s # out_an_asv); 2237s # g_variant_unref (_ret); 2237s # _out: 2237s # return _ret != NULL; 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_call_method_with_many_args_sync: 2237s # * @proxy: A #OrgProjectCallableIfaceProxy. 2237s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 2237s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @error: Return location for error or %NULL. 2237s # * 2237s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2237s # * 2237s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 2237s # * 2237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2237s # */ 2237s # gboolean 2237s # org_project_callable_iface_call_method_with_many_args_sync ( 2237s # OrgProjectCallableIface *proxy, 2237s # gboolean *out_an_b, 2237s # guchar *out_an_y, 2237s # gint16 *out_an_n, 2237s # guint16 *out_an_q, 2237s # gint *out_an_i, 2237s # guint *out_an_u, 2237s # gint64 *out_an_x, 2237s # guint64 *out_an_t, 2237s # gdouble *out_an_d, 2237s # gchar **out_an_s, 2237s # gchar **out_an_o, 2237s # gchar **out_an_g, 2237s # GVariant **out_an_h, 2237s # gchar **out_an_ay, 2237s # gchar ***out_an_as, 2237s # gchar ***out_an_ao, 2237s # gchar ***out_an_aay, 2237s # GVariant **out_an_asv, 2237s # GCancellable *cancellable, 2237s # GError **error) 2237s # { 2237s # GVariant *_ret; 2237s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2237s # "MethodWithManyArgs", 2237s # g_variant_new ("()"), 2237s # G_DBUS_CALL_FLAGS_NONE, 2237s # -1, 2237s # cancellable, 2237s # error); 2237s # if (_ret == NULL) 2237s # goto _out; 2237s # g_variant_get (_ret, 2237s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 2237s # out_an_b, 2237s # out_an_y, 2237s # out_an_n, 2237s # out_an_q, 2237s # out_an_i, 2237s # out_an_u, 2237s # out_an_x, 2237s # out_an_t, 2237s # out_an_d, 2237s # out_an_s, 2237s # out_an_o, 2237s # out_an_g, 2237s # out_an_h, 2237s # out_an_ay, 2237s # out_an_as, 2237s # out_an_ao, 2237s # out_an_aay, 2237s # out_an_asv); 2237s # g_variant_unref (_ret); 2237s # _out: 2237s # return _ret != NULL; 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_complete_method_with_many_args: 2237s # * @object: A #OrgProjectCallableIface. 2237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2237s # * @an_b: Parameter to return. 2237s # * @an_y: Parameter to return. 2237s # * @an_n: Parameter to return. 2237s # * @an_q: Parameter to return. 2237s # * @an_i: Parameter to return. 2237s # * @an_u: Parameter to return. 2237s # * @an_x: Parameter to return. 2237s # * @an_t: Parameter to return. 2237s # * @an_d: Parameter to return. 2237s # * @an_s: Parameter to return. 2237s # * @an_o: Parameter to return. 2237s # * @an_g: Parameter to return. 2237s # * @an_h: Parameter to return. 2237s # * @an_ay: Parameter to return. 2237s # * @an_as: Parameter to return. 2237s # * @an_ao: Parameter to return. 2237s # * @an_aay: Parameter to return. 2237s # * @an_asv: Parameter to return. 2237s # * 2237s # * 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. 2237s # * 2237s # * This method will free @invocation, you cannot use it afterwards. 2237s # */ 2237s # void 2237s # org_project_callable_iface_complete_method_with_many_args ( 2237s # OrgProjectCallableIface *object G_GNUC_UNUSED, 2237s # GDBusMethodInvocation *invocation, 2237s # gboolean an_b, 2237s # guchar an_y, 2237s # gint16 an_n, 2237s # guint16 an_q, 2237s # gint an_i, 2237s # guint an_u, 2237s # gint64 an_x, 2237s # guint64 an_t, 2237s # gdouble an_d, 2237s # const gchar *an_s, 2237s # const gchar *an_o, 2237s # const gchar *an_g, 2237s # GVariant *an_h, 2237s # const gchar *an_ay, 2237s # const gchar *const *an_as, 2237s # const gchar *const *an_ao, 2237s # const gchar *const *an_aay, 2237s # GVariant *an_asv) 2237s # { 2237s # g_dbus_method_invocation_return_value (invocation, 2237s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 2237s # an_b, 2237s # an_y, 2237s # an_n, 2237s # an_q, 2237s # an_i, 2237s # an_u, 2237s # an_x, 2237s # an_t, 2237s # an_d, 2237s # an_s, 2237s # an_o, 2237s # an_g, 2237s # an_h, 2237s # an_ay, 2237s # an_as, 2237s # an_ao, 2237s # an_aay, 2237s # an_asv)); 2237s # } 2237s # 2237s # /* ------------------------------------------------------------------------ */ 2237s # 2237s # /** 2237s # * OrgProjectCallableIfaceProxy: 2237s # * 2237s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 2237s # */ 2237s # 2237s # /** 2237s # * OrgProjectCallableIfaceProxyClass: 2237s # * @parent_class: The parent class. 2237s # * 2237s # * Class structure for #OrgProjectCallableIfaceProxy. 2237s # */ 2237s # 2237s # struct _OrgProjectCallableIfaceProxyPrivate 2237s # { 2237s # GData *qdata; 2237s # }; 2237s # 2237s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 2237s # 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 2237s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 2237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 2237s # 2237s # #else 2237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 2237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 2237s # 2237s # #endif 2237s # static void 2237s # org_project_callable_iface_proxy_finalize (GObject *object) 2237s # { 2237s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 2237s # g_datalist_clear (&proxy->priv->qdata); 2237s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2237s # guint prop_id G_GNUC_UNUSED, 2237s # GValue *value G_GNUC_UNUSED, 2237s # GParamSpec *pspec G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2237s # guint prop_id G_GNUC_UNUSED, 2237s # const GValue *value G_GNUC_UNUSED, 2237s # GParamSpec *pspec G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 2237s # const gchar *sender_name G_GNUC_UNUSED, 2237s # const gchar *signal_name, 2237s # GVariant *parameters) 2237s # { 2237s # _ExtendedGDBusSignalInfo *info; 2237s # GVariantIter iter; 2237s # GVariant *child; 2237s # GValue *paramv; 2237s # gsize num_params; 2237s # gsize n; 2237s # guint signal_id; 2237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 2237s # if (info == NULL) 2237s # return; 2237s # num_params = g_variant_n_children (parameters); 2237s # paramv = g_new0 (GValue, num_params + 1); 2237s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 2237s # g_value_set_object (¶mv[0], proxy); 2237s # g_variant_iter_init (&iter, parameters); 2237s # n = 1; 2237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2237s # { 2237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2237s # if (arg_info->use_gvariant) 2237s # { 2237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2237s # g_value_set_variant (¶mv[n], child); 2237s # n++; 2237s # } 2237s # else 2237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2237s # g_variant_unref (child); 2237s # } 2237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 2237s # g_signal_emitv (paramv, signal_id, 0, NULL); 2237s # for (n = 0; n < num_params + 1; n++) 2237s # g_value_unset (¶mv[n]); 2237s # g_free (paramv); 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2237s # GVariant *changed_properties, 2237s # const gchar *const *invalidated_properties) 2237s # { 2237s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 2237s # guint n; 2237s # const gchar *key; 2237s # GVariantIter *iter; 2237s # _ExtendedGDBusPropertyInfo *info; 2237s # g_variant_get (changed_properties, "a{sv}", &iter); 2237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2237s # { 2237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 2237s # g_datalist_remove_data (&proxy->priv->qdata, key); 2237s # if (info != NULL) 2237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2237s # } 2237s # g_variant_iter_free (iter); 2237s # for (n = 0; invalidated_properties[n] != NULL; n++) 2237s # { 2237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 2237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2237s # if (info != NULL) 2237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2237s # } 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 2237s # { 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2237s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 2237s # #else 2237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 2237s # #endif 2237s # 2237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 2237s # { 2237s # GObjectClass *gobject_class; 2237s # GDBusProxyClass *proxy_class; 2237s # 2237s # gobject_class = G_OBJECT_CLASS (klass); 2237s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 2237s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 2237s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 2237s # 2237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2237s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 2237s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 2237s # 2237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2237s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 2237s # #endif 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_proxy_new: 2237s # * @connection: A #GDBusConnection. 2237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2237s # * @object_path: An object path. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2237s # * @user_data: User data to pass to @callback. 2237s # * 2237s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 2237s # * 2237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2237s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 2237s # * 2237s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2237s # */ 2237s # void 2237s # org_project_callable_iface_proxy_new ( 2237s # GDBusConnection *connection, 2237s # GDBusProxyFlags flags, 2237s # const gchar *name, 2237s # const gchar *object_path, 2237s # GCancellable *cancellable, 2237s # GAsyncReadyCallback callback, 2237s # gpointer user_data) 2237s # { 2237s # 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); 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_proxy_new_finish: 2237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 2237s # * @error: Return location for error or %NULL 2237s # * 2237s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 2237s # * 2237s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2237s # */ 2237s # OrgProjectCallableIface * 2237s # org_project_callable_iface_proxy_new_finish ( 2237s # GAsyncResult *res, 2237s # GError **error) 2237s # { 2237s # GObject *ret; 2237s # GObject *source_object; 2237s # source_object = g_async_result_get_source_object (res); 2237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2237s # g_object_unref (source_object); 2237s # if (ret != NULL) 2237s # return ORG_PROJECT_CALLABLE_IFACE (ret); 2237s # else 2237s # return NULL; 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_proxy_new_sync: 2237s # * @connection: A #GDBusConnection. 2237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2237s # * @object_path: An object path. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @error: Return location for error or %NULL 2237s # * 2237s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 2237s # * 2237s # * The calling thread is blocked until a reply is received. 2237s # * 2237s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 2237s # * 2237s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2237s # */ 2237s # OrgProjectCallableIface * 2237s # org_project_callable_iface_proxy_new_sync ( 2237s # GDBusConnection *connection, 2237s # GDBusProxyFlags flags, 2237s # const gchar *name, 2237s # const gchar *object_path, 2237s # GCancellable *cancellable, 2237s # GError **error) 2237s # { 2237s # GInitable *ret; 2237s # 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); 2237s # if (ret != NULL) 2237s # return ORG_PROJECT_CALLABLE_IFACE (ret); 2237s # else 2237s # return NULL; 2237s # } 2237s # 2237s # 2237s # /** 2237s # * org_project_callable_iface_proxy_new_for_bus: 2237s # * @bus_type: A #GBusType. 2237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2237s # * @name: A bus name (well-known or unique). 2237s # * @object_path: An object path. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2237s # * @user_data: User data to pass to @callback. 2237s # * 2237s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2237s # * 2237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2237s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 2237s # * 2237s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2237s # */ 2237s # void 2237s # org_project_callable_iface_proxy_new_for_bus ( 2237s # GBusType bus_type, 2237s # GDBusProxyFlags flags, 2237s # const gchar *name, 2237s # const gchar *object_path, 2237s # GCancellable *cancellable, 2237s # GAsyncReadyCallback callback, 2237s # gpointer user_data) 2237s # { 2237s # 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); 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_proxy_new_for_bus_finish: 2237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 2237s # * @error: Return location for error or %NULL 2237s # * 2237s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 2237s # * 2237s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2237s # */ 2237s # OrgProjectCallableIface * 2237s # org_project_callable_iface_proxy_new_for_bus_finish ( 2237s # GAsyncResult *res, 2237s # GError **error) 2237s # { 2237s # GObject *ret; 2237s # GObject *source_object; 2237s # source_object = g_async_result_get_source_object (res); 2237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2237s # g_object_unref (source_object); 2237s # if (ret != NULL) 2237s # return ORG_PROJECT_CALLABLE_IFACE (ret); 2237s # else 2237s # return NULL; 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_proxy_new_for_bus_sync: 2237s # * @bus_type: A #GBusType. 2237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2237s # * @name: A bus name (well-known or unique). 2237s # * @object_path: An object path. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @error: Return location for error or %NULL 2237s # * 2237s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2237s # * 2237s # * The calling thread is blocked until a reply is received. 2237s # * 2237s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2237s # * 2237s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 2237s # */ 2237s # OrgProjectCallableIface * 2237s # org_project_callable_iface_proxy_new_for_bus_sync ( 2237s # GBusType bus_type, 2237s # GDBusProxyFlags flags, 2237s # const gchar *name, 2237s # const gchar *object_path, 2237s # GCancellable *cancellable, 2237s # GError **error) 2237s # { 2237s # GInitable *ret; 2237s # 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); 2237s # if (ret != NULL) 2237s # return ORG_PROJECT_CALLABLE_IFACE (ret); 2237s # else 2237s # return NULL; 2237s # } 2237s # 2237s # 2237s # /* ------------------------------------------------------------------------ */ 2237s # 2237s # /** 2237s # * OrgProjectCallableIfaceSkeleton: 2237s # * 2237s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2237s # */ 2237s # 2237s # /** 2237s # * OrgProjectCallableIfaceSkeletonClass: 2237s # * @parent_class: The parent class. 2237s # * 2237s # * Class structure for #OrgProjectCallableIfaceSkeleton. 2237s # */ 2237s # 2237s # struct _OrgProjectCallableIfaceSkeletonPrivate 2237s # { 2237s # GValue *properties; 2237s # GList *changed_properties; 2237s # GSource *changed_properties_idle_source; 2237s # GMainContext *context; 2237s # GMutex lock; 2237s # }; 2237s # 2237s # static void 2237s # _org_project_callable_iface_skeleton_handle_method_call ( 2237s # GDBusConnection *connection G_GNUC_UNUSED, 2237s # const gchar *sender G_GNUC_UNUSED, 2237s # const gchar *object_path G_GNUC_UNUSED, 2237s # const gchar *interface_name, 2237s # const gchar *method_name, 2237s # GVariant *parameters, 2237s # GDBusMethodInvocation *invocation, 2237s # gpointer user_data) 2237s # { 2237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 2237s # _ExtendedGDBusMethodInfo *info; 2237s # GVariantIter iter; 2237s # GVariant *child; 2237s # GValue *paramv; 2237s # gsize num_params; 2237s # guint num_extra; 2237s # gsize n; 2237s # guint signal_id; 2237s # GValue return_value = G_VALUE_INIT; 2237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2237s # g_assert (info != NULL); 2237s # num_params = g_variant_n_children (parameters); 2237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2237s # n = 0; 2237s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 2237s # g_value_set_object (¶mv[n++], skeleton); 2237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2237s # g_value_set_object (¶mv[n++], invocation); 2237s # if (info->pass_fdlist) 2237s # { 2237s # #ifdef G_OS_UNIX 2237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2237s # #else 2237s # g_assert_not_reached (); 2237s # #endif 2237s # } 2237s # g_variant_iter_init (&iter, parameters); 2237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2237s # { 2237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2237s # if (arg_info->use_gvariant) 2237s # { 2237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2237s # g_value_set_variant (¶mv[n], child); 2237s # n++; 2237s # } 2237s # else 2237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2237s # g_variant_unref (child); 2237s # } 2237s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 2237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2237s # if (!g_value_get_boolean (&return_value)) 2237s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2237s # g_value_unset (&return_value); 2237s # for (n = 0; n < num_params + num_extra; n++) 2237s # g_value_unset (¶mv[n]); 2237s # g_free (paramv); 2237s # } 2237s # 2237s # static GVariant * 2237s # _org_project_callable_iface_skeleton_handle_get_property ( 2237s # GDBusConnection *connection G_GNUC_UNUSED, 2237s # const gchar *sender G_GNUC_UNUSED, 2237s # const gchar *object_path G_GNUC_UNUSED, 2237s # const gchar *interface_name G_GNUC_UNUSED, 2237s # const gchar *property_name, 2237s # GError **error, 2237s # gpointer user_data) 2237s # { 2237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 2237s # GValue value = G_VALUE_INIT; 2237s # GParamSpec *pspec; 2237s # _ExtendedGDBusPropertyInfo *info; 2237s # GVariant *ret; 2237s # ret = NULL; 2237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 2237s # g_assert (info != NULL); 2237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2237s # if (pspec == NULL) 2237s # { 2237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2237s # } 2237s # else 2237s # { 2237s # g_value_init (&value, pspec->value_type); 2237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2237s # g_value_unset (&value); 2237s # } 2237s # return ret; 2237s # } 2237s # 2237s # static gboolean 2237s # _org_project_callable_iface_skeleton_handle_set_property ( 2237s # GDBusConnection *connection G_GNUC_UNUSED, 2237s # const gchar *sender G_GNUC_UNUSED, 2237s # const gchar *object_path G_GNUC_UNUSED, 2237s # const gchar *interface_name G_GNUC_UNUSED, 2237s # const gchar *property_name, 2237s # GVariant *variant, 2237s # GError **error, 2237s # gpointer user_data) 2237s # { 2237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 2237s # GValue value = G_VALUE_INIT; 2237s # GParamSpec *pspec; 2237s # _ExtendedGDBusPropertyInfo *info; 2237s # gboolean ret; 2237s # ret = FALSE; 2237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 2237s # g_assert (info != NULL); 2237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2237s # if (pspec == NULL) 2237s # { 2237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2237s # } 2237s # else 2237s # { 2237s # if (info->use_gvariant) 2237s # g_value_set_variant (&value, variant); 2237s # else 2237s # g_dbus_gvariant_to_gvalue (variant, &value); 2237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2237s # g_value_unset (&value); 2237s # ret = TRUE; 2237s # } 2237s # return ret; 2237s # } 2237s # 2237s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 2237s # { 2237s # _org_project_callable_iface_skeleton_handle_method_call, 2237s # _org_project_callable_iface_skeleton_handle_get_property, 2237s # _org_project_callable_iface_skeleton_handle_set_property, 2237s # {NULL} 2237s # }; 2237s # 2237s # static GDBusInterfaceInfo * 2237s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2237s # { 2237s # return org_project_callable_iface_interface_info (); 2237s # } 2237s # 2237s # static GDBusInterfaceVTable * 2237s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2237s # { 2237s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 2237s # } 2237s # 2237s # static GVariant * 2237s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2237s # { 2237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 2237s # 2237s # GVariantBuilder builder; 2237s # guint n; 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2237s # #else 2237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2237s # #endif 2237s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 2237s # goto out; 2237s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2237s # { 2237s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 2237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2237s # { 2237s # GVariant *value; 2237s # 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); 2237s # if (value != NULL) 2237s # { 2237s # g_variant_take_ref (value); 2237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2237s # g_variant_unref (value); 2237s # } 2237s # } 2237s # } 2237s # out: 2237s # return g_variant_builder_end (&builder); 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2237s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 2237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 2237s # 2237s # #else 2237s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2237s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 2237s # 2237s # #endif 2237s # static void 2237s # org_project_callable_iface_skeleton_finalize (GObject *object) 2237s # { 2237s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 2237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2237s # if (skeleton->priv->changed_properties_idle_source != NULL) 2237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2237s # g_main_context_unref (skeleton->priv->context); 2237s # g_mutex_clear (&skeleton->priv->lock); 2237s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 2237s # { 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2237s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 2237s # #else 2237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 2237s # #endif 2237s # 2237s # g_mutex_init (&skeleton->priv->lock); 2237s # skeleton->priv->context = g_main_context_ref_thread_default (); 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 2237s # { 2237s # GObjectClass *gobject_class; 2237s # GDBusInterfaceSkeletonClass *skeleton_class; 2237s # 2237s # gobject_class = G_OBJECT_CLASS (klass); 2237s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 2237s # 2237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2237s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 2237s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 2237s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 2237s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 2237s # 2237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2237s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 2237s # #endif 2237s # } 2237s # 2237s # static void 2237s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # /** 2237s # * org_project_callable_iface_skeleton_new: 2237s # * 2237s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 2237s # * 2237s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 2237s # */ 2237s # OrgProjectCallableIface * 2237s # org_project_callable_iface_skeleton_new (void) 2237s # { 2237s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 2237s # } 2237s # Error: 2237s ok 14 __main__.TestCodegen.test_generate_methods_marshallers_with_unix_fds 2237s # gdbus-codegen: /usr/bin/gdbus-codegen 2237s # tmpdir: /tmp/tmp8i453hw0 2237s # /tmp/tmp8i453hw0/tmpxedz9uch.xml: 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8i453hw0/tmpxedz9uch.xml', '--output', '-', '--body'] 2237s # Return code: 0 2237s # Output: 2237s # /* 2237s # * This file is generated by gdbus-codegen, do not modify it. 2237s # * 2237s # * The license of this code is the same as for the D-Bus interface description 2237s # * it was derived from. Note that it links to GLib, so must comply with the 2237s # * LGPL linking clauses. 2237s # */ 2237s # 2237s # #ifdef HAVE_CONFIG_H 2237s # # include "config.h" 2237s # #endif 2237s # 2237s # #include 2237s # #ifdef G_OS_UNIX 2237s # # include 2237s # #endif 2237s # 2237s # #ifdef G_ENABLE_DEBUG 2237s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2237s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2237s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2237s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2237s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2237s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2237s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2237s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2237s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2237s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2237s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2237s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2237s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2237s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2237s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2237s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2237s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2237s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2237s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2237s # #else /* !G_ENABLE_DEBUG */ 2237s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2237s # * Do not access GValues directly in your code. Instead, use the 2237s # * g_value_get_*() functions 2237s # */ 2237s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2237s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2237s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2237s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2237s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2237s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2237s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2237s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2237s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2237s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2237s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2237s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2237s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2237s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2237s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2237s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2237s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2237s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2237s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2237s # #endif /* !G_ENABLE_DEBUG */ 2237s # 2237s # typedef struct 2237s # { 2237s # GDBusArgInfo parent_struct; 2237s # gboolean use_gvariant; 2237s # } _ExtendedGDBusArgInfo; 2237s # 2237s # typedef struct 2237s # { 2237s # GDBusMethodInfo parent_struct; 2237s # const gchar *signal_name; 2237s # gboolean pass_fdlist; 2237s # } _ExtendedGDBusMethodInfo; 2237s # 2237s # typedef struct 2237s # { 2237s # GDBusSignalInfo parent_struct; 2237s # const gchar *signal_name; 2237s # } _ExtendedGDBusSignalInfo; 2237s # 2237s # typedef struct 2237s # { 2237s # GDBusPropertyInfo parent_struct; 2237s # const gchar *hyphen_name; 2237s # guint use_gvariant : 1; 2237s # guint emits_changed_signal : 1; 2237s # } _ExtendedGDBusPropertyInfo; 2237s # 2237s # typedef struct 2237s # { 2237s # GDBusInterfaceInfo parent_struct; 2237s # const gchar *hyphen_name; 2237s # } _ExtendedGDBusInterfaceInfo; 2237s # 2237s # typedef struct 2237s # { 2237s # const _ExtendedGDBusPropertyInfo *info; 2237s # guint prop_id; 2237s # GValue orig_value; /* the value before the change */ 2237s # } ChangedProperty; 2237s # 2237s # static void 2237s # _changed_property_free (ChangedProperty *data) 2237s # { 2237s # g_value_unset (&data->orig_value); 2237s # g_free (data); 2237s # } 2237s # 2237s # static gboolean 2237s # _g_strv_equal0 (gchar **a, gchar **b) 2237s # { 2237s # gboolean ret = FALSE; 2237s # guint n; 2237s # if (a == NULL && b == NULL) 2237s # { 2237s # ret = TRUE; 2237s # goto out; 2237s # } 2237s # if (a == NULL || b == NULL) 2237s # goto out; 2237s # if (g_strv_length (a) != g_strv_length (b)) 2237s # goto out; 2237s # for (n = 0; a[n] != NULL; n++) 2237s # if (g_strcmp0 (a[n], b[n]) != 0) 2237s # goto out; 2237s # ret = TRUE; 2237s # out: 2237s # return ret; 2237s # } 2237s # 2237s # static gboolean 2237s # _g_variant_equal0 (GVariant *a, GVariant *b) 2237s # { 2237s # gboolean ret = FALSE; 2237s # if (a == NULL && b == NULL) 2237s # { 2237s # ret = TRUE; 2237s # goto out; 2237s # } 2237s # if (a == NULL || b == NULL) 2237s # goto out; 2237s # ret = g_variant_equal (a, b); 2237s # out: 2237s # return ret; 2237s # } 2237s # 2237s # G_GNUC_UNUSED static gboolean 2237s # _g_value_equal (const GValue *a, const GValue *b) 2237s # { 2237s # gboolean ret = FALSE; 2237s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2237s # switch (G_VALUE_TYPE (a)) 2237s # { 2237s # case G_TYPE_BOOLEAN: 2237s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2237s # break; 2237s # case G_TYPE_UCHAR: 2237s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2237s # break; 2237s # case G_TYPE_INT: 2237s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2237s # break; 2237s # case G_TYPE_UINT: 2237s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2237s # break; 2237s # case G_TYPE_INT64: 2237s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2237s # break; 2237s # case G_TYPE_UINT64: 2237s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2237s # break; 2237s # case G_TYPE_DOUBLE: 2237s # { 2237s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2237s # gdouble da = g_value_get_double (a); 2237s # gdouble db = g_value_get_double (b); 2237s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2237s # } 2237s # break; 2237s # case G_TYPE_STRING: 2237s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2237s # break; 2237s # case G_TYPE_VARIANT: 2237s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2237s # break; 2237s # default: 2237s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2237s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2237s # else 2237s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2237s # break; 2237s # } 2237s # return ret; 2237s # } 2237s # 2237s # static void 2237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING ( 2237s # GClosure *closure, 2237s # GValue *return_value, 2237s # unsigned int n_param_values, 2237s # const GValue *param_values, 2237s # void *invocation_hint G_GNUC_UNUSED, 2237s # void *marshal_data) 2237s # { 2237s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 2237s # (void *data1, 2237s # GDBusMethodInvocation *arg_method_invocation, 2237s # GUnixFDList *arg_fd_list, 2237s # const gchar *arg_greeting, 2237s # void *data2); 2237s # _GDbusCodegenMarshalBoolean_ObjectObjectStringFunc callback; 2237s # GCClosure *cc = (GCClosure*) closure; 2237s # void *data1, *data2; 2237s # gboolean v_return; 2237s # 2237s # g_return_if_fail (return_value != NULL); 2237s # g_return_if_fail (n_param_values == 4); 2237s # 2237s # if (G_CCLOSURE_SWAP_DATA (closure)) 2237s # { 2237s # data1 = closure->data; 2237s # data2 = g_value_peek_pointer (param_values + 0); 2237s # } 2237s # else 2237s # { 2237s # data1 = g_value_peek_pointer (param_values + 0); 2237s # data2 = closure->data; 2237s # } 2237s # 2237s # callback = (_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 2237s # (marshal_data ? marshal_data : cc->callback); 2237s # 2237s # v_return = 2237s # callback (data1, 2237s # g_marshal_value_peek_object (param_values + 1), 2237s # g_marshal_value_peek_object (param_values + 2), 2237s # g_marshal_value_peek_string (param_values + 3), 2237s # data2); 2237s # 2237s # g_value_set_boolean (return_value, v_return); 2237s # } 2237s # 2237s # /* ------------------------------------------------------------------------ 2237s # * Code for interface test.FDPassing 2237s # * ------------------------------------------------------------------------ 2237s # */ 2237s # 2237s # /** 2237s # * SECTION:TestFDPassing 2237s # * @title: TestFDPassing 2237s # * @short_description: Generated C code for the test.FDPassing D-Bus interface 2237s # * 2237s # * This section contains code for working with the test.FDPassing D-Bus interface in C. 2237s # */ 2237s # 2237s # /* ---- Introspection data for test.FDPassing ---- */ 2237s # 2237s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_IN_ARG_greeting = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "greeting", 2237s # (gchar *) "s", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_IN_ARG_pointers[] = 2237s # { 2237s # &_test_fdpassing_method_info_hello_fd_IN_ARG_greeting.parent_struct, 2237s # NULL 2237s # }; 2237s # 2237s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_OUT_ARG_response = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "response", 2237s # (gchar *) "s", 2237s # NULL 2237s # }, 2237s # FALSE 2237s # }; 2237s # 2237s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_OUT_ARG_pointers[] = 2237s # { 2237s # &_test_fdpassing_method_info_hello_fd_OUT_ARG_response.parent_struct, 2237s # NULL 2237s # }; 2237s # 2237s # static const _ExtendedGDBusMethodInfo _test_fdpassing_method_info_hello_fd = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "HelloFD", 2237s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_IN_ARG_pointers, 2237s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_OUT_ARG_pointers, 2237s # NULL 2237s # }, 2237s # "handle-hello-fd", 2237s # TRUE 2237s # }; 2237s # 2237s # static const GDBusMethodInfo * const _test_fdpassing_method_info_pointers[] = 2237s # { 2237s # &_test_fdpassing_method_info_hello_fd.parent_struct, 2237s # NULL 2237s # }; 2237s # 2237s # static const _ExtendedGDBusInterfaceInfo _test_fdpassing_interface_info = 2237s # { 2237s # { 2237s # -1, 2237s # (gchar *) "test.FDPassing", 2237s # (GDBusMethodInfo **) &_test_fdpassing_method_info_pointers, 2237s # NULL, 2237s # NULL, 2237s # NULL 2237s # }, 2237s # "test-fdpassing", 2237s # }; 2237s # 2237s # 2237s # /** 2237s # * test_fdpassing_interface_info: 2237s # * 2237s # * Gets a machine-readable description of the test.FDPassing D-Bus interface. 2237s # * 2237s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2237s # */ 2237s # GDBusInterfaceInfo * 2237s # test_fdpassing_interface_info (void) 2237s # { 2237s # return (GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct; 2237s # } 2237s # 2237s # /** 2237s # * test_fdpassing_override_properties: 2237s # * @klass: The class structure for a #GObject derived class. 2237s # * @property_id_begin: The property id to assign to the first overridden property. 2237s # * 2237s # * Overrides all #GObject properties in the #TestFDPassing interface for a concrete class. 2237s # * The properties are overridden in the order they are defined. 2237s # * 2237s # * Returns: The last property id. 2237s # */ 2237s # guint 2237s # test_fdpassing_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2237s # { 2237s # return property_id_begin - 1; 2237s # } 2237s # 2237s # 2237s # inline static void 2237s # test_fdpassing_method_marshal_hello_fd ( 2237s # GClosure *closure, 2237s # GValue *return_value, 2237s # unsigned int n_param_values, 2237s # const GValue *param_values, 2237s # void *invocation_hint, 2237s # void *marshal_data) 2237s # { 2237s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING (closure, 2237s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2237s # } 2237s # 2237s # 2237s # /** 2237s # * TestFDPassing: 2237s # * 2237s # * Abstract interface type for the D-Bus interface test.FDPassing. 2237s # */ 2237s # 2237s # /** 2237s # * TestFDPassingIface: 2237s # * @parent_iface: The parent interface. 2237s # * @handle_hello_fd: Handler for the #TestFDPassing::handle-hello-fd signal. 2237s # * 2237s # * Virtual table for the D-Bus interface test.FDPassing. 2237s # */ 2237s # 2237s # typedef TestFDPassingIface TestFDPassingInterface; 2237s # G_DEFINE_INTERFACE (TestFDPassing, test_fdpassing, G_TYPE_OBJECT) 2237s # 2237s # static void 2237s # test_fdpassing_default_init (TestFDPassingIface *iface) 2237s # { 2237s # /* GObject signals for incoming D-Bus method calls: */ 2237s # /** 2237s # * TestFDPassing::handle-hello-fd: 2237s # * @object: A #TestFDPassing. 2237s # * @invocation: A #GDBusMethodInvocation. 2237s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 2237s # * @arg_greeting: Argument passed by remote caller. 2237s # * 2237s # * Signal emitted when a remote caller is invoking the HelloFD() D-Bus method. 2237s # * 2237s # * 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. 2237s # * 2237s # * 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. 2237s # */ 2237s # g_signal_new ("handle-hello-fd", 2237s # G_TYPE_FROM_INTERFACE (iface), 2237s # G_SIGNAL_RUN_LAST, 2237s # G_STRUCT_OFFSET (TestFDPassingIface, handle_hello_fd), 2237s # g_signal_accumulator_true_handled, 2237s # NULL, 2237s # test_fdpassing_method_marshal_hello_fd, 2237s # G_TYPE_BOOLEAN, 2237s # 3, 2237s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_STRING); 2237s # 2237s # } 2237s # 2237s # /** 2237s # * test_fdpassing_call_hello_fd: 2237s # * @proxy: A #TestFDPassingProxy. 2237s # * @arg_greeting: Argument to pass with the method invocation. 2237s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2237s # * @user_data: User data to pass to @callback. 2237s # * 2237s # * Asynchronously invokes the HelloFD() D-Bus method on @proxy. 2237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2237s # * You can then call test_fdpassing_call_hello_fd_finish() to get the result of the operation. 2237s # * 2237s # * See test_fdpassing_call_hello_fd_sync() for the synchronous, blocking version of this method. 2237s # */ 2237s # void 2237s # test_fdpassing_call_hello_fd ( 2237s # TestFDPassing *proxy, 2237s # const gchar *arg_greeting, 2237s # GUnixFDList *fd_list, 2237s # GCancellable *cancellable, 2237s # GAsyncReadyCallback callback, 2237s # gpointer user_data) 2237s # { 2237s # g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy), 2237s # "HelloFD", 2237s # g_variant_new ("(s)", 2237s # arg_greeting), 2237s # G_DBUS_CALL_FLAGS_NONE, 2237s # -1, 2237s # fd_list, 2237s # cancellable, 2237s # callback, 2237s # user_data); 2237s # } 2237s # 2237s # /** 2237s # * test_fdpassing_call_hello_fd_finish: 2237s # * @proxy: A #TestFDPassingProxy. 2237s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL to ignore. 2237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_call_hello_fd(). 2237s # * @error: Return location for error or %NULL. 2237s # * 2237s # * Finishes an operation started with test_fdpassing_call_hello_fd(). 2237s # * 2237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2237s # */ 2237s # gboolean 2237s # test_fdpassing_call_hello_fd_finish ( 2237s # TestFDPassing *proxy, 2237s # gchar **out_response, 2237s # GUnixFDList **out_fd_list, 2237s # GAsyncResult *res, 2237s # GError **error) 2237s # { 2237s # GVariant *_ret; 2237s # _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error); 2237s # if (_ret == NULL) 2237s # goto _out; 2237s # g_variant_get (_ret, 2237s # "(s)", 2237s # out_response); 2237s # g_variant_unref (_ret); 2237s # _out: 2237s # return _ret != NULL; 2237s # } 2237s # 2237s # /** 2237s # * test_fdpassing_call_hello_fd_sync: 2237s # * @proxy: A #TestFDPassingProxy. 2237s # * @arg_greeting: Argument to pass with the method invocation. 2237s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 2237s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 2237s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @error: Return location for error or %NULL. 2237s # * 2237s # * Synchronously invokes the HelloFD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2237s # * 2237s # * See test_fdpassing_call_hello_fd() for the asynchronous version of this method. 2237s # * 2237s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2237s # */ 2237s # gboolean 2237s # test_fdpassing_call_hello_fd_sync ( 2237s # TestFDPassing *proxy, 2237s # const gchar *arg_greeting, 2237s # GUnixFDList *fd_list, 2237s # gchar **out_response, 2237s # GUnixFDList **out_fd_list, 2237s # GCancellable *cancellable, 2237s # GError **error) 2237s # { 2237s # GVariant *_ret; 2237s # _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy), 2237s # "HelloFD", 2237s # g_variant_new ("(s)", 2237s # arg_greeting), 2237s # G_DBUS_CALL_FLAGS_NONE, 2237s # -1, 2237s # fd_list, 2237s # out_fd_list, 2237s # cancellable, 2237s # error); 2237s # if (_ret == NULL) 2237s # goto _out; 2237s # g_variant_get (_ret, 2237s # "(s)", 2237s # out_response); 2237s # g_variant_unref (_ret); 2237s # _out: 2237s # return _ret != NULL; 2237s # } 2237s # 2237s # /** 2237s # * test_fdpassing_complete_hello_fd: 2237s # * @object: A #TestFDPassing. 2237s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2237s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 2237s # * @response: Parameter to return. 2237s # * 2237s # * 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. 2237s # * 2237s # * This method will free @invocation, you cannot use it afterwards. 2237s # */ 2237s # void 2237s # test_fdpassing_complete_hello_fd ( 2237s # TestFDPassing *object G_GNUC_UNUSED, 2237s # GDBusMethodInvocation *invocation, 2237s # GUnixFDList *fd_list, 2237s # const gchar *response) 2237s # { 2237s # g_dbus_method_invocation_return_value_with_unix_fd_list (invocation, 2237s # g_variant_new ("(s)", 2237s # response), 2237s # fd_list); 2237s # } 2237s # 2237s # /* ------------------------------------------------------------------------ */ 2237s # 2237s # /** 2237s # * TestFDPassingProxy: 2237s # * 2237s # * The #TestFDPassingProxy structure contains only private data and should only be accessed using the provided API. 2237s # */ 2237s # 2237s # /** 2237s # * TestFDPassingProxyClass: 2237s # * @parent_class: The parent class. 2237s # * 2237s # * Class structure for #TestFDPassingProxy. 2237s # */ 2237s # 2237s # struct _TestFDPassingProxyPrivate 2237s # { 2237s # GData *qdata; 2237s # }; 2237s # 2237s # static void test_fdpassing_proxy_iface_init (TestFDPassingIface *iface); 2237s # 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2237s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 2237s # G_ADD_PRIVATE (TestFDPassingProxy) 2237s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 2237s # 2237s # #else 2237s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 2237s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 2237s # 2237s # #endif 2237s # static void 2237s # test_fdpassing_proxy_finalize (GObject *object) 2237s # { 2237s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (object); 2237s # g_datalist_clear (&proxy->priv->qdata); 2237s # G_OBJECT_CLASS (test_fdpassing_proxy_parent_class)->finalize (object); 2237s # } 2237s # 2237s # static void 2237s # test_fdpassing_proxy_get_property (GObject *object G_GNUC_UNUSED, 2237s # guint prop_id G_GNUC_UNUSED, 2237s # GValue *value G_GNUC_UNUSED, 2237s # GParamSpec *pspec G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # static void 2237s # test_fdpassing_proxy_set_property (GObject *object G_GNUC_UNUSED, 2237s # guint prop_id G_GNUC_UNUSED, 2237s # const GValue *value G_GNUC_UNUSED, 2237s # GParamSpec *pspec G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # static void 2237s # test_fdpassing_proxy_g_signal (GDBusProxy *proxy, 2237s # const gchar *sender_name G_GNUC_UNUSED, 2237s # const gchar *signal_name, 2237s # GVariant *parameters) 2237s # { 2237s # _ExtendedGDBusSignalInfo *info; 2237s # GVariantIter iter; 2237s # GVariant *child; 2237s # GValue *paramv; 2237s # gsize num_params; 2237s # gsize n; 2237s # guint signal_id; 2237s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, signal_name); 2237s # if (info == NULL) 2237s # return; 2237s # num_params = g_variant_n_children (parameters); 2237s # paramv = g_new0 (GValue, num_params + 1); 2237s # g_value_init (¶mv[0], TYPE_TEST_FDPASSING); 2237s # g_value_set_object (¶mv[0], proxy); 2237s # g_variant_iter_init (&iter, parameters); 2237s # n = 1; 2237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2237s # { 2237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2237s # if (arg_info->use_gvariant) 2237s # { 2237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2237s # g_value_set_variant (¶mv[n], child); 2237s # n++; 2237s # } 2237s # else 2237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2237s # g_variant_unref (child); 2237s # } 2237s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 2237s # g_signal_emitv (paramv, signal_id, 0, NULL); 2237s # for (n = 0; n < num_params + 1; n++) 2237s # g_value_unset (¶mv[n]); 2237s # g_free (paramv); 2237s # } 2237s # 2237s # static void 2237s # test_fdpassing_proxy_g_properties_changed (GDBusProxy *_proxy, 2237s # GVariant *changed_properties, 2237s # const gchar *const *invalidated_properties) 2237s # { 2237s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (_proxy); 2237s # guint n; 2237s # const gchar *key; 2237s # GVariantIter *iter; 2237s # _ExtendedGDBusPropertyInfo *info; 2237s # g_variant_get (changed_properties, "a{sv}", &iter); 2237s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2237s # { 2237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, key); 2237s # g_datalist_remove_data (&proxy->priv->qdata, key); 2237s # if (info != NULL) 2237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2237s # } 2237s # g_variant_iter_free (iter); 2237s # for (n = 0; invalidated_properties[n] != NULL; n++) 2237s # { 2237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, invalidated_properties[n]); 2237s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2237s # if (info != NULL) 2237s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2237s # } 2237s # } 2237s # 2237s # static void 2237s # test_fdpassing_proxy_init (TestFDPassingProxy *proxy) 2237s # { 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2237s # proxy->priv = test_fdpassing_proxy_get_instance_private (proxy); 2237s # #else 2237s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_TEST_FDPASSING_PROXY, TestFDPassingProxyPrivate); 2237s # #endif 2237s # 2237s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), test_fdpassing_interface_info ()); 2237s # } 2237s # 2237s # static void 2237s # test_fdpassing_proxy_class_init (TestFDPassingProxyClass *klass) 2237s # { 2237s # GObjectClass *gobject_class; 2237s # GDBusProxyClass *proxy_class; 2237s # 2237s # gobject_class = G_OBJECT_CLASS (klass); 2237s # gobject_class->finalize = test_fdpassing_proxy_finalize; 2237s # gobject_class->get_property = test_fdpassing_proxy_get_property; 2237s # gobject_class->set_property = test_fdpassing_proxy_set_property; 2237s # 2237s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2237s # proxy_class->g_signal = test_fdpassing_proxy_g_signal; 2237s # proxy_class->g_properties_changed = test_fdpassing_proxy_g_properties_changed; 2237s # 2237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2237s # g_type_class_add_private (klass, sizeof (TestFDPassingProxyPrivate)); 2237s # #endif 2237s # } 2237s # 2237s # static void 2237s # test_fdpassing_proxy_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # /** 2237s # * test_fdpassing_proxy_new: 2237s # * @connection: A #GDBusConnection. 2237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2237s # * @object_path: An object path. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2237s # * @user_data: User data to pass to @callback. 2237s # * 2237s # * Asynchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new() for more details. 2237s # * 2237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2237s # * You can then call test_fdpassing_proxy_new_finish() to get the result of the operation. 2237s # * 2237s # * See test_fdpassing_proxy_new_sync() for the synchronous, blocking version of this constructor. 2237s # */ 2237s # void 2237s # test_fdpassing_proxy_new ( 2237s # GDBusConnection *connection, 2237s # GDBusProxyFlags flags, 2237s # const gchar *name, 2237s # const gchar *object_path, 2237s # GCancellable *cancellable, 2237s # GAsyncReadyCallback callback, 2237s # gpointer user_data) 2237s # { 2237s # 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); 2237s # } 2237s # 2237s # /** 2237s # * test_fdpassing_proxy_new_finish: 2237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new(). 2237s # * @error: Return location for error or %NULL 2237s # * 2237s # * Finishes an operation started with test_fdpassing_proxy_new(). 2237s # * 2237s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 2237s # */ 2237s # TestFDPassing * 2237s # test_fdpassing_proxy_new_finish ( 2237s # GAsyncResult *res, 2237s # GError **error) 2237s # { 2237s # GObject *ret; 2237s # GObject *source_object; 2237s # source_object = g_async_result_get_source_object (res); 2237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2237s # g_object_unref (source_object); 2237s # if (ret != NULL) 2237s # return TEST_FDPASSING (ret); 2237s # else 2237s # return NULL; 2237s # } 2237s # 2237s # /** 2237s # * test_fdpassing_proxy_new_sync: 2237s # * @connection: A #GDBusConnection. 2237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2237s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2237s # * @object_path: An object path. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @error: Return location for error or %NULL 2237s # * 2237s # * Synchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new_sync() for more details. 2237s # * 2237s # * The calling thread is blocked until a reply is received. 2237s # * 2237s # * See test_fdpassing_proxy_new() for the asynchronous version of this constructor. 2237s # * 2237s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 2237s # */ 2237s # TestFDPassing * 2237s # test_fdpassing_proxy_new_sync ( 2237s # GDBusConnection *connection, 2237s # GDBusProxyFlags flags, 2237s # const gchar *name, 2237s # const gchar *object_path, 2237s # GCancellable *cancellable, 2237s # GError **error) 2237s # { 2237s # GInitable *ret; 2237s # 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); 2237s # if (ret != NULL) 2237s # return TEST_FDPASSING (ret); 2237s # else 2237s # return NULL; 2237s # } 2237s # 2237s # 2237s # /** 2237s # * test_fdpassing_proxy_new_for_bus: 2237s # * @bus_type: A #GBusType. 2237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2237s # * @name: A bus name (well-known or unique). 2237s # * @object_path: An object path. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2237s # * @user_data: User data to pass to @callback. 2237s # * 2237s # * Like test_fdpassing_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2237s # * 2237s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2237s # * You can then call test_fdpassing_proxy_new_for_bus_finish() to get the result of the operation. 2237s # * 2237s # * See test_fdpassing_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2237s # */ 2237s # void 2237s # test_fdpassing_proxy_new_for_bus ( 2237s # GBusType bus_type, 2237s # GDBusProxyFlags flags, 2237s # const gchar *name, 2237s # const gchar *object_path, 2237s # GCancellable *cancellable, 2237s # GAsyncReadyCallback callback, 2237s # gpointer user_data) 2237s # { 2237s # 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); 2237s # } 2237s # 2237s # /** 2237s # * test_fdpassing_proxy_new_for_bus_finish: 2237s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new_for_bus(). 2237s # * @error: Return location for error or %NULL 2237s # * 2237s # * Finishes an operation started with test_fdpassing_proxy_new_for_bus(). 2237s # * 2237s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 2237s # */ 2237s # TestFDPassing * 2237s # test_fdpassing_proxy_new_for_bus_finish ( 2237s # GAsyncResult *res, 2237s # GError **error) 2237s # { 2237s # GObject *ret; 2237s # GObject *source_object; 2237s # source_object = g_async_result_get_source_object (res); 2237s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2237s # g_object_unref (source_object); 2237s # if (ret != NULL) 2237s # return TEST_FDPASSING (ret); 2237s # else 2237s # return NULL; 2237s # } 2237s # 2237s # /** 2237s # * test_fdpassing_proxy_new_for_bus_sync: 2237s # * @bus_type: A #GBusType. 2237s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2237s # * @name: A bus name (well-known or unique). 2237s # * @object_path: An object path. 2237s # * @cancellable: (nullable): A #GCancellable or %NULL. 2237s # * @error: Return location for error or %NULL 2237s # * 2237s # * Like test_fdpassing_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2237s # * 2237s # * The calling thread is blocked until a reply is received. 2237s # * 2237s # * See test_fdpassing_proxy_new_for_bus() for the asynchronous version of this constructor. 2237s # * 2237s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 2237s # */ 2237s # TestFDPassing * 2237s # test_fdpassing_proxy_new_for_bus_sync ( 2237s # GBusType bus_type, 2237s # GDBusProxyFlags flags, 2237s # const gchar *name, 2237s # const gchar *object_path, 2237s # GCancellable *cancellable, 2237s # GError **error) 2237s # { 2237s # GInitable *ret; 2237s # 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); 2237s # if (ret != NULL) 2237s # return TEST_FDPASSING (ret); 2237s # else 2237s # return NULL; 2237s # } 2237s # 2237s # 2237s # /* ------------------------------------------------------------------------ */ 2237s # 2237s # /** 2237s # * TestFDPassingSkeleton: 2237s # * 2237s # * The #TestFDPassingSkeleton structure contains only private data and should only be accessed using the provided API. 2237s # */ 2237s # 2237s # /** 2237s # * TestFDPassingSkeletonClass: 2237s # * @parent_class: The parent class. 2237s # * 2237s # * Class structure for #TestFDPassingSkeleton. 2237s # */ 2237s # 2237s # struct _TestFDPassingSkeletonPrivate 2237s # { 2237s # GValue *properties; 2237s # GList *changed_properties; 2237s # GSource *changed_properties_idle_source; 2237s # GMainContext *context; 2237s # GMutex lock; 2237s # }; 2237s # 2237s # static void 2237s # _test_fdpassing_skeleton_handle_method_call ( 2237s # GDBusConnection *connection G_GNUC_UNUSED, 2237s # const gchar *sender G_GNUC_UNUSED, 2237s # const gchar *object_path G_GNUC_UNUSED, 2237s # const gchar *interface_name, 2237s # const gchar *method_name, 2237s # GVariant *parameters, 2237s # GDBusMethodInvocation *invocation, 2237s # gpointer user_data) 2237s # { 2237s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 2237s # _ExtendedGDBusMethodInfo *info; 2237s # GVariantIter iter; 2237s # GVariant *child; 2237s # GValue *paramv; 2237s # gsize num_params; 2237s # guint num_extra; 2237s # gsize n; 2237s # guint signal_id; 2237s # GValue return_value = G_VALUE_INIT; 2237s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2237s # g_assert (info != NULL); 2237s # num_params = g_variant_n_children (parameters); 2237s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2237s # n = 0; 2237s # g_value_init (¶mv[n], TYPE_TEST_FDPASSING); 2237s # g_value_set_object (¶mv[n++], skeleton); 2237s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2237s # g_value_set_object (¶mv[n++], invocation); 2237s # if (info->pass_fdlist) 2237s # { 2237s # #ifdef G_OS_UNIX 2237s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2237s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2237s # #else 2237s # g_assert_not_reached (); 2237s # #endif 2237s # } 2237s # g_variant_iter_init (&iter, parameters); 2237s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2237s # { 2237s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2237s # if (arg_info->use_gvariant) 2237s # { 2237s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2237s # g_value_set_variant (¶mv[n], child); 2237s # n++; 2237s # } 2237s # else 2237s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2237s # g_variant_unref (child); 2237s # } 2237s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 2237s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2237s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2237s # if (!g_value_get_boolean (&return_value)) 2237s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2237s # g_value_unset (&return_value); 2237s # for (n = 0; n < num_params + num_extra; n++) 2237s # g_value_unset (¶mv[n]); 2237s # g_free (paramv); 2237s # } 2237s # 2237s # static GVariant * 2237s # _test_fdpassing_skeleton_handle_get_property ( 2237s # GDBusConnection *connection G_GNUC_UNUSED, 2237s # const gchar *sender G_GNUC_UNUSED, 2237s # const gchar *object_path G_GNUC_UNUSED, 2237s # const gchar *interface_name G_GNUC_UNUSED, 2237s # const gchar *property_name, 2237s # GError **error, 2237s # gpointer user_data) 2237s # { 2237s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 2237s # GValue value = G_VALUE_INIT; 2237s # GParamSpec *pspec; 2237s # _ExtendedGDBusPropertyInfo *info; 2237s # GVariant *ret; 2237s # ret = NULL; 2237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 2237s # g_assert (info != NULL); 2237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2237s # if (pspec == NULL) 2237s # { 2237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2237s # } 2237s # else 2237s # { 2237s # g_value_init (&value, pspec->value_type); 2237s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2237s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2237s # g_value_unset (&value); 2237s # } 2237s # return ret; 2237s # } 2237s # 2237s # static gboolean 2237s # _test_fdpassing_skeleton_handle_set_property ( 2237s # GDBusConnection *connection G_GNUC_UNUSED, 2237s # const gchar *sender G_GNUC_UNUSED, 2237s # const gchar *object_path G_GNUC_UNUSED, 2237s # const gchar *interface_name G_GNUC_UNUSED, 2237s # const gchar *property_name, 2237s # GVariant *variant, 2237s # GError **error, 2237s # gpointer user_data) 2237s # { 2237s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 2237s # GValue value = G_VALUE_INIT; 2237s # GParamSpec *pspec; 2237s # _ExtendedGDBusPropertyInfo *info; 2237s # gboolean ret; 2237s # ret = FALSE; 2237s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 2237s # g_assert (info != NULL); 2237s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2237s # if (pspec == NULL) 2237s # { 2237s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2237s # } 2237s # else 2237s # { 2237s # if (info->use_gvariant) 2237s # g_value_set_variant (&value, variant); 2237s # else 2237s # g_dbus_gvariant_to_gvalue (variant, &value); 2237s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2237s # g_value_unset (&value); 2237s # ret = TRUE; 2237s # } 2237s # return ret; 2237s # } 2237s # 2237s # static const GDBusInterfaceVTable _test_fdpassing_skeleton_vtable = 2237s # { 2237s # _test_fdpassing_skeleton_handle_method_call, 2237s # _test_fdpassing_skeleton_handle_get_property, 2237s # _test_fdpassing_skeleton_handle_set_property, 2237s # {NULL} 2237s # }; 2237s # 2237s # static GDBusInterfaceInfo * 2237s # test_fdpassing_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2237s # { 2237s # return test_fdpassing_interface_info (); 2237s # } 2237s # 2237s # static GDBusInterfaceVTable * 2237s # test_fdpassing_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2237s # { 2237s # return (GDBusInterfaceVTable *) &_test_fdpassing_skeleton_vtable; 2237s # } 2237s # 2237s # static GVariant * 2237s # test_fdpassing_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2237s # { 2237s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (_skeleton); 2237s # 2237s # GVariantBuilder builder; 2237s # guint n; 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2237s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2237s # #else 2237s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2237s # #endif 2237s # if (_test_fdpassing_interface_info.parent_struct.properties == NULL) 2237s # goto out; 2237s # for (n = 0; _test_fdpassing_interface_info.parent_struct.properties[n] != NULL; n++) 2237s # { 2237s # GDBusPropertyInfo *info = _test_fdpassing_interface_info.parent_struct.properties[n]; 2237s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2237s # { 2237s # GVariant *value; 2237s # 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); 2237s # if (value != NULL) 2237s # { 2237s # g_variant_take_ref (value); 2237s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2237s # g_variant_unref (value); 2237s # } 2237s # } 2237s # } 2237s # out: 2237s # return g_variant_builder_end (&builder); 2237s # } 2237s # 2237s # static void 2237s # test_fdpassing_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # static void test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface); 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2237s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2237s # G_ADD_PRIVATE (TestFDPassingSkeleton) 2237s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 2237s # 2237s # #else 2237s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2237s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 2237s # 2237s # #endif 2237s # static void 2237s # test_fdpassing_skeleton_finalize (GObject *object) 2237s # { 2237s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (object); 2237s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2237s # if (skeleton->priv->changed_properties_idle_source != NULL) 2237s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2237s # g_main_context_unref (skeleton->priv->context); 2237s # g_mutex_clear (&skeleton->priv->lock); 2237s # G_OBJECT_CLASS (test_fdpassing_skeleton_parent_class)->finalize (object); 2237s # } 2237s # 2237s # static void 2237s # test_fdpassing_skeleton_init (TestFDPassingSkeleton *skeleton) 2237s # { 2237s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2237s # skeleton->priv = test_fdpassing_skeleton_get_instance_private (skeleton); 2237s # #else 2237s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_TEST_FDPASSING_SKELETON, TestFDPassingSkeletonPrivate); 2237s # #endif 2237s # 2237s # g_mutex_init (&skeleton->priv->lock); 2237s # skeleton->priv->context = g_main_context_ref_thread_default (); 2237s # } 2237s # 2237s # static void 2237s # test_fdpassing_skeleton_class_init (TestFDPassingSkeletonClass *klass) 2237s # { 2237s # GObjectClass *gobject_class; 2237s # GDBusInterfaceSkeletonClass *skeleton_class; 2237s # 2237s # gobject_class = G_OBJECT_CLASS (klass); 2237s # gobject_class->finalize = test_fdpassing_skeleton_finalize; 2237s # 2237s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2237s # skeleton_class->get_info = test_fdpassing_skeleton_dbus_interface_get_info; 2237s # skeleton_class->get_properties = test_fdpassing_skeleton_dbus_interface_get_properties; 2237s # skeleton_class->flush = test_fdpassing_skeleton_dbus_interface_flush; 2237s # skeleton_class->get_vtable = test_fdpassing_skeleton_dbus_interface_get_vtable; 2237s # 2237s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2237s # g_type_class_add_private (klass, sizeof (TestFDPassingSkeletonPrivate)); 2237s # #endif 2237s # } 2237s # 2237s # static void 2237s # test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 2237s # { 2237s # } 2237s # 2237s # /** 2237s # * test_fdpassing_skeleton_new: 2237s # * 2237s # * Creates a skeleton object for the D-Bus interface test.FDPassing. 2237s # * 2237s # * Returns: (transfer full) (type TestFDPassingSkeleton): The skeleton object. 2237s # */ 2237s # TestFDPassing * 2237s # test_fdpassing_skeleton_new (void) 2237s # { 2237s # return TEST_FDPASSING (g_object_new (TYPE_TEST_FDPASSING_SKELETON, NULL)); 2237s # } 2237s # Error: 2237s ok 15 __main__.TestCodegen.test_generate_rst 2237s # gdbus-codegen: /usr/bin/gdbus-codegen 2237s # tmpdir: /tmp/tmpewprm3ei 2237s # /tmp/tmpewprm3ei/tmpkegca7ta.xml: 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # 2237s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpewprm3ei/tmpkegca7ta.xml', '--generate-rst', 'test'] 2237s # Return code: 0 2237s # Output: 2237s # 2237s # Error: 2238s ok 16 __main__.TestCodegen.test_generate_rst_method 2238s # gdbus-codegen: /usr/bin/gdbus-codegen 2238s # tmpdir: /tmp/tmplg0id1yw 2238s # /tmp/tmplg0id1yw/tmp3q9wnaac.xml: 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplg0id1yw/tmp3q9wnaac.xml', '--generate-rst', 'test'] 2238s # Return code: 0 2238s # Output: 2238s # 2238s # Error: 2238s ok 17 __main__.TestCodegen.test_generate_rst_property 2238s # gdbus-codegen: /usr/bin/gdbus-codegen 2238s # tmpdir: /tmp/tmpvwp5j2t7 2238s # /tmp/tmpvwp5j2t7/tmpqg474aud.xml: 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvwp5j2t7/tmpqg474aud.xml', '--generate-rst', 'test'] 2238s # Return code: 0 2238s # Output: 2238s # 2238s # Error: 2238s ok 18 __main__.TestCodegen.test_generate_rst_signal 2238s # gdbus-codegen: /usr/bin/gdbus-codegen 2238s # tmpdir: /tmp/tmpa5z5bn99 2238s # /tmp/tmpa5z5bn99/tmpnwv2_a01.xml: 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpa5z5bn99/tmpnwv2_a01.xml', '--generate-rst', 'test'] 2238s # Return code: 0 2238s # Output: 2238s # 2238s # Error: 2238s # Executing: glib/codegen.py.test 2238s ok 19 __main__.TestCodegen.test_generate_signal_id_multiple_signal_args_types 2238s # gdbus-codegen: /usr/bin/gdbus-codegen 2238s # tmpdir: /tmp/tmpe845wd7o 2238s # /tmp/tmpe845wd7o/tmpox0r7g2b.xml: 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # 2238s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpe845wd7o/tmpox0r7g2b.xml', '--output', '-', '--body'] 2238s # Return code: 0 2238s # Output: 2238s # /* 2238s # * This file is generated by gdbus-codegen, do not modify it. 2238s # * 2238s # * The license of this code is the same as for the D-Bus interface description 2238s # * it was derived from. Note that it links to GLib, so must comply with the 2238s # * LGPL linking clauses. 2238s # */ 2238s # 2238s # #ifdef HAVE_CONFIG_H 2238s # # include "config.h" 2238s # #endif 2238s # 2238s # #include 2238s # #ifdef G_OS_UNIX 2238s # # include 2238s # #endif 2238s # 2238s # #ifdef G_ENABLE_DEBUG 2238s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2238s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2238s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2238s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2238s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2238s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2238s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2238s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2238s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2238s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2238s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2238s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2238s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2238s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2238s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2238s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2238s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2238s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2238s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2238s # #else /* !G_ENABLE_DEBUG */ 2238s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2238s # * Do not access GValues directly in your code. Instead, use the 2238s # * g_value_get_*() functions 2238s # */ 2238s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2238s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2238s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2238s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2238s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2238s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2238s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2238s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2238s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2238s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2238s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2238s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2238s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2238s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2238s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2238s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2238s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2238s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2238s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2238s # #endif /* !G_ENABLE_DEBUG */ 2238s # 2238s # typedef struct 2238s # { 2238s # GDBusArgInfo parent_struct; 2238s # gboolean use_gvariant; 2238s # } _ExtendedGDBusArgInfo; 2238s # 2238s # typedef struct 2238s # { 2238s # GDBusMethodInfo parent_struct; 2238s # const gchar *signal_name; 2238s # gboolean pass_fdlist; 2238s # } _ExtendedGDBusMethodInfo; 2238s # 2238s # typedef struct 2238s # { 2238s # GDBusSignalInfo parent_struct; 2238s # const gchar *signal_name; 2238s # } _ExtendedGDBusSignalInfo; 2238s # 2238s # typedef struct 2238s # { 2238s # GDBusPropertyInfo parent_struct; 2238s # const gchar *hyphen_name; 2238s # guint use_gvariant : 1; 2238s # guint emits_changed_signal : 1; 2238s # } _ExtendedGDBusPropertyInfo; 2238s # 2238s # typedef struct 2238s # { 2238s # GDBusInterfaceInfo parent_struct; 2238s # const gchar *hyphen_name; 2238s # } _ExtendedGDBusInterfaceInfo; 2238s # 2238s # typedef struct 2238s # { 2238s # const _ExtendedGDBusPropertyInfo *info; 2238s # guint prop_id; 2238s # GValue orig_value; /* the value before the change */ 2238s # } ChangedProperty; 2238s # 2238s # static void 2238s # _changed_property_free (ChangedProperty *data) 2238s # { 2238s # g_value_unset (&data->orig_value); 2238s # g_free (data); 2238s # } 2238s # 2238s # static gboolean 2238s # _g_strv_equal0 (gchar **a, gchar **b) 2238s # { 2238s # gboolean ret = FALSE; 2238s # guint n; 2238s # if (a == NULL && b == NULL) 2238s # { 2238s # ret = TRUE; 2238s # goto out; 2238s # } 2238s # if (a == NULL || b == NULL) 2238s # goto out; 2238s # if (g_strv_length (a) != g_strv_length (b)) 2238s # goto out; 2238s # for (n = 0; a[n] != NULL; n++) 2238s # if (g_strcmp0 (a[n], b[n]) != 0) 2238s # goto out; 2238s # ret = TRUE; 2238s # out: 2238s # return ret; 2238s # } 2238s # 2238s # static gboolean 2238s # _g_variant_equal0 (GVariant *a, GVariant *b) 2238s # { 2238s # gboolean ret = FALSE; 2238s # if (a == NULL && b == NULL) 2238s # { 2238s # ret = TRUE; 2238s # goto out; 2238s # } 2238s # if (a == NULL || b == NULL) 2238s # goto out; 2238s # ret = g_variant_equal (a, b); 2238s # out: 2238s # return ret; 2238s # } 2238s # 2238s # G_GNUC_UNUSED static gboolean 2238s # _g_value_equal (const GValue *a, const GValue *b) 2238s # { 2238s # gboolean ret = FALSE; 2238s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2238s # switch (G_VALUE_TYPE (a)) 2238s # { 2238s # case G_TYPE_BOOLEAN: 2238s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2238s # break; 2238s # case G_TYPE_UCHAR: 2238s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2238s # break; 2238s # case G_TYPE_INT: 2238s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2238s # break; 2238s # case G_TYPE_UINT: 2238s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2238s # break; 2238s # case G_TYPE_INT64: 2238s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2238s # break; 2238s # case G_TYPE_UINT64: 2238s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2238s # break; 2238s # case G_TYPE_DOUBLE: 2238s # { 2238s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2238s # gdouble da = g_value_get_double (a); 2238s # gdouble db = g_value_get_double (b); 2238s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2238s # } 2238s # break; 2238s # case G_TYPE_STRING: 2238s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2238s # break; 2238s # case G_TYPE_VARIANT: 2238s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2238s # break; 2238s # default: 2238s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2238s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2238s # else 2238s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2238s # break; 2238s # } 2238s # return ret; 2238s # } 2238s # 2238s # static void 2238s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 2238s # GClosure *closure, 2238s # GValue *return_value G_GNUC_UNUSED, 2238s # unsigned int n_param_values, 2238s # const GValue *param_values, 2238s # void *invocation_hint G_GNUC_UNUSED, 2238s # void *marshal_data) 2238s # { 2238s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 2238s # (void *data1, 2238s # gboolean arg_an_b, 2238s # guchar arg_an_y, 2238s # gint16 arg_an_n, 2238s # guint16 arg_an_q, 2238s # gint arg_an_i, 2238s # guint arg_an_u, 2238s # gint64 arg_an_x, 2238s # guint64 arg_an_t, 2238s # gdouble arg_an_d, 2238s # const gchar *arg_an_s, 2238s # const gchar *arg_an_o, 2238s # const gchar *arg_an_g, 2238s # GVariant *arg_an_h, 2238s # const gchar *arg_an_ay, 2238s # const gchar *const *arg_an_as, 2238s # const gchar *const *arg_an_ao, 2238s # const gchar *const *arg_an_aay, 2238s # GVariant *arg_an_asv, 2238s # void *data2); 2238s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 2238s # GCClosure *cc = (GCClosure*) closure; 2238s # void *data1, *data2; 2238s # 2238s # g_return_if_fail (n_param_values == 19); 2238s # 2238s # if (G_CCLOSURE_SWAP_DATA (closure)) 2238s # { 2238s # data1 = closure->data; 2238s # data2 = g_value_peek_pointer (param_values + 0); 2238s # } 2238s # else 2238s # { 2238s # data1 = g_value_peek_pointer (param_values + 0); 2238s # data2 = closure->data; 2238s # } 2238s # 2238s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 2238s # (marshal_data ? marshal_data : cc->callback); 2238s # 2238s # callback (data1, 2238s # g_marshal_value_peek_boolean (param_values + 1), 2238s # g_marshal_value_peek_uchar (param_values + 2), 2238s # g_marshal_value_peek_int (param_values + 3), 2238s # g_marshal_value_peek_uint (param_values + 4), 2238s # g_marshal_value_peek_int (param_values + 5), 2238s # g_marshal_value_peek_uint (param_values + 6), 2238s # g_marshal_value_peek_int64 (param_values + 7), 2238s # g_marshal_value_peek_uint64 (param_values + 8), 2238s # g_marshal_value_peek_double (param_values + 9), 2238s # g_marshal_value_peek_string (param_values + 10), 2238s # g_marshal_value_peek_string (param_values + 11), 2238s # g_marshal_value_peek_string (param_values + 12), 2238s # g_marshal_value_peek_variant (param_values + 13), 2238s # g_marshal_value_peek_string (param_values + 14), 2238s # g_marshal_value_peek_boxed (param_values + 15), 2238s # g_marshal_value_peek_boxed (param_values + 16), 2238s # g_marshal_value_peek_boxed (param_values + 17), 2238s # g_marshal_value_peek_variant (param_values + 18), 2238s # data2); 2238s # } 2238s # 2238s # /* ------------------------------------------------------------------------ 2238s # * Code for interface org.project.SignalingIface 2238s # * ------------------------------------------------------------------------ 2238s # */ 2238s # 2238s # /** 2238s # * SECTION:OrgProjectSignalingIface 2238s # * @title: OrgProjectSignalingIface 2238s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2238s # * 2238s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2238s # */ 2238s # 2238s # enum 2238s # { 2238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 2238s # }; 2238s # 2238s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 2238s # 2238s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_b", 2238s # (gchar *) "b", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_y", 2238s # (gchar *) "y", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_n", 2238s # (gchar *) "n", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_q", 2238s # (gchar *) "q", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_i", 2238s # (gchar *) "i", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_u", 2238s # (gchar *) "u", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_x", 2238s # (gchar *) "x", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_t", 2238s # (gchar *) "t", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_d", 2238s # (gchar *) "d", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_s", 2238s # (gchar *) "s", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_o", 2238s # (gchar *) "o", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_g", 2238s # (gchar *) "g", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_h", 2238s # (gchar *) "h", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_ay", 2238s # (gchar *) "ay", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_as", 2238s # (gchar *) "as", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_ao", 2238s # (gchar *) "ao", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_aay", 2238s # (gchar *) "aay", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "an_asv", 2238s # (gchar *) "a{sv}", 2238s # NULL 2238s # }, 2238s # FALSE 2238s # }; 2238s # 2238s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 2238s # { 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 2238s # NULL 2238s # }; 2238s # 2238s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "SignalWithManyArgs", 2238s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 2238s # NULL 2238s # }, 2238s # "signal-with-many-args" 2238s # }; 2238s # 2238s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2238s # { 2238s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 2238s # NULL 2238s # }; 2238s # 2238s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2238s # { 2238s # { 2238s # -1, 2238s # (gchar *) "org.project.SignalingIface", 2238s # NULL, 2238s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2238s # NULL, 2238s # NULL 2238s # }, 2238s # "org-project-signaling-iface", 2238s # }; 2238s # 2238s # 2238s # /** 2238s # * org_project_signaling_iface_interface_info: 2238s # * 2238s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2238s # * 2238s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2238s # */ 2238s # GDBusInterfaceInfo * 2238s # org_project_signaling_iface_interface_info (void) 2238s # { 2238s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2238s # } 2238s # 2238s # /** 2238s # * org_project_signaling_iface_override_properties: 2238s # * @klass: The class structure for a #GObject derived class. 2238s # * @property_id_begin: The property id to assign to the first overridden property. 2238s # * 2238s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2238s # * The properties are overridden in the order they are defined. 2238s # * 2238s # * Returns: The last property id. 2238s # */ 2238s # guint 2238s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2238s # { 2238s # return property_id_begin - 1; 2238s # } 2238s # 2238s # 2238s # inline static void 2238s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 2238s # GClosure *closure, 2238s # GValue *return_value, 2238s # unsigned int n_param_values, 2238s # const GValue *param_values, 2238s # void *invocation_hint, 2238s # void *marshal_data) 2238s # { 2238s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 2238s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2238s # } 2238s # 2238s # 2238s # /** 2238s # * OrgProjectSignalingIface: 2238s # * 2238s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2238s # */ 2238s # 2238s # /** 2238s # * OrgProjectSignalingIfaceIface: 2238s # * @parent_iface: The parent interface. 2238s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 2238s # * 2238s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2238s # */ 2238s # 2238s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2238s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2238s # 2238s # static void 2238s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2238s # { 2238s # /* GObject signals for received D-Bus signals: */ 2238s # /** 2238s # * OrgProjectSignalingIface::signal-with-many-args: 2238s # * @object: A #OrgProjectSignalingIface. 2238s # * @arg_an_b: Argument. 2238s # * @arg_an_y: Argument. 2238s # * @arg_an_n: Argument. 2238s # * @arg_an_q: Argument. 2238s # * @arg_an_i: Argument. 2238s # * @arg_an_u: Argument. 2238s # * @arg_an_x: Argument. 2238s # * @arg_an_t: Argument. 2238s # * @arg_an_d: Argument. 2238s # * @arg_an_s: Argument. 2238s # * @arg_an_o: Argument. 2238s # * @arg_an_g: Argument. 2238s # * @arg_an_h: Argument. 2238s # * @arg_an_ay: Argument. 2238s # * @arg_an_as: Argument. 2238s # * @arg_an_ao: Argument. 2238s # * @arg_an_aay: Argument. 2238s # * @arg_an_asv: Argument. 2238s # * 2238s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 2238s # * 2238s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2238s # */ 2238s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 2238s # g_signal_new ("signal-with-many-args", 2238s # G_TYPE_FROM_INTERFACE (iface), 2238s # G_SIGNAL_RUN_LAST, 2238s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 2238s # NULL, 2238s # NULL, 2238s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 2238s # G_TYPE_NONE, 2238s # 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); 2238s # 2238s # } 2238s # 2238s # /** 2238s # * org_project_signaling_iface_emit_signal_with_many_args: 2238s # * @object: A #OrgProjectSignalingIface. 2238s # * @arg_an_b: Argument to pass with the signal. 2238s # * @arg_an_y: Argument to pass with the signal. 2238s # * @arg_an_n: Argument to pass with the signal. 2238s # * @arg_an_q: Argument to pass with the signal. 2238s # * @arg_an_i: Argument to pass with the signal. 2238s # * @arg_an_u: Argument to pass with the signal. 2238s # * @arg_an_x: Argument to pass with the signal. 2238s # * @arg_an_t: Argument to pass with the signal. 2238s # * @arg_an_d: Argument to pass with the signal. 2238s # * @arg_an_s: Argument to pass with the signal. 2238s # * @arg_an_o: Argument to pass with the signal. 2238s # * @arg_an_g: Argument to pass with the signal. 2238s # * @arg_an_h: Argument to pass with the signal. 2238s # * @arg_an_ay: Argument to pass with the signal. 2238s # * @arg_an_as: Argument to pass with the signal. 2238s # * @arg_an_ao: Argument to pass with the signal. 2238s # * @arg_an_aay: Argument to pass with the signal. 2238s # * @arg_an_asv: Argument to pass with the signal. 2238s # * 2238s # * Emits the "SignalWithManyArgs" D-Bus signal. 2238s # */ 2238s # void 2238s # org_project_signaling_iface_emit_signal_with_many_args ( 2238s # OrgProjectSignalingIface *object, 2238s # gboolean arg_an_b, 2238s # guchar arg_an_y, 2238s # gint16 arg_an_n, 2238s # guint16 arg_an_q, 2238s # gint arg_an_i, 2238s # guint arg_an_u, 2238s # gint64 arg_an_x, 2238s # guint64 arg_an_t, 2238s # gdouble arg_an_d, 2238s # const gchar *arg_an_s, 2238s # const gchar *arg_an_o, 2238s # const gchar *arg_an_g, 2238s # GVariant *arg_an_h, 2238s # const gchar *arg_an_ay, 2238s # const gchar *const *arg_an_as, 2238s # const gchar *const *arg_an_ao, 2238s # const gchar *const *arg_an_aay, 2238s # GVariant *arg_an_asv) 2238s # { 2238s # 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); 2238s # } 2238s # 2238s # /* ------------------------------------------------------------------------ */ 2238s # 2238s # /** 2238s # * OrgProjectSignalingIfaceProxy: 2238s # * 2238s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2238s # */ 2238s # 2238s # /** 2238s # * OrgProjectSignalingIfaceProxyClass: 2238s # * @parent_class: The parent class. 2238s # * 2238s # * Class structure for #OrgProjectSignalingIfaceProxy. 2238s # */ 2238s # 2238s # struct _OrgProjectSignalingIfaceProxyPrivate 2238s # { 2238s # GData *qdata; 2238s # }; 2238s # 2238s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2238s # 2238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2238s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2238s # 2238s # #else 2238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2238s # 2238s # #endif 2238s # static void 2238s # org_project_signaling_iface_proxy_finalize (GObject *object) 2238s # { 2238s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2238s # g_datalist_clear (&proxy->priv->qdata); 2238s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2238s # } 2238s # 2238s # static void 2238s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2238s # guint prop_id G_GNUC_UNUSED, 2238s # GValue *value G_GNUC_UNUSED, 2238s # GParamSpec *pspec G_GNUC_UNUSED) 2238s # { 2238s # } 2238s # 2238s # static void 2238s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2238s # guint prop_id G_GNUC_UNUSED, 2238s # const GValue *value G_GNUC_UNUSED, 2238s # GParamSpec *pspec G_GNUC_UNUSED) 2238s # { 2238s # } 2238s # 2238s # static void 2238s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2238s # const gchar *sender_name G_GNUC_UNUSED, 2238s # const gchar *signal_name, 2238s # GVariant *parameters) 2238s # { 2238s # _ExtendedGDBusSignalInfo *info; 2238s # GVariantIter iter; 2238s # GVariant *child; 2238s # GValue *paramv; 2238s # gsize num_params; 2238s # gsize n; 2238s # guint signal_id; 2238s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2238s # if (info == NULL) 2238s # return; 2238s # num_params = g_variant_n_children (parameters); 2238s # paramv = g_new0 (GValue, num_params + 1); 2238s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2238s # g_value_set_object (¶mv[0], proxy); 2238s # g_variant_iter_init (&iter, parameters); 2238s # n = 1; 2238s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2238s # { 2238s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2238s # if (arg_info->use_gvariant) 2238s # { 2238s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2238s # g_value_set_variant (¶mv[n], child); 2238s # n++; 2238s # } 2238s # else 2238s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2238s # g_variant_unref (child); 2238s # } 2238s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2238s # g_signal_emitv (paramv, signal_id, 0, NULL); 2238s # for (n = 0; n < num_params + 1; n++) 2238s # g_value_unset (¶mv[n]); 2238s # g_free (paramv); 2238s # } 2238s # 2238s # static void 2238s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2238s # GVariant *changed_properties, 2238s # const gchar *const *invalidated_properties) 2238s # { 2238s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2238s # guint n; 2238s # const gchar *key; 2238s # GVariantIter *iter; 2238s # _ExtendedGDBusPropertyInfo *info; 2238s # g_variant_get (changed_properties, "a{sv}", &iter); 2238s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2238s # { 2238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2238s # g_datalist_remove_data (&proxy->priv->qdata, key); 2238s # if (info != NULL) 2238s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2238s # } 2238s # g_variant_iter_free (iter); 2238s # for (n = 0; invalidated_properties[n] != NULL; n++) 2238s # { 2238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2238s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2238s # if (info != NULL) 2238s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2238s # } 2238s # } 2238s # 2238s # static void 2238s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2238s # { 2238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2238s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2238s # #else 2238s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2238s # #endif 2238s # 2238s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2238s # } 2238s # 2238s # static void 2238s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2238s # { 2238s # GObjectClass *gobject_class; 2238s # GDBusProxyClass *proxy_class; 2238s # 2238s # gobject_class = G_OBJECT_CLASS (klass); 2238s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2238s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2238s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2238s # 2238s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2238s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2238s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2238s # 2238s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2238s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2238s # #endif 2238s # } 2238s # 2238s # static void 2238s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2238s # { 2238s # } 2238s # 2238s # /** 2238s # * org_project_signaling_iface_proxy_new: 2238s # * @connection: A #GDBusConnection. 2238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2238s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2238s # * @object_path: An object path. 2238s # * @cancellable: (nullable): A #GCancellable or %NULL. 2238s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2238s # * @user_data: User data to pass to @callback. 2238s # * 2238s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2238s # * 2238s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2238s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2238s # * 2238s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2238s # */ 2238s # void 2238s # org_project_signaling_iface_proxy_new ( 2238s # GDBusConnection *connection, 2238s # GDBusProxyFlags flags, 2238s # const gchar *name, 2238s # const gchar *object_path, 2238s # GCancellable *cancellable, 2238s # GAsyncReadyCallback callback, 2238s # gpointer user_data) 2238s # { 2238s # 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); 2238s # } 2238s # 2238s # /** 2238s # * org_project_signaling_iface_proxy_new_finish: 2238s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2238s # * @error: Return location for error or %NULL 2238s # * 2238s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2238s # * 2238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2238s # */ 2238s # OrgProjectSignalingIface * 2238s # org_project_signaling_iface_proxy_new_finish ( 2238s # GAsyncResult *res, 2238s # GError **error) 2238s # { 2238s # GObject *ret; 2238s # GObject *source_object; 2238s # source_object = g_async_result_get_source_object (res); 2238s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2238s # g_object_unref (source_object); 2238s # if (ret != NULL) 2238s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2238s # else 2238s # return NULL; 2238s # } 2238s # 2238s # /** 2238s # * org_project_signaling_iface_proxy_new_sync: 2238s # * @connection: A #GDBusConnection. 2238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2238s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2238s # * @object_path: An object path. 2238s # * @cancellable: (nullable): A #GCancellable or %NULL. 2238s # * @error: Return location for error or %NULL 2238s # * 2238s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2238s # * 2238s # * The calling thread is blocked until a reply is received. 2238s # * 2238s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2238s # * 2238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2238s # */ 2238s # OrgProjectSignalingIface * 2238s # org_project_signaling_iface_proxy_new_sync ( 2238s # GDBusConnection *connection, 2238s # GDBusProxyFlags flags, 2238s # const gchar *name, 2238s # const gchar *object_path, 2238s # GCancellable *cancellable, 2238s # GError **error) 2238s # { 2238s # GInitable *ret; 2238s # 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); 2238s # if (ret != NULL) 2238s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2238s # else 2238s # return NULL; 2238s # } 2238s # 2238s # 2238s # /** 2238s # * org_project_signaling_iface_proxy_new_for_bus: 2238s # * @bus_type: A #GBusType. 2238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2238s # * @name: A bus name (well-known or unique). 2238s # * @object_path: An object path. 2238s # * @cancellable: (nullable): A #GCancellable or %NULL. 2238s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2238s # * @user_data: User data to pass to @callback. 2238s # * 2238s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2238s # * 2238s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2238s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2238s # * 2238s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2238s # */ 2238s # void 2238s # org_project_signaling_iface_proxy_new_for_bus ( 2238s # GBusType bus_type, 2238s # GDBusProxyFlags flags, 2238s # const gchar *name, 2238s # const gchar *object_path, 2238s # GCancellable *cancellable, 2238s # GAsyncReadyCallback callback, 2238s # gpointer user_data) 2238s # { 2238s # 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); 2238s # } 2238s # 2238s # /** 2238s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2238s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2238s # * @error: Return location for error or %NULL 2238s # * 2238s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2238s # * 2238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2238s # */ 2238s # OrgProjectSignalingIface * 2238s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2238s # GAsyncResult *res, 2238s # GError **error) 2238s # { 2238s # GObject *ret; 2238s # GObject *source_object; 2238s # source_object = g_async_result_get_source_object (res); 2238s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2238s # g_object_unref (source_object); 2238s # if (ret != NULL) 2238s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2238s # else 2238s # return NULL; 2238s # } 2238s # 2238s # /** 2238s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2238s # * @bus_type: A #GBusType. 2238s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2238s # * @name: A bus name (well-known or unique). 2238s # * @object_path: An object path. 2238s # * @cancellable: (nullable): A #GCancellable or %NULL. 2238s # * @error: Return location for error or %NULL 2238s # * 2238s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2238s # * 2238s # * The calling thread is blocked until a reply is received. 2238s # * 2238s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2238s # * 2238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2238s # */ 2238s # OrgProjectSignalingIface * 2238s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2238s # GBusType bus_type, 2238s # GDBusProxyFlags flags, 2238s # const gchar *name, 2238s # const gchar *object_path, 2238s # GCancellable *cancellable, 2238s # GError **error) 2238s # { 2238s # GInitable *ret; 2238s # 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); 2238s # if (ret != NULL) 2238s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2238s # else 2238s # return NULL; 2238s # } 2238s # 2238s # 2238s # /* ------------------------------------------------------------------------ */ 2238s # 2238s # /** 2238s # * OrgProjectSignalingIfaceSkeleton: 2238s # * 2238s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2238s # */ 2238s # 2238s # /** 2238s # * OrgProjectSignalingIfaceSkeletonClass: 2238s # * @parent_class: The parent class. 2238s # * 2238s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2238s # */ 2238s # 2238s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2238s # { 2238s # GValue *properties; 2238s # GList *changed_properties; 2238s # GSource *changed_properties_idle_source; 2238s # GMainContext *context; 2238s # GMutex lock; 2238s # }; 2238s # 2238s # static void 2238s # _org_project_signaling_iface_skeleton_handle_method_call ( 2238s # GDBusConnection *connection G_GNUC_UNUSED, 2238s # const gchar *sender G_GNUC_UNUSED, 2238s # const gchar *object_path G_GNUC_UNUSED, 2238s # const gchar *interface_name, 2238s # const gchar *method_name, 2238s # GVariant *parameters, 2238s # GDBusMethodInvocation *invocation, 2238s # gpointer user_data) 2238s # { 2238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2238s # _ExtendedGDBusMethodInfo *info; 2238s # GVariantIter iter; 2238s # GVariant *child; 2238s # GValue *paramv; 2238s # gsize num_params; 2238s # guint num_extra; 2238s # gsize n; 2238s # guint signal_id; 2238s # GValue return_value = G_VALUE_INIT; 2238s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2238s # g_assert (info != NULL); 2238s # num_params = g_variant_n_children (parameters); 2238s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2238s # n = 0; 2238s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2238s # g_value_set_object (¶mv[n++], skeleton); 2238s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2238s # g_value_set_object (¶mv[n++], invocation); 2238s # if (info->pass_fdlist) 2238s # { 2238s # #ifdef G_OS_UNIX 2238s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2238s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2238s # #else 2238s # g_assert_not_reached (); 2238s # #endif 2238s # } 2238s # g_variant_iter_init (&iter, parameters); 2238s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2238s # { 2238s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2238s # if (arg_info->use_gvariant) 2238s # { 2238s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2238s # g_value_set_variant (¶mv[n], child); 2238s # n++; 2238s # } 2238s # else 2238s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2238s # g_variant_unref (child); 2238s # } 2238s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2238s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2238s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2238s # if (!g_value_get_boolean (&return_value)) 2238s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2238s # g_value_unset (&return_value); 2238s # for (n = 0; n < num_params + num_extra; n++) 2238s # g_value_unset (¶mv[n]); 2238s # g_free (paramv); 2238s # } 2238s # 2238s # static GVariant * 2238s # _org_project_signaling_iface_skeleton_handle_get_property ( 2238s # GDBusConnection *connection G_GNUC_UNUSED, 2238s # const gchar *sender G_GNUC_UNUSED, 2238s # const gchar *object_path G_GNUC_UNUSED, 2238s # const gchar *interface_name G_GNUC_UNUSED, 2238s # const gchar *property_name, 2238s # GError **error, 2238s # gpointer user_data) 2238s # { 2238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2238s # GValue value = G_VALUE_INIT; 2238s # GParamSpec *pspec; 2238s # _ExtendedGDBusPropertyInfo *info; 2238s # GVariant *ret; 2238s # ret = NULL; 2238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2238s # g_assert (info != NULL); 2238s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2238s # if (pspec == NULL) 2238s # { 2238s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2238s # } 2238s # else 2238s # { 2238s # g_value_init (&value, pspec->value_type); 2238s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2238s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2238s # g_value_unset (&value); 2238s # } 2238s # return ret; 2238s # } 2238s # 2238s # static gboolean 2238s # _org_project_signaling_iface_skeleton_handle_set_property ( 2238s # GDBusConnection *connection G_GNUC_UNUSED, 2238s # const gchar *sender G_GNUC_UNUSED, 2238s # const gchar *object_path G_GNUC_UNUSED, 2238s # const gchar *interface_name G_GNUC_UNUSED, 2238s # const gchar *property_name, 2238s # GVariant *variant, 2238s # GError **error, 2238s # gpointer user_data) 2238s # { 2238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2238s # GValue value = G_VALUE_INIT; 2238s # GParamSpec *pspec; 2238s # _ExtendedGDBusPropertyInfo *info; 2238s # gboolean ret; 2238s # ret = FALSE; 2238s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2238s # g_assert (info != NULL); 2238s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2238s # if (pspec == NULL) 2238s # { 2238s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2238s # } 2238s # else 2238s # { 2238s # if (info->use_gvariant) 2238s # g_value_set_variant (&value, variant); 2238s # else 2238s # g_dbus_gvariant_to_gvalue (variant, &value); 2238s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2238s # g_value_unset (&value); 2238s # ret = TRUE; 2238s # } 2238s # return ret; 2238s # } 2238s # 2238s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2238s # { 2238s # _org_project_signaling_iface_skeleton_handle_method_call, 2238s # _org_project_signaling_iface_skeleton_handle_get_property, 2238s # _org_project_signaling_iface_skeleton_handle_set_property, 2238s # {NULL} 2238s # }; 2238s # 2238s # static GDBusInterfaceInfo * 2238s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2238s # { 2238s # return org_project_signaling_iface_interface_info (); 2238s # } 2238s # 2238s # static GDBusInterfaceVTable * 2238s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2238s # { 2238s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2238s # } 2238s # 2238s # static GVariant * 2238s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2238s # { 2238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2238s # 2238s # GVariantBuilder builder; 2238s # guint n; 2238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2238s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2238s # #else 2238s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2238s # #endif 2238s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2238s # goto out; 2238s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2238s # { 2238s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2238s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2238s # { 2238s # GVariant *value; 2238s # 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); 2238s # if (value != NULL) 2238s # { 2238s # g_variant_take_ref (value); 2238s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2238s # g_variant_unref (value); 2238s # } 2238s # } 2238s # } 2238s # out: 2238s # return g_variant_builder_end (&builder); 2238s # } 2238s # 2238s # static void 2238s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2238s # { 2238s # } 2238s # 2238s # static void 2238s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 2238s # OrgProjectSignalingIface *object, 2238s # gboolean arg_an_b, 2238s # guchar arg_an_y, 2238s # gint16 arg_an_n, 2238s # guint16 arg_an_q, 2238s # gint arg_an_i, 2238s # guint arg_an_u, 2238s # gint64 arg_an_x, 2238s # guint64 arg_an_t, 2238s # gdouble arg_an_d, 2238s # const gchar *arg_an_s, 2238s # const gchar *arg_an_o, 2238s # const gchar *arg_an_g, 2238s # GVariant *arg_an_h, 2238s # const gchar *arg_an_ay, 2238s # const gchar *const *arg_an_as, 2238s # const gchar *const *arg_an_ao, 2238s # const gchar *const *arg_an_aay, 2238s # GVariant *arg_an_asv) 2238s # { 2238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2238s # 2238s # GList *connections, *l; 2238s # GVariant *signal_variant; 2238s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2238s # 2238s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 2238s # arg_an_b, 2238s # arg_an_y, 2238s # arg_an_n, 2238s # arg_an_q, 2238s # arg_an_i, 2238s # arg_an_u, 2238s # arg_an_x, 2238s # arg_an_t, 2238s # arg_an_d, 2238s # arg_an_s, 2238s # arg_an_o, 2238s # arg_an_g, 2238s # arg_an_h, 2238s # arg_an_ay, 2238s # arg_an_as, 2238s # arg_an_ao, 2238s # arg_an_aay, 2238s # arg_an_asv)); 2238s # for (l = connections; l != NULL; l = l->next) 2238s # { 2238s # GDBusConnection *connection = l->data; 2238s # g_dbus_connection_emit_signal (connection, 2238s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 2238s # signal_variant, NULL); 2238s # } 2238s # g_variant_unref (signal_variant); 2238s # g_list_free_full (connections, g_object_unref); 2238s # } 2238s # 2238s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2238s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2238s # 2238s # #else 2238s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2238s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2238s # 2238s # #endif 2238s # static void 2238s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2238s # { 2238s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2238s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2238s # if (skeleton->priv->changed_properties_idle_source != NULL) 2238s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2238s # g_main_context_unref (skeleton->priv->context); 2238s # g_mutex_clear (&skeleton->priv->lock); 2238s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2238s # } 2238s # 2238s # static void 2238s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2238s # { 2238s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2238s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2238s # #else 2238s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2238s # #endif 2238s # 2238s # g_mutex_init (&skeleton->priv->lock); 2238s # skeleton->priv->context = g_main_context_ref_thread_default (); 2238s # } 2238s # 2238s # static void 2238s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2238s # { 2238s # GObjectClass *gobject_class; 2238s # GDBusInterfaceSkeletonClass *skeleton_class; 2238s # 2238s # gobject_class = G_OBJECT_CLASS (klass); 2238s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2238s # 2238s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2238s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2238s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2238s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2238s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2238s # 2238s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2238s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2238s # #endif 2238s # } 2238s # 2238s # static void 2238s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2238s # { 2238s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 2238s # } 2238s # 2238s # /** 2238s # * org_project_signaling_iface_skeleton_new: 2238s # * 2238s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2238s # * 2238s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2238s # */ 2238s # OrgProjectSignalingIface * 2238s # org_project_signaling_iface_skeleton_new (void) 2238s # { 2238s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2238s # } 2238s # Error: 2239s ok 20 __main__.TestCodegen.test_generate_signal_id_multiple_signals_types 2239s # gdbus-codegen: /usr/bin/gdbus-codegen 2239s # tmpdir: /tmp/tmpmi9832cn 2239s # /tmp/tmpmi9832cn/tmpgpl1aom8.xml: 2239s # 2239s # 2239s # 2239s # 2239s # 2239s # 2239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpmi9832cn/tmpgpl1aom8.xml', '--output', '-', '--body'] 2239s # Return code: 0 2239s # Output: 2239s # /* 2239s # * This file is generated by gdbus-codegen, do not modify it. 2239s # * 2239s # * The license of this code is the same as for the D-Bus interface description 2239s # * it was derived from. Note that it links to GLib, so must comply with the 2239s # * LGPL linking clauses. 2239s # */ 2239s # 2239s # #ifdef HAVE_CONFIG_H 2239s # # include "config.h" 2239s # #endif 2239s # 2239s # #include 2239s # #ifdef G_OS_UNIX 2239s # # include 2239s # #endif 2239s # 2239s # #ifdef G_ENABLE_DEBUG 2239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2239s # #else /* !G_ENABLE_DEBUG */ 2239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2239s # * Do not access GValues directly in your code. Instead, use the 2239s # * g_value_get_*() functions 2239s # */ 2239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2239s # #endif /* !G_ENABLE_DEBUG */ 2239s # 2239s # typedef struct 2239s # { 2239s # GDBusArgInfo parent_struct; 2239s # gboolean use_gvariant; 2239s # } _ExtendedGDBusArgInfo; 2239s # 2239s # typedef struct 2239s # { 2239s # GDBusMethodInfo parent_struct; 2239s # const gchar *signal_name; 2239s # gboolean pass_fdlist; 2239s # } _ExtendedGDBusMethodInfo; 2239s # 2239s # typedef struct 2239s # { 2239s # GDBusSignalInfo parent_struct; 2239s # const gchar *signal_name; 2239s # } _ExtendedGDBusSignalInfo; 2239s # 2239s # typedef struct 2239s # { 2239s # GDBusPropertyInfo parent_struct; 2239s # const gchar *hyphen_name; 2239s # guint use_gvariant : 1; 2239s # guint emits_changed_signal : 1; 2239s # } _ExtendedGDBusPropertyInfo; 2239s # 2239s # typedef struct 2239s # { 2239s # GDBusInterfaceInfo parent_struct; 2239s # const gchar *hyphen_name; 2239s # } _ExtendedGDBusInterfaceInfo; 2239s # 2239s # typedef struct 2239s # { 2239s # const _ExtendedGDBusPropertyInfo *info; 2239s # guint prop_id; 2239s # GValue orig_value; /* the value before the change */ 2239s # } ChangedProperty; 2239s # 2239s # static void 2239s # _changed_property_free (ChangedProperty *data) 2239s # { 2239s # g_value_unset (&data->orig_value); 2239s # g_free (data); 2239s # } 2239s # 2239s # static gboolean 2239s # _g_strv_equal0 (gchar **a, gchar **b) 2239s # { 2239s # gboolean ret = FALSE; 2239s # guint n; 2239s # if (a == NULL && b == NULL) 2239s # { 2239s # ret = TRUE; 2239s # goto out; 2239s # } 2239s # if (a == NULL || b == NULL) 2239s # goto out; 2239s # if (g_strv_length (a) != g_strv_length (b)) 2239s # goto out; 2239s # for (n = 0; a[n] != NULL; n++) 2239s # if (g_strcmp0 (a[n], b[n]) != 0) 2239s # goto out; 2239s # ret = TRUE; 2239s # out: 2239s # return ret; 2239s # } 2239s # 2239s # static gboolean 2239s # _g_variant_equal0 (GVariant *a, GVariant *b) 2239s # { 2239s # gboolean ret = FALSE; 2239s # if (a == NULL && b == NULL) 2239s # { 2239s # ret = TRUE; 2239s # goto out; 2239s # } 2239s # if (a == NULL || b == NULL) 2239s # goto out; 2239s # ret = g_variant_equal (a, b); 2239s # out: 2239s # return ret; 2239s # } 2239s # 2239s # G_GNUC_UNUSED static gboolean 2239s # _g_value_equal (const GValue *a, const GValue *b) 2239s # { 2239s # gboolean ret = FALSE; 2239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2239s # switch (G_VALUE_TYPE (a)) 2239s # { 2239s # case G_TYPE_BOOLEAN: 2239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2239s # break; 2239s # case G_TYPE_UCHAR: 2239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2239s # break; 2239s # case G_TYPE_INT: 2239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2239s # break; 2239s # case G_TYPE_UINT: 2239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2239s # break; 2239s # case G_TYPE_INT64: 2239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2239s # break; 2239s # case G_TYPE_UINT64: 2239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2239s # break; 2239s # case G_TYPE_DOUBLE: 2239s # { 2239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2239s # gdouble da = g_value_get_double (a); 2239s # gdouble db = g_value_get_double (b); 2239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2239s # } 2239s # break; 2239s # case G_TYPE_STRING: 2239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2239s # break; 2239s # case G_TYPE_VARIANT: 2239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2239s # break; 2239s # default: 2239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2239s # else 2239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2239s # break; 2239s # } 2239s # return ret; 2239s # } 2239s # 2239s # static void 2239s # _g_dbus_codegen_marshal_VOID__INT64 ( 2239s # GClosure *closure, 2239s # GValue *return_value G_GNUC_UNUSED, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint G_GNUC_UNUSED, 2239s # void *marshal_data) 2239s # { 2239s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 2239s # (void *data1, 2239s # gint64 arg_an_x, 2239s # void *data2); 2239s # _GDbusCodegenMarshalVoid_Int64Func callback; 2239s # GCClosure *cc = (GCClosure*) closure; 2239s # void *data1, *data2; 2239s # 2239s # g_return_if_fail (n_param_values == 2); 2239s # 2239s # if (G_CCLOSURE_SWAP_DATA (closure)) 2239s # { 2239s # data1 = closure->data; 2239s # data2 = g_value_peek_pointer (param_values + 0); 2239s # } 2239s # else 2239s # { 2239s # data1 = g_value_peek_pointer (param_values + 0); 2239s # data2 = closure->data; 2239s # } 2239s # 2239s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 2239s # (marshal_data ? marshal_data : cc->callback); 2239s # 2239s # callback (data1, 2239s # g_marshal_value_peek_int64 (param_values + 1), 2239s # data2); 2239s # } 2239s # 2239s # static void 2239s # _g_dbus_codegen_marshal_VOID__UINT64 ( 2239s # GClosure *closure, 2239s # GValue *return_value G_GNUC_UNUSED, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint G_GNUC_UNUSED, 2239s # void *marshal_data) 2239s # { 2239s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 2239s # (void *data1, 2239s # guint64 arg_an_t, 2239s # void *data2); 2239s # _GDbusCodegenMarshalVoid_Uint64Func callback; 2239s # GCClosure *cc = (GCClosure*) closure; 2239s # void *data1, *data2; 2239s # 2239s # g_return_if_fail (n_param_values == 2); 2239s # 2239s # if (G_CCLOSURE_SWAP_DATA (closure)) 2239s # { 2239s # data1 = closure->data; 2239s # data2 = g_value_peek_pointer (param_values + 0); 2239s # } 2239s # else 2239s # { 2239s # data1 = g_value_peek_pointer (param_values + 0); 2239s # data2 = closure->data; 2239s # } 2239s # 2239s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 2239s # (marshal_data ? marshal_data : cc->callback); 2239s # 2239s # callback (data1, 2239s # g_marshal_value_peek_uint64 (param_values + 1), 2239s # data2); 2239s # } 2239s # 2239s # /* ------------------------------------------------------------------------ 2239s # * Code for interface org.project.SignalingIface 2239s # * ------------------------------------------------------------------------ 2239s # */ 2239s # 2239s # /** 2239s # * SECTION:OrgProjectSignalingIface 2239s # * @title: OrgProjectSignalingIface 2239s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2239s # * 2239s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2239s # */ 2239s # 2239s # enum 2239s # { 2239s # _ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 2239s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 2239s # }; 2239s # 2239s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[19] = { 0 }; 2239s # 2239s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_no_arg_signal = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "NoArgSignal", 2239s # NULL, 2239s # NULL 2239s # }, 2239s # "no-arg-signal" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_b", 2239s # (gchar *) "b", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalB", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-b" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_y", 2239s # (gchar *) "y", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalY", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-y" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_n", 2239s # (gchar *) "n", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalN", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-n" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_q", 2239s # (gchar *) "q", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalQ", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-q" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_i", 2239s # (gchar *) "i", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalI", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-i" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_u", 2239s # (gchar *) "u", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalU", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-u" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_x", 2239s # (gchar *) "x", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalX", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-x" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_t", 2239s # (gchar *) "t", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalT", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-t" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_d", 2239s # (gchar *) "d", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalD", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-d" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_s", 2239s # (gchar *) "s", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalS", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-s" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_o", 2239s # (gchar *) "o", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalO", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-o" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_g", 2239s # (gchar *) "g", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalG", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-g" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_h", 2239s # (gchar *) "h", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalH", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-h" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_ay", 2239s # (gchar *) "ay", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalAY", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-ay" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_as", 2239s # (gchar *) "as", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalAS", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-as" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_ao", 2239s # (gchar *) "ao", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalAO", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-ao" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_aay", 2239s # (gchar *) "aay", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalAAY", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-aay" 2239s # }; 2239s # 2239s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "an_asv", 2239s # (gchar *) "a{sv}", 2239s # NULL 2239s # }, 2239s # FALSE 2239s # }; 2239s # 2239s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SingleArgSignalASV", 2239s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 2239s # NULL 2239s # }, 2239s # "single-arg-signal-asv" 2239s # }; 2239s # 2239s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2239s # { 2239s # &_org_project_signaling_iface_signal_info_no_arg_signal.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 2239s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "org.project.SignalingIface", 2239s # NULL, 2239s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2239s # NULL, 2239s # NULL 2239s # }, 2239s # "org-project-signaling-iface", 2239s # }; 2239s # 2239s # 2239s # /** 2239s # * org_project_signaling_iface_interface_info: 2239s # * 2239s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2239s # * 2239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2239s # */ 2239s # GDBusInterfaceInfo * 2239s # org_project_signaling_iface_interface_info (void) 2239s # { 2239s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_override_properties: 2239s # * @klass: The class structure for a #GObject derived class. 2239s # * @property_id_begin: The property id to assign to the first overridden property. 2239s # * 2239s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2239s # * The properties are overridden in the order they are defined. 2239s # * 2239s # * Returns: The last property id. 2239s # */ 2239s # guint 2239s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2239s # { 2239s # return property_id_begin - 1; 2239s # } 2239s # 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_no_arg_signal ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__VOID (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__BOOLEAN (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__UCHAR (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__INT (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__UINT (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__INT (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__UINT (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__DOUBLE (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__STRING (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__STRING (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__STRING (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__VARIANT (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__STRING (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__BOXED (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__BOXED (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__BOXED (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # inline static void 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__VARIANT (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface: 2239s # * 2239s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2239s # */ 2239s # 2239s # /** 2239s # * OrgProjectSignalingIfaceIface: 2239s # * @parent_iface: The parent interface. 2239s # * @no_arg_signal: Handler for the #OrgProjectSignalingIface::no-arg-signal signal. 2239s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 2239s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 2239s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 2239s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 2239s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 2239s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 2239s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 2239s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 2239s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 2239s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 2239s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 2239s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 2239s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 2239s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 2239s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 2239s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 2239s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 2239s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 2239s # * 2239s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2239s # */ 2239s # 2239s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2239s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2239s # 2239s # static void 2239s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2239s # { 2239s # /* GObject signals for received D-Bus signals: */ 2239s # /** 2239s # * OrgProjectSignalingIface::no-arg-signal: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "NoArgSignal" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL] = 2239s # g_signal_new ("no-arg-signal", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, no_arg_signal), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_no_arg_signal, 2239s # G_TYPE_NONE, 2239s # 0); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-b: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_b: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 2239s # g_signal_new ("single-arg-signal-b", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_BOOLEAN); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-y: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_y: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 2239s # g_signal_new ("single-arg-signal-y", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_UCHAR); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-n: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_n: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 2239s # g_signal_new ("single-arg-signal-n", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_INT); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-q: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_q: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 2239s # g_signal_new ("single-arg-signal-q", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_UINT); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-i: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_i: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 2239s # g_signal_new ("single-arg-signal-i", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_INT); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-u: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_u: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 2239s # g_signal_new ("single-arg-signal-u", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_UINT); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-x: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_x: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 2239s # g_signal_new ("single-arg-signal-x", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_INT64); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-t: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_t: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 2239s # g_signal_new ("single-arg-signal-t", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_UINT64); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-d: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_d: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 2239s # g_signal_new ("single-arg-signal-d", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_DOUBLE); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-s: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_s: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 2239s # g_signal_new ("single-arg-signal-s", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_STRING); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-o: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_o: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 2239s # g_signal_new ("single-arg-signal-o", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_STRING); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-g: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_g: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 2239s # g_signal_new ("single-arg-signal-g", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_STRING); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-h: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_h: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 2239s # g_signal_new ("single-arg-signal-h", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_VARIANT); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-ay: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_ay: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAY" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 2239s # g_signal_new ("single-arg-signal-ay", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_STRING); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-as: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_as: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAS" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 2239s # g_signal_new ("single-arg-signal-as", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_STRV); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-ao: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_ao: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAO" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 2239s # g_signal_new ("single-arg-signal-ao", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_STRV); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-aay: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_aay: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAAY" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 2239s # g_signal_new ("single-arg-signal-aay", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_STRV); 2239s # 2239s # /** 2239s # * OrgProjectSignalingIface::single-arg-signal-asv: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_asv: Argument. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalASV" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 2239s # g_signal_new ("single-arg-signal-asv", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 2239s # NULL, 2239s # NULL, 2239s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 2239s # G_TYPE_NONE, 2239s # 1, G_TYPE_VARIANT); 2239s # 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_no_arg_signal: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * 2239s # * Emits the "NoArgSignal" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_no_arg_signal ( 2239s # OrgProjectSignalingIface *object) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL], 0); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_b: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_b: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalB" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_b ( 2239s # OrgProjectSignalingIface *object, 2239s # gboolean arg_an_b) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_an_b); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_y: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_y: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalY" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_y ( 2239s # OrgProjectSignalingIface *object, 2239s # guchar arg_an_y) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_an_y); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_n: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_n: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalN" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_n ( 2239s # OrgProjectSignalingIface *object, 2239s # gint16 arg_an_n) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_an_n); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_q: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_q: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalQ" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_q ( 2239s # OrgProjectSignalingIface *object, 2239s # guint16 arg_an_q) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_an_q); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_i: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_i: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalI" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_i ( 2239s # OrgProjectSignalingIface *object, 2239s # gint arg_an_i) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_an_i); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_u: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_u: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalU" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_u ( 2239s # OrgProjectSignalingIface *object, 2239s # guint arg_an_u) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_an_u); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_x: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_x: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalX" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_x ( 2239s # OrgProjectSignalingIface *object, 2239s # gint64 arg_an_x) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_an_x); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_t: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_t: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalT" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_t ( 2239s # OrgProjectSignalingIface *object, 2239s # guint64 arg_an_t) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_an_t); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_d: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_d: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalD" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_d ( 2239s # OrgProjectSignalingIface *object, 2239s # gdouble arg_an_d) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_an_d); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_s: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_s: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalS" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_s ( 2239s # OrgProjectSignalingIface *object, 2239s # const gchar *arg_an_s) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_an_s); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_o: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_o: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalO" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_o ( 2239s # OrgProjectSignalingIface *object, 2239s # const gchar *arg_an_o) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_an_o); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_g: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_g: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalG" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_g ( 2239s # OrgProjectSignalingIface *object, 2239s # const gchar *arg_an_g) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_an_g); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_h: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_h: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalH" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_h ( 2239s # OrgProjectSignalingIface *object, 2239s # GVariant *arg_an_h) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_an_h); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_ay: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_ay: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalAY" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_ay ( 2239s # OrgProjectSignalingIface *object, 2239s # const gchar *arg_an_ay) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_an_ay); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_as: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_as: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalAS" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_as ( 2239s # OrgProjectSignalingIface *object, 2239s # const gchar *const *arg_an_as) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_an_as); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_ao: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_ao: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalAO" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_ao ( 2239s # OrgProjectSignalingIface *object, 2239s # const gchar *const *arg_an_ao) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_an_ao); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_aay: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_aay: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalAAY" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_aay ( 2239s # OrgProjectSignalingIface *object, 2239s # const gchar *const *arg_an_aay) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_an_aay); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_emit_single_arg_signal_asv: 2239s # * @object: A #OrgProjectSignalingIface. 2239s # * @arg_an_asv: Argument to pass with the signal. 2239s # * 2239s # * Emits the "SingleArgSignalASV" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_emit_single_arg_signal_asv ( 2239s # OrgProjectSignalingIface *object, 2239s # GVariant *arg_an_asv) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_an_asv); 2239s # } 2239s # 2239s # /* ------------------------------------------------------------------------ */ 2239s # 2239s # /** 2239s # * OrgProjectSignalingIfaceProxy: 2239s # * 2239s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2239s # */ 2239s # 2239s # /** 2239s # * OrgProjectSignalingIfaceProxyClass: 2239s # * @parent_class: The parent class. 2239s # * 2239s # * Class structure for #OrgProjectSignalingIfaceProxy. 2239s # */ 2239s # 2239s # struct _OrgProjectSignalingIfaceProxyPrivate 2239s # { 2239s # GData *qdata; 2239s # }; 2239s # 2239s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2239s # 2239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2239s # 2239s # #else 2239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2239s # 2239s # #endif 2239s # static void 2239s # org_project_signaling_iface_proxy_finalize (GObject *object) 2239s # { 2239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2239s # g_datalist_clear (&proxy->priv->qdata); 2239s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2239s # } 2239s # 2239s # static void 2239s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2239s # guint prop_id G_GNUC_UNUSED, 2239s # GValue *value G_GNUC_UNUSED, 2239s # GParamSpec *pspec G_GNUC_UNUSED) 2239s # { 2239s # } 2239s # 2239s # static void 2239s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2239s # guint prop_id G_GNUC_UNUSED, 2239s # const GValue *value G_GNUC_UNUSED, 2239s # GParamSpec *pspec G_GNUC_UNUSED) 2239s # { 2239s # } 2239s # 2239s # static void 2239s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2239s # const gchar *sender_name G_GNUC_UNUSED, 2239s # const gchar *signal_name, 2239s # GVariant *parameters) 2239s # { 2239s # _ExtendedGDBusSignalInfo *info; 2239s # GVariantIter iter; 2239s # GVariant *child; 2239s # GValue *paramv; 2239s # gsize num_params; 2239s # gsize n; 2239s # guint signal_id; 2239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2239s # if (info == NULL) 2239s # return; 2239s # num_params = g_variant_n_children (parameters); 2239s # paramv = g_new0 (GValue, num_params + 1); 2239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2239s # g_value_set_object (¶mv[0], proxy); 2239s # g_variant_iter_init (&iter, parameters); 2239s # n = 1; 2239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2239s # { 2239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2239s # if (arg_info->use_gvariant) 2239s # { 2239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2239s # g_value_set_variant (¶mv[n], child); 2239s # n++; 2239s # } 2239s # else 2239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2239s # g_variant_unref (child); 2239s # } 2239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2239s # g_signal_emitv (paramv, signal_id, 0, NULL); 2239s # for (n = 0; n < num_params + 1; n++) 2239s # g_value_unset (¶mv[n]); 2239s # g_free (paramv); 2239s # } 2239s # 2239s # static void 2239s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2239s # GVariant *changed_properties, 2239s # const gchar *const *invalidated_properties) 2239s # { 2239s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2239s # guint n; 2239s # const gchar *key; 2239s # GVariantIter *iter; 2239s # _ExtendedGDBusPropertyInfo *info; 2239s # g_variant_get (changed_properties, "a{sv}", &iter); 2239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2239s # { 2239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2239s # g_datalist_remove_data (&proxy->priv->qdata, key); 2239s # if (info != NULL) 2239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2239s # } 2239s # g_variant_iter_free (iter); 2239s # for (n = 0; invalidated_properties[n] != NULL; n++) 2239s # { 2239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2239s # if (info != NULL) 2239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2239s # } 2239s # } 2239s # 2239s # static void 2239s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2239s # { 2239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2239s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2239s # #else 2239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2239s # #endif 2239s # 2239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2239s # } 2239s # 2239s # static void 2239s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2239s # { 2239s # GObjectClass *gobject_class; 2239s # GDBusProxyClass *proxy_class; 2239s # 2239s # gobject_class = G_OBJECT_CLASS (klass); 2239s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2239s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2239s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2239s # 2239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2239s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2239s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2239s # 2239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2239s # #endif 2239s # } 2239s # 2239s # static void 2239s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2239s # { 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_proxy_new: 2239s # * @connection: A #GDBusConnection. 2239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2239s # * @object_path: An object path. 2239s # * @cancellable: (nullable): A #GCancellable or %NULL. 2239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2239s # * @user_data: User data to pass to @callback. 2239s # * 2239s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2239s # * 2239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2239s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2239s # * 2239s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_proxy_new ( 2239s # GDBusConnection *connection, 2239s # GDBusProxyFlags flags, 2239s # const gchar *name, 2239s # const gchar *object_path, 2239s # GCancellable *cancellable, 2239s # GAsyncReadyCallback callback, 2239s # gpointer user_data) 2239s # { 2239s # 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); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_proxy_new_finish: 2239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2239s # * @error: Return location for error or %NULL 2239s # * 2239s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2239s # * 2239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2239s # */ 2239s # OrgProjectSignalingIface * 2239s # org_project_signaling_iface_proxy_new_finish ( 2239s # GAsyncResult *res, 2239s # GError **error) 2239s # { 2239s # GObject *ret; 2239s # GObject *source_object; 2239s # source_object = g_async_result_get_source_object (res); 2239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2239s # g_object_unref (source_object); 2239s # if (ret != NULL) 2239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2239s # else 2239s # return NULL; 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_proxy_new_sync: 2239s # * @connection: A #GDBusConnection. 2239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2239s # * @object_path: An object path. 2239s # * @cancellable: (nullable): A #GCancellable or %NULL. 2239s # * @error: Return location for error or %NULL 2239s # * 2239s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2239s # * 2239s # * The calling thread is blocked until a reply is received. 2239s # * 2239s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2239s # * 2239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2239s # */ 2239s # OrgProjectSignalingIface * 2239s # org_project_signaling_iface_proxy_new_sync ( 2239s # GDBusConnection *connection, 2239s # GDBusProxyFlags flags, 2239s # const gchar *name, 2239s # const gchar *object_path, 2239s # GCancellable *cancellable, 2239s # GError **error) 2239s # { 2239s # GInitable *ret; 2239s # 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); 2239s # if (ret != NULL) 2239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2239s # else 2239s # return NULL; 2239s # } 2239s # 2239s # 2239s # /** 2239s # * org_project_signaling_iface_proxy_new_for_bus: 2239s # * @bus_type: A #GBusType. 2239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2239s # * @name: A bus name (well-known or unique). 2239s # * @object_path: An object path. 2239s # * @cancellable: (nullable): A #GCancellable or %NULL. 2239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2239s # * @user_data: User data to pass to @callback. 2239s # * 2239s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2239s # * 2239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2239s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2239s # * 2239s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2239s # */ 2239s # void 2239s # org_project_signaling_iface_proxy_new_for_bus ( 2239s # GBusType bus_type, 2239s # GDBusProxyFlags flags, 2239s # const gchar *name, 2239s # const gchar *object_path, 2239s # GCancellable *cancellable, 2239s # GAsyncReadyCallback callback, 2239s # gpointer user_data) 2239s # { 2239s # 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); 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2239s # * @error: Return location for error or %NULL 2239s # * 2239s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2239s # * 2239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2239s # */ 2239s # OrgProjectSignalingIface * 2239s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2239s # GAsyncResult *res, 2239s # GError **error) 2239s # { 2239s # GObject *ret; 2239s # GObject *source_object; 2239s # source_object = g_async_result_get_source_object (res); 2239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2239s # g_object_unref (source_object); 2239s # if (ret != NULL) 2239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2239s # else 2239s # return NULL; 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2239s # * @bus_type: A #GBusType. 2239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2239s # * @name: A bus name (well-known or unique). 2239s # * @object_path: An object path. 2239s # * @cancellable: (nullable): A #GCancellable or %NULL. 2239s # * @error: Return location for error or %NULL 2239s # * 2239s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2239s # * 2239s # * The calling thread is blocked until a reply is received. 2239s # * 2239s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2239s # * 2239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2239s # */ 2239s # OrgProjectSignalingIface * 2239s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2239s # GBusType bus_type, 2239s # GDBusProxyFlags flags, 2239s # const gchar *name, 2239s # const gchar *object_path, 2239s # GCancellable *cancellable, 2239s # GError **error) 2239s # { 2239s # GInitable *ret; 2239s # 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); 2239s # if (ret != NULL) 2239s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2239s # else 2239s # return NULL; 2239s # } 2239s # 2239s # 2239s # /* ------------------------------------------------------------------------ */ 2239s # 2239s # /** 2239s # * OrgProjectSignalingIfaceSkeleton: 2239s # * 2239s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2239s # */ 2239s # 2239s # /** 2239s # * OrgProjectSignalingIfaceSkeletonClass: 2239s # * @parent_class: The parent class. 2239s # * 2239s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2239s # */ 2239s # 2239s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2239s # { 2239s # GValue *properties; 2239s # GList *changed_properties; 2239s # GSource *changed_properties_idle_source; 2239s # GMainContext *context; 2239s # GMutex lock; 2239s # }; 2239s # 2239s # static void 2239s # _org_project_signaling_iface_skeleton_handle_method_call ( 2239s # GDBusConnection *connection G_GNUC_UNUSED, 2239s # const gchar *sender G_GNUC_UNUSED, 2239s # const gchar *object_path G_GNUC_UNUSED, 2239s # const gchar *interface_name, 2239s # const gchar *method_name, 2239s # GVariant *parameters, 2239s # GDBusMethodInvocation *invocation, 2239s # gpointer user_data) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2239s # _ExtendedGDBusMethodInfo *info; 2239s # GVariantIter iter; 2239s # GVariant *child; 2239s # GValue *paramv; 2239s # gsize num_params; 2239s # guint num_extra; 2239s # gsize n; 2239s # guint signal_id; 2239s # GValue return_value = G_VALUE_INIT; 2239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2239s # g_assert (info != NULL); 2239s # num_params = g_variant_n_children (parameters); 2239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2239s # n = 0; 2239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2239s # g_value_set_object (¶mv[n++], skeleton); 2239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2239s # g_value_set_object (¶mv[n++], invocation); 2239s # if (info->pass_fdlist) 2239s # { 2239s # #ifdef G_OS_UNIX 2239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2239s # #else 2239s # g_assert_not_reached (); 2239s # #endif 2239s # } 2239s # g_variant_iter_init (&iter, parameters); 2239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2239s # { 2239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2239s # if (arg_info->use_gvariant) 2239s # { 2239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2239s # g_value_set_variant (¶mv[n], child); 2239s # n++; 2239s # } 2239s # else 2239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2239s # g_variant_unref (child); 2239s # } 2239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2239s # if (!g_value_get_boolean (&return_value)) 2239s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2239s # g_value_unset (&return_value); 2239s # for (n = 0; n < num_params + num_extra; n++) 2239s # g_value_unset (¶mv[n]); 2239s # g_free (paramv); 2239s # } 2239s # 2239s # static GVariant * 2239s # _org_project_signaling_iface_skeleton_handle_get_property ( 2239s # GDBusConnection *connection G_GNUC_UNUSED, 2239s # const gchar *sender G_GNUC_UNUSED, 2239s # const gchar *object_path G_GNUC_UNUSED, 2239s # const gchar *interface_name G_GNUC_UNUSED, 2239s # const gchar *property_name, 2239s # GError **error, 2239s # gpointer user_data) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2239s # GValue value = G_VALUE_INIT; 2239s # GParamSpec *pspec; 2239s # _ExtendedGDBusPropertyInfo *info; 2239s # GVariant *ret; 2239s # ret = NULL; 2239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2239s # g_assert (info != NULL); 2239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2239s # if (pspec == NULL) 2239s # { 2239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2239s # } 2239s # else 2239s # { 2239s # g_value_init (&value, pspec->value_type); 2239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2239s # g_value_unset (&value); 2239s # } 2239s # return ret; 2239s # } 2239s # 2239s # static gboolean 2239s # _org_project_signaling_iface_skeleton_handle_set_property ( 2239s # GDBusConnection *connection G_GNUC_UNUSED, 2239s # const gchar *sender G_GNUC_UNUSED, 2239s # const gchar *object_path G_GNUC_UNUSED, 2239s # const gchar *interface_name G_GNUC_UNUSED, 2239s # const gchar *property_name, 2239s # GVariant *variant, 2239s # GError **error, 2239s # gpointer user_data) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2239s # GValue value = G_VALUE_INIT; 2239s # GParamSpec *pspec; 2239s # _ExtendedGDBusPropertyInfo *info; 2239s # gboolean ret; 2239s # ret = FALSE; 2239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2239s # g_assert (info != NULL); 2239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2239s # if (pspec == NULL) 2239s # { 2239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2239s # } 2239s # else 2239s # { 2239s # if (info->use_gvariant) 2239s # g_value_set_variant (&value, variant); 2239s # else 2239s # g_dbus_gvariant_to_gvalue (variant, &value); 2239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2239s # g_value_unset (&value); 2239s # ret = TRUE; 2239s # } 2239s # return ret; 2239s # } 2239s # 2239s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2239s # { 2239s # _org_project_signaling_iface_skeleton_handle_method_call, 2239s # _org_project_signaling_iface_skeleton_handle_get_property, 2239s # _org_project_signaling_iface_skeleton_handle_set_property, 2239s # {NULL} 2239s # }; 2239s # 2239s # static GDBusInterfaceInfo * 2239s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2239s # { 2239s # return org_project_signaling_iface_interface_info (); 2239s # } 2239s # 2239s # static GDBusInterfaceVTable * 2239s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2239s # { 2239s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2239s # } 2239s # 2239s # static GVariant * 2239s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2239s # 2239s # GVariantBuilder builder; 2239s # guint n; 2239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2239s # #else 2239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2239s # #endif 2239s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2239s # goto out; 2239s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2239s # { 2239s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2239s # { 2239s # GVariant *value; 2239s # 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); 2239s # if (value != NULL) 2239s # { 2239s # g_variant_take_ref (value); 2239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2239s # g_variant_unref (value); 2239s # } 2239s # } 2239s # } 2239s # out: 2239s # return g_variant_builder_end (&builder); 2239s # } 2239s # 2239s # static void 2239s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2239s # { 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_no_arg_signal ( 2239s # OrgProjectSignalingIface *object) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "NoArgSignal", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 2239s # OrgProjectSignalingIface *object, 2239s # gboolean arg_an_b) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 2239s # arg_an_b)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 2239s # OrgProjectSignalingIface *object, 2239s # guchar arg_an_y) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 2239s # arg_an_y)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 2239s # OrgProjectSignalingIface *object, 2239s # gint16 arg_an_n) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 2239s # arg_an_n)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 2239s # OrgProjectSignalingIface *object, 2239s # guint16 arg_an_q) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 2239s # arg_an_q)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 2239s # OrgProjectSignalingIface *object, 2239s # gint arg_an_i) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 2239s # arg_an_i)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 2239s # OrgProjectSignalingIface *object, 2239s # guint arg_an_u) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 2239s # arg_an_u)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 2239s # OrgProjectSignalingIface *object, 2239s # gint64 arg_an_x) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 2239s # arg_an_x)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 2239s # OrgProjectSignalingIface *object, 2239s # guint64 arg_an_t) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 2239s # arg_an_t)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 2239s # OrgProjectSignalingIface *object, 2239s # gdouble arg_an_d) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 2239s # arg_an_d)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 2239s # OrgProjectSignalingIface *object, 2239s # const gchar *arg_an_s) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 2239s # arg_an_s)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 2239s # OrgProjectSignalingIface *object, 2239s # const gchar *arg_an_o) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 2239s # arg_an_o)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 2239s # OrgProjectSignalingIface *object, 2239s # const gchar *arg_an_g) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 2239s # arg_an_g)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 2239s # OrgProjectSignalingIface *object, 2239s # GVariant *arg_an_h) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 2239s # arg_an_h)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 2239s # OrgProjectSignalingIface *object, 2239s # const gchar *arg_an_ay) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 2239s # arg_an_ay)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAY", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 2239s # OrgProjectSignalingIface *object, 2239s # const gchar *const *arg_an_as) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 2239s # arg_an_as)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAS", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 2239s # OrgProjectSignalingIface *object, 2239s # const gchar *const *arg_an_ao) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 2239s # arg_an_ao)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAO", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 2239s # OrgProjectSignalingIface *object, 2239s # const gchar *const *arg_an_aay) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 2239s # arg_an_aay)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAAY", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void 2239s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 2239s # OrgProjectSignalingIface *object, 2239s # GVariant *arg_an_asv) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 2239s # arg_an_asv)); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalASV", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2239s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2239s # 2239s # #else 2239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2239s # 2239s # #endif 2239s # static void 2239s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2239s # { 2239s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2239s # if (skeleton->priv->changed_properties_idle_source != NULL) 2239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2239s # g_main_context_unref (skeleton->priv->context); 2239s # g_mutex_clear (&skeleton->priv->lock); 2239s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2239s # } 2239s # 2239s # static void 2239s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2239s # { 2239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2239s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2239s # #else 2239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2239s # #endif 2239s # 2239s # g_mutex_init (&skeleton->priv->lock); 2239s # skeleton->priv->context = g_main_context_ref_thread_default (); 2239s # } 2239s # 2239s # static void 2239s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2239s # { 2239s # GObjectClass *gobject_class; 2239s # GDBusInterfaceSkeletonClass *skeleton_class; 2239s # 2239s # gobject_class = G_OBJECT_CLASS (klass); 2239s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2239s # 2239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2239s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2239s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2239s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2239s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2239s # 2239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2239s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2239s # #endif 2239s # } 2239s # 2239s # static void 2239s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2239s # { 2239s # iface->no_arg_signal = _org_project_signaling_iface_on_signal_no_arg_signal; 2239s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 2239s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 2239s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 2239s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 2239s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 2239s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 2239s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 2239s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 2239s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 2239s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 2239s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 2239s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 2239s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 2239s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 2239s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 2239s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 2239s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 2239s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 2239s # } 2239s # 2239s # /** 2239s # * org_project_signaling_iface_skeleton_new: 2239s # * 2239s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2239s # * 2239s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2239s # */ 2239s # OrgProjectSignalingIface * 2239s # org_project_signaling_iface_skeleton_new (void) 2239s # { 2239s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2239s # } 2239s # Error: 2239s ok 21 __main__.TestCodegen.test_generate_signal_id_simple_signal 2239s # gdbus-codegen: /usr/bin/gdbus-codegen 2239s # tmpdir: /tmp/tmpv8gkmrq0 2239s # /tmp/tmpv8gkmrq0/tmpjdyztlwd.xml: 2239s # 2239s # 2239s # 2239s # 2239s # 2239s # 2239s # 2239s # 2239s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv8gkmrq0/tmpjdyztlwd.xml', '--output', '-', '--body'] 2239s # Return code: 0 2239s # Output: 2239s # /* 2239s # * This file is generated by gdbus-codegen, do not modify it. 2239s # * 2239s # * The license of this code is the same as for the D-Bus interface description 2239s # * it was derived from. Note that it links to GLib, so must comply with the 2239s # * LGPL linking clauses. 2239s # */ 2239s # 2239s # #ifdef HAVE_CONFIG_H 2239s # # include "config.h" 2239s # #endif 2239s # 2239s # #include 2239s # #ifdef G_OS_UNIX 2239s # # include 2239s # #endif 2239s # 2239s # #ifdef G_ENABLE_DEBUG 2239s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2239s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2239s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2239s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2239s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2239s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2239s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2239s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2239s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2239s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2239s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2239s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2239s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2239s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2239s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2239s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2239s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2239s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2239s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2239s # #else /* !G_ENABLE_DEBUG */ 2239s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2239s # * Do not access GValues directly in your code. Instead, use the 2239s # * g_value_get_*() functions 2239s # */ 2239s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2239s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2239s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2239s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2239s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2239s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2239s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2239s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2239s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2239s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2239s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2239s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2239s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2239s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2239s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2239s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2239s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2239s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2239s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2239s # #endif /* !G_ENABLE_DEBUG */ 2239s # 2239s # typedef struct 2239s # { 2239s # GDBusArgInfo parent_struct; 2239s # gboolean use_gvariant; 2239s # } _ExtendedGDBusArgInfo; 2239s # 2239s # typedef struct 2239s # { 2239s # GDBusMethodInfo parent_struct; 2239s # const gchar *signal_name; 2239s # gboolean pass_fdlist; 2239s # } _ExtendedGDBusMethodInfo; 2239s # 2239s # typedef struct 2239s # { 2239s # GDBusSignalInfo parent_struct; 2239s # const gchar *signal_name; 2239s # } _ExtendedGDBusSignalInfo; 2239s # 2239s # typedef struct 2239s # { 2239s # GDBusPropertyInfo parent_struct; 2239s # const gchar *hyphen_name; 2239s # guint use_gvariant : 1; 2239s # guint emits_changed_signal : 1; 2239s # } _ExtendedGDBusPropertyInfo; 2239s # 2239s # typedef struct 2239s # { 2239s # GDBusInterfaceInfo parent_struct; 2239s # const gchar *hyphen_name; 2239s # } _ExtendedGDBusInterfaceInfo; 2239s # 2239s # typedef struct 2239s # { 2239s # const _ExtendedGDBusPropertyInfo *info; 2239s # guint prop_id; 2239s # GValue orig_value; /* the value before the change */ 2239s # } ChangedProperty; 2239s # 2239s # static void 2239s # _changed_property_free (ChangedProperty *data) 2239s # { 2239s # g_value_unset (&data->orig_value); 2239s # g_free (data); 2239s # } 2239s # 2239s # static gboolean 2239s # _g_strv_equal0 (gchar **a, gchar **b) 2239s # { 2239s # gboolean ret = FALSE; 2239s # guint n; 2239s # if (a == NULL && b == NULL) 2239s # { 2239s # ret = TRUE; 2239s # goto out; 2239s # } 2239s # if (a == NULL || b == NULL) 2239s # goto out; 2239s # if (g_strv_length (a) != g_strv_length (b)) 2239s # goto out; 2239s # for (n = 0; a[n] != NULL; n++) 2239s # if (g_strcmp0 (a[n], b[n]) != 0) 2239s # goto out; 2239s # ret = TRUE; 2239s # out: 2239s # return ret; 2239s # } 2239s # 2239s # static gboolean 2239s # _g_variant_equal0 (GVariant *a, GVariant *b) 2239s # { 2239s # gboolean ret = FALSE; 2239s # if (a == NULL && b == NULL) 2239s # { 2239s # ret = TRUE; 2239s # goto out; 2239s # } 2239s # if (a == NULL || b == NULL) 2239s # goto out; 2239s # ret = g_variant_equal (a, b); 2239s # out: 2239s # return ret; 2239s # } 2239s # 2239s # G_GNUC_UNUSED static gboolean 2239s # _g_value_equal (const GValue *a, const GValue *b) 2239s # { 2239s # gboolean ret = FALSE; 2239s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2239s # switch (G_VALUE_TYPE (a)) 2239s # { 2239s # case G_TYPE_BOOLEAN: 2239s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2239s # break; 2239s # case G_TYPE_UCHAR: 2239s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2239s # break; 2239s # case G_TYPE_INT: 2239s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2239s # break; 2239s # case G_TYPE_UINT: 2239s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2239s # break; 2239s # case G_TYPE_INT64: 2239s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2239s # break; 2239s # case G_TYPE_UINT64: 2239s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2239s # break; 2239s # case G_TYPE_DOUBLE: 2239s # { 2239s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2239s # gdouble da = g_value_get_double (a); 2239s # gdouble db = g_value_get_double (b); 2239s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2239s # } 2239s # break; 2239s # case G_TYPE_STRING: 2239s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2239s # break; 2239s # case G_TYPE_VARIANT: 2239s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2239s # break; 2239s # default: 2239s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2239s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2239s # else 2239s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2239s # break; 2239s # } 2239s # return ret; 2239s # } 2239s # 2239s # /* ------------------------------------------------------------------------ 2239s # * Code for interface org.project.UsefulInterface 2239s # * ------------------------------------------------------------------------ 2239s # */ 2239s # 2239s # /** 2239s # * SECTION:OrgProjectUsefulInterface 2239s # * @title: OrgProjectUsefulInterface 2239s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 2239s # * 2239s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 2239s # */ 2239s # 2239s # enum 2239s # { 2239s # _ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL, 2239s # }; 2239s # 2239s # static unsigned _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[1] = { 0 }; 2239s # 2239s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_useful_interface_signal_info_simple_signal = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SimpleSignal", 2239s # NULL, 2239s # NULL 2239s # }, 2239s # "simple-signal" 2239s # }; 2239s # 2239s # static const GDBusSignalInfo * const _org_project_useful_interface_signal_info_pointers[] = 2239s # { 2239s # &_org_project_useful_interface_signal_info_simple_signal.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "org.project.UsefulInterface", 2239s # NULL, 2239s # (GDBusSignalInfo **) &_org_project_useful_interface_signal_info_pointers, 2239s # NULL, 2239s # NULL 2239s # }, 2239s # "org-project-useful-interface", 2239s # }; 2239s # 2239s # 2239s # /** 2239s # * org_project_useful_interface_interface_info: 2239s # * 2239s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 2239s # * 2239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2239s # */ 2239s # GDBusInterfaceInfo * 2239s # org_project_useful_interface_interface_info (void) 2239s # { 2239s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 2239s # } 2239s # 2239s # /** 2239s # * org_project_useful_interface_override_properties: 2239s # * @klass: The class structure for a #GObject derived class. 2239s # * @property_id_begin: The property id to assign to the first overridden property. 2239s # * 2239s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 2239s # * The properties are overridden in the order they are defined. 2239s # * 2239s # * Returns: The last property id. 2239s # */ 2239s # guint 2239s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2239s # { 2239s # return property_id_begin - 1; 2239s # } 2239s # 2239s # 2239s # inline static void 2239s # org_project_useful_interface_signal_marshal_simple_signal ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__VOID (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # 2239s # /** 2239s # * OrgProjectUsefulInterface: 2239s # * 2239s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 2239s # */ 2239s # 2239s # /** 2239s # * OrgProjectUsefulInterfaceIface: 2239s # * @parent_iface: The parent interface. 2239s # * @simple_signal: Handler for the #OrgProjectUsefulInterface::simple-signal signal. 2239s # * 2239s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 2239s # */ 2239s # 2239s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 2239s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 2239s # 2239s # static void 2239s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 2239s # { 2239s # /* GObject signals for received D-Bus signals: */ 2239s # /** 2239s # * OrgProjectUsefulInterface::simple-signal: 2239s # * @object: A #OrgProjectUsefulInterface. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL] = 2239s # g_signal_new ("simple-signal", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, simple_signal), 2239s # NULL, 2239s # NULL, 2239s # org_project_useful_interface_signal_marshal_simple_signal, 2239s # G_TYPE_NONE, 2239s # 0); 2239s # 2239s # } 2239s # 2239s # /** 2239s # * org_project_useful_interface_emit_simple_signal: 2239s # * @object: A #OrgProjectUsefulInterface. 2239s # * 2239s # * Emits the "SimpleSignal" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_useful_interface_emit_simple_signal ( 2239s # OrgProjectUsefulInterface *object) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL], 0); 2239s # } 2239s # 2239s # /* ------------------------------------------------------------------------ */ 2239s # 2239s # /** 2239s # * OrgProjectUsefulInterfaceProxy: 2239s # * 2239s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 2239s # */ 2239s # 2239s # /** 2239s # * OrgProjectUsefulInterfaceProxyClass: 2239s # * @parent_class: The parent class. 2239s # * 2239s # * Class structure for #OrgProjectUsefulInterfaceProxy. 2239s # */ 2239s # 2239s # struct _OrgProjectUsefulInterfaceProxyPrivate 2239s # { 2239s # GData *qdata; 2239s # }; 2239s # 2239s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 2239s # 2239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2239s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 2239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2239s # 2239s # #else 2239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 2239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 2239s # 2239s # #endif 2239s # static void 2239s # org_project_useful_interface_proxy_finalize (GObject *object) 2239s # { 2239s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 2239s # g_datalist_clear (&proxy->priv->qdata); 2239s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 2239s # } 2239s # 2239s # static void 2239s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2239s # guint prop_id G_GNUC_UNUSED, 2239s # GValue *value G_GNUC_UNUSED, 2239s # GParamSpec *pspec G_GNUC_UNUSED) 2239s # { 2239s # } 2239s # 2239s # static void 2239s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2239s # guint prop_id G_GNUC_UNUSED, 2239s # const GValue *value G_GNUC_UNUSED, 2239s # GParamSpec *pspec G_GNUC_UNUSED) 2239s # { 2239s # } 2239s # 2239s # static void 2239s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 2239s # const gchar *sender_name G_GNUC_UNUSED, 2239s # const gchar *signal_name, 2239s # GVariant *parameters) 2239s # { 2239s # _ExtendedGDBusSignalInfo *info; 2239s # GVariantIter iter; 2239s # GVariant *child; 2239s # GValue *paramv; 2239s # gsize num_params; 2239s # gsize n; 2239s # guint signal_id; 2239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 2239s # if (info == NULL) 2239s # return; 2239s # num_params = g_variant_n_children (parameters); 2239s # paramv = g_new0 (GValue, num_params + 1); 2239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2239s # g_value_set_object (¶mv[0], proxy); 2239s # g_variant_iter_init (&iter, parameters); 2239s # n = 1; 2239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2239s # { 2239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2239s # if (arg_info->use_gvariant) 2239s # { 2239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2239s # g_value_set_variant (¶mv[n], child); 2239s # n++; 2239s # } 2239s # else 2239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2239s # g_variant_unref (child); 2239s # } 2239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2239s # g_signal_emitv (paramv, signal_id, 0, NULL); 2239s # for (n = 0; n < num_params + 1; n++) 2239s # g_value_unset (¶mv[n]); 2239s # g_free (paramv); 2239s # } 2239s # 2239s # static void 2239s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 2239s # GVariant *changed_properties, 2239s # const gchar *const *invalidated_properties) 2239s # { 2239s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 2239s # guint n; 2239s # const gchar *key; 2239s # GVariantIter *iter; 2239s # _ExtendedGDBusPropertyInfo *info; 2239s # g_variant_get (changed_properties, "a{sv}", &iter); 2239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2239s # { 2239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 2239s # g_datalist_remove_data (&proxy->priv->qdata, key); 2239s # if (info != NULL) 2239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2239s # } 2239s # g_variant_iter_free (iter); 2239s # for (n = 0; invalidated_properties[n] != NULL; n++) 2239s # { 2239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 2239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2239s # if (info != NULL) 2239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2239s # } 2239s # } 2239s # 2239s # static void 2239s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 2239s # { 2239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2239s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 2239s # #else 2239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 2239s # #endif 2239s # 2239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 2239s # } 2239s # 2239s # static void 2239s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 2239s # { 2239s # GObjectClass *gobject_class; 2239s # GDBusProxyClass *proxy_class; 2239s # 2239s # gobject_class = G_OBJECT_CLASS (klass); 2239s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 2239s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 2239s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 2239s # 2239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2239s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 2239s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 2239s # 2239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2239s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 2239s # #endif 2239s # } 2239s # 2239s # static void 2239s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 2239s # { 2239s # } 2239s # 2239s # /** 2239s # * org_project_useful_interface_proxy_new: 2239s # * @connection: A #GDBusConnection. 2239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2239s # * @object_path: An object path. 2239s # * @cancellable: (nullable): A #GCancellable or %NULL. 2239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2239s # * @user_data: User data to pass to @callback. 2239s # * 2239s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 2239s # * 2239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2239s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 2239s # * 2239s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2239s # */ 2239s # void 2239s # org_project_useful_interface_proxy_new ( 2239s # GDBusConnection *connection, 2239s # GDBusProxyFlags flags, 2239s # const gchar *name, 2239s # const gchar *object_path, 2239s # GCancellable *cancellable, 2239s # GAsyncReadyCallback callback, 2239s # gpointer user_data) 2239s # { 2239s # g_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); 2239s # } 2239s # 2239s # /** 2239s # * org_project_useful_interface_proxy_new_finish: 2239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 2239s # * @error: Return location for error or %NULL 2239s # * 2239s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 2239s # * 2239s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2239s # */ 2239s # OrgProjectUsefulInterface * 2239s # org_project_useful_interface_proxy_new_finish ( 2239s # GAsyncResult *res, 2239s # GError **error) 2239s # { 2239s # GObject *ret; 2239s # GObject *source_object; 2239s # source_object = g_async_result_get_source_object (res); 2239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2239s # g_object_unref (source_object); 2239s # if (ret != NULL) 2239s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2239s # else 2239s # return NULL; 2239s # } 2239s # 2239s # /** 2239s # * org_project_useful_interface_proxy_new_sync: 2239s # * @connection: A #GDBusConnection. 2239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2239s # * @object_path: An object path. 2239s # * @cancellable: (nullable): A #GCancellable or %NULL. 2239s # * @error: Return location for error or %NULL 2239s # * 2239s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 2239s # * 2239s # * The calling thread is blocked until a reply is received. 2239s # * 2239s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 2239s # * 2239s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2239s # */ 2239s # OrgProjectUsefulInterface * 2239s # org_project_useful_interface_proxy_new_sync ( 2239s # GDBusConnection *connection, 2239s # GDBusProxyFlags flags, 2239s # const gchar *name, 2239s # const gchar *object_path, 2239s # GCancellable *cancellable, 2239s # GError **error) 2239s # { 2239s # GInitable *ret; 2239s # 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); 2239s # if (ret != NULL) 2239s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2239s # else 2239s # return NULL; 2239s # } 2239s # 2239s # 2239s # /** 2239s # * org_project_useful_interface_proxy_new_for_bus: 2239s # * @bus_type: A #GBusType. 2239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2239s # * @name: A bus name (well-known or unique). 2239s # * @object_path: An object path. 2239s # * @cancellable: (nullable): A #GCancellable or %NULL. 2239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2239s # * @user_data: User data to pass to @callback. 2239s # * 2239s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2239s # * 2239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2239s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 2239s # * 2239s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2239s # */ 2239s # void 2239s # org_project_useful_interface_proxy_new_for_bus ( 2239s # GBusType bus_type, 2239s # GDBusProxyFlags flags, 2239s # const gchar *name, 2239s # const gchar *object_path, 2239s # GCancellable *cancellable, 2239s # GAsyncReadyCallback callback, 2239s # gpointer user_data) 2239s # { 2239s # g_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); 2239s # } 2239s # 2239s # /** 2239s # * org_project_useful_interface_proxy_new_for_bus_finish: 2239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 2239s # * @error: Return location for error or %NULL 2239s # * 2239s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 2239s # * 2239s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2239s # */ 2239s # OrgProjectUsefulInterface * 2239s # org_project_useful_interface_proxy_new_for_bus_finish ( 2239s # GAsyncResult *res, 2239s # GError **error) 2239s # { 2239s # GObject *ret; 2239s # GObject *source_object; 2239s # source_object = g_async_result_get_source_object (res); 2239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2239s # g_object_unref (source_object); 2239s # if (ret != NULL) 2239s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2239s # else 2239s # return NULL; 2239s # } 2239s # 2239s # /** 2239s # * org_project_useful_interface_proxy_new_for_bus_sync: 2239s # * @bus_type: A #GBusType. 2239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2239s # * @name: A bus name (well-known or unique). 2239s # * @object_path: An object path. 2239s # * @cancellable: (nullable): A #GCancellable or %NULL. 2239s # * @error: Return location for error or %NULL 2239s # * 2239s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2239s # * 2239s # * The calling thread is blocked until a reply is received. 2239s # * 2239s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 2239s # * 2239s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 2239s # */ 2239s # OrgProjectUsefulInterface * 2239s # org_project_useful_interface_proxy_new_for_bus_sync ( 2239s # GBusType bus_type, 2239s # GDBusProxyFlags flags, 2239s # const gchar *name, 2239s # const gchar *object_path, 2239s # GCancellable *cancellable, 2239s # GError **error) 2239s # { 2239s # GInitable *ret; 2239s # 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); 2239s # if (ret != NULL) 2239s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 2239s # else 2239s # return NULL; 2239s # } 2239s # 2239s # 2239s # /* ------------------------------------------------------------------------ */ 2239s # 2239s # /** 2239s # * OrgProjectUsefulInterfaceSkeleton: 2239s # * 2239s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2239s # */ 2239s # 2239s # /** 2239s # * OrgProjectUsefulInterfaceSkeletonClass: 2239s # * @parent_class: The parent class. 2239s # * 2239s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 2239s # */ 2239s # 2239s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 2239s # { 2239s # GValue *properties; 2239s # GList *changed_properties; 2239s # GSource *changed_properties_idle_source; 2239s # GMainContext *context; 2239s # GMutex lock; 2239s # }; 2239s # 2239s # static void 2239s # _org_project_useful_interface_skeleton_handle_method_call ( 2239s # GDBusConnection *connection G_GNUC_UNUSED, 2239s # const gchar *sender G_GNUC_UNUSED, 2239s # const gchar *object_path G_GNUC_UNUSED, 2239s # const gchar *interface_name, 2239s # const gchar *method_name, 2239s # GVariant *parameters, 2239s # GDBusMethodInvocation *invocation, 2239s # gpointer user_data) 2239s # { 2239s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2239s # _ExtendedGDBusMethodInfo *info; 2239s # GVariantIter iter; 2239s # GVariant *child; 2239s # GValue *paramv; 2239s # gsize num_params; 2239s # guint num_extra; 2239s # gsize n; 2239s # guint signal_id; 2239s # GValue return_value = G_VALUE_INIT; 2239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2239s # g_assert (info != NULL); 2239s # num_params = g_variant_n_children (parameters); 2239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2239s # n = 0; 2239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2239s # g_value_set_object (¶mv[n++], skeleton); 2239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2239s # g_value_set_object (¶mv[n++], invocation); 2239s # if (info->pass_fdlist) 2239s # { 2239s # #ifdef G_OS_UNIX 2239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2239s # #else 2239s # g_assert_not_reached (); 2239s # #endif 2239s # } 2239s # g_variant_iter_init (&iter, parameters); 2239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2239s # { 2239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2239s # if (arg_info->use_gvariant) 2239s # { 2239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2239s # g_value_set_variant (¶mv[n], child); 2239s # n++; 2239s # } 2239s # else 2239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2239s # g_variant_unref (child); 2239s # } 2239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 2239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2239s # if (!g_value_get_boolean (&return_value)) 2239s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2239s # g_value_unset (&return_value); 2239s # for (n = 0; n < num_params + num_extra; n++) 2239s # g_value_unset (¶mv[n]); 2239s # g_free (paramv); 2239s # } 2239s # 2239s # static GVariant * 2239s # _org_project_useful_interface_skeleton_handle_get_property ( 2239s # GDBusConnection *connection G_GNUC_UNUSED, 2239s # const gchar *sender G_GNUC_UNUSED, 2239s # const gchar *object_path G_GNUC_UNUSED, 2239s # const gchar *interface_name G_GNUC_UNUSED, 2239s # const gchar *property_name, 2239s # GError **error, 2239s # gpointer user_data) 2239s # { 2239s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2239s # GValue value = G_VALUE_INIT; 2239s # GParamSpec *pspec; 2239s # _ExtendedGDBusPropertyInfo *info; 2239s # GVariant *ret; 2239s # ret = NULL; 2239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2239s # g_assert (info != NULL); 2239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2239s # if (pspec == NULL) 2239s # { 2239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2239s # } 2239s # else 2239s # { 2239s # g_value_init (&value, pspec->value_type); 2239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2239s # g_value_unset (&value); 2239s # } 2239s # return ret; 2239s # } 2239s # 2239s # static gboolean 2239s # _org_project_useful_interface_skeleton_handle_set_property ( 2239s # GDBusConnection *connection G_GNUC_UNUSED, 2239s # const gchar *sender G_GNUC_UNUSED, 2239s # const gchar *object_path G_GNUC_UNUSED, 2239s # const gchar *interface_name G_GNUC_UNUSED, 2239s # const gchar *property_name, 2239s # GVariant *variant, 2239s # GError **error, 2239s # gpointer user_data) 2239s # { 2239s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 2239s # GValue value = G_VALUE_INIT; 2239s # GParamSpec *pspec; 2239s # _ExtendedGDBusPropertyInfo *info; 2239s # gboolean ret; 2239s # ret = FALSE; 2239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 2239s # g_assert (info != NULL); 2239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2239s # if (pspec == NULL) 2239s # { 2239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2239s # } 2239s # else 2239s # { 2239s # if (info->use_gvariant) 2239s # g_value_set_variant (&value, variant); 2239s # else 2239s # g_dbus_gvariant_to_gvalue (variant, &value); 2239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2239s # g_value_unset (&value); 2239s # ret = TRUE; 2239s # } 2239s # return ret; 2239s # } 2239s # 2239s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 2239s # { 2239s # _org_project_useful_interface_skeleton_handle_method_call, 2239s # _org_project_useful_interface_skeleton_handle_get_property, 2239s # _org_project_useful_interface_skeleton_handle_set_property, 2239s # {NULL} 2239s # }; 2239s # 2239s # static GDBusInterfaceInfo * 2239s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2239s # { 2239s # return org_project_useful_interface_interface_info (); 2239s # } 2239s # 2239s # static GDBusInterfaceVTable * 2239s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2239s # { 2239s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 2239s # } 2239s # 2239s # static GVariant * 2239s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2239s # { 2239s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 2239s # 2239s # GVariantBuilder builder; 2239s # guint n; 2239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2239s # #else 2239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2239s # #endif 2239s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 2239s # goto out; 2239s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 2239s # { 2239s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 2239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2239s # { 2239s # GVariant *value; 2239s # 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); 2239s # if (value != NULL) 2239s # { 2239s # g_variant_take_ref (value); 2239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2239s # g_variant_unref (value); 2239s # } 2239s # } 2239s # } 2239s # out: 2239s # return g_variant_builder_end (&builder); 2239s # } 2239s # 2239s # static void 2239s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2239s # { 2239s # } 2239s # 2239s # static void 2239s # _org_project_useful_interface_on_signal_simple_signal ( 2239s # OrgProjectUsefulInterface *object) 2239s # { 2239s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", "SimpleSignal", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 2239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2239s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 2239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2239s # 2239s # #else 2239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 2239s # 2239s # #endif 2239s # static void 2239s # org_project_useful_interface_skeleton_finalize (GObject *object) 2239s # { 2239s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 2239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2239s # if (skeleton->priv->changed_properties_idle_source != NULL) 2239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2239s # g_main_context_unref (skeleton->priv->context); 2239s # g_mutex_clear (&skeleton->priv->lock); 2239s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 2239s # } 2239s # 2239s # static void 2239s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 2239s # { 2239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2239s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 2239s # #else 2239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 2239s # #endif 2239s # 2239s # g_mutex_init (&skeleton->priv->lock); 2239s # skeleton->priv->context = g_main_context_ref_thread_default (); 2239s # } 2239s # 2239s # static void 2239s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 2239s # { 2239s # GObjectClass *gobject_class; 2239s # GDBusInterfaceSkeletonClass *skeleton_class; 2239s # 2239s # gobject_class = G_OBJECT_CLASS (klass); 2239s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 2239s # 2239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2239s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 2239s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 2239s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 2239s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 2239s # 2239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2239s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 2239s # #endif 2239s # } 2239s # 2239s # static void 2239s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface) 2239s # { 2239s # iface->simple_signal = _org_project_useful_interface_on_signal_simple_signal; 2239s # } 2239s # 2239s # /** 2239s # * org_project_useful_interface_skeleton_new: 2239s # * 2239s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 2239s # * 2239s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 2239s # */ 2239s # OrgProjectUsefulInterface * 2239s # org_project_useful_interface_skeleton_new (void) 2239s # { 2239s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 2239s # } 2239s # 2239s # /* ------------------------------------------------------------------------ 2239s # * Code for interface org.project.OtherIface 2239s # * ------------------------------------------------------------------------ 2239s # */ 2239s # 2239s # /** 2239s # * SECTION:OrgProjectOtherIface 2239s # * @title: OrgProjectOtherIface 2239s # * @short_description: Generated C code for the org.project.OtherIface D-Bus interface 2239s # * 2239s # * This section contains code for working with the org.project.OtherIface D-Bus interface in C. 2239s # */ 2239s # 2239s # enum 2239s # { 2239s # _ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL, 2239s # }; 2239s # 2239s # static unsigned _ORG_PROJECT_OTHER_IFACE_SIGNALS[1] = { 0 }; 2239s # 2239s # /* ---- Introspection data for org.project.OtherIface ---- */ 2239s # 2239s # static const _ExtendedGDBusSignalInfo _org_project_other_iface_signal_info_simple_signal = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "SimpleSignal", 2239s # NULL, 2239s # NULL 2239s # }, 2239s # "simple-signal" 2239s # }; 2239s # 2239s # static const GDBusSignalInfo * const _org_project_other_iface_signal_info_pointers[] = 2239s # { 2239s # &_org_project_other_iface_signal_info_simple_signal.parent_struct, 2239s # NULL 2239s # }; 2239s # 2239s # static const _ExtendedGDBusInterfaceInfo _org_project_other_iface_interface_info = 2239s # { 2239s # { 2239s # -1, 2239s # (gchar *) "org.project.OtherIface", 2239s # NULL, 2239s # (GDBusSignalInfo **) &_org_project_other_iface_signal_info_pointers, 2239s # NULL, 2239s # NULL 2239s # }, 2239s # "org-project-other-iface", 2239s # }; 2239s # 2239s # 2239s # /** 2239s # * org_project_other_iface_interface_info: 2239s # * 2239s # * Gets a machine-readable description of the org.project.OtherIface D-Bus interface. 2239s # * 2239s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2239s # */ 2239s # GDBusInterfaceInfo * 2239s # org_project_other_iface_interface_info (void) 2239s # { 2239s # return (GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct; 2239s # } 2239s # 2239s # /** 2239s # * org_project_other_iface_override_properties: 2239s # * @klass: The class structure for a #GObject derived class. 2239s # * @property_id_begin: The property id to assign to the first overridden property. 2239s # * 2239s # * Overrides all #GObject properties in the #OrgProjectOtherIface interface for a concrete class. 2239s # * The properties are overridden in the order they are defined. 2239s # * 2239s # * Returns: The last property id. 2239s # */ 2239s # guint 2239s # org_project_other_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2239s # { 2239s # return property_id_begin - 1; 2239s # } 2239s # 2239s # 2239s # inline static void 2239s # org_project_other_iface_signal_marshal_simple_signal ( 2239s # GClosure *closure, 2239s # GValue *return_value, 2239s # unsigned int n_param_values, 2239s # const GValue *param_values, 2239s # void *invocation_hint, 2239s # void *marshal_data) 2239s # { 2239s # g_cclosure_marshal_VOID__VOID (closure, 2239s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2239s # } 2239s # 2239s # 2239s # /** 2239s # * OrgProjectOtherIface: 2239s # * 2239s # * Abstract interface type for the D-Bus interface org.project.OtherIface. 2239s # */ 2239s # 2239s # /** 2239s # * OrgProjectOtherIfaceIface: 2239s # * @parent_iface: The parent interface. 2239s # * @simple_signal: Handler for the #OrgProjectOtherIface::simple-signal signal. 2239s # * 2239s # * Virtual table for the D-Bus interface org.project.OtherIface. 2239s # */ 2239s # 2239s # typedef OrgProjectOtherIfaceIface OrgProjectOtherIfaceInterface; 2239s # G_DEFINE_INTERFACE (OrgProjectOtherIface, org_project_other_iface, G_TYPE_OBJECT) 2239s # 2239s # static void 2239s # org_project_other_iface_default_init (OrgProjectOtherIfaceIface *iface) 2239s # { 2239s # /* GObject signals for received D-Bus signals: */ 2239s # /** 2239s # * OrgProjectOtherIface::simple-signal: 2239s # * @object: A #OrgProjectOtherIface. 2239s # * 2239s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2239s # * 2239s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2239s # */ 2239s # _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL] = 2239s # g_signal_new ("simple-signal", 2239s # G_TYPE_FROM_INTERFACE (iface), 2239s # G_SIGNAL_RUN_LAST, 2239s # G_STRUCT_OFFSET (OrgProjectOtherIfaceIface, simple_signal), 2239s # NULL, 2239s # NULL, 2239s # org_project_other_iface_signal_marshal_simple_signal, 2239s # G_TYPE_NONE, 2239s # 0); 2239s # 2239s # } 2239s # 2239s # /** 2239s # * org_project_other_iface_emit_simple_signal: 2239s # * @object: A #OrgProjectOtherIface. 2239s # * 2239s # * Emits the "SimpleSignal" D-Bus signal. 2239s # */ 2239s # void 2239s # org_project_other_iface_emit_simple_signal ( 2239s # OrgProjectOtherIface *object) 2239s # { 2239s # g_signal_emit (object, _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL], 0); 2239s # } 2239s # 2239s # /* ------------------------------------------------------------------------ */ 2239s # 2239s # /** 2239s # * OrgProjectOtherIfaceProxy: 2239s # * 2239s # * The #OrgProjectOtherIfaceProxy structure contains only private data and should only be accessed using the provided API. 2239s # */ 2239s # 2239s # /** 2239s # * OrgProjectOtherIfaceProxyClass: 2239s # * @parent_class: The parent class. 2239s # * 2239s # * Class structure for #OrgProjectOtherIfaceProxy. 2239s # */ 2239s # 2239s # struct _OrgProjectOtherIfaceProxyPrivate 2239s # { 2239s # GData *qdata; 2239s # }; 2239s # 2239s # static void org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface); 2239s # 2239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 2239s # G_ADD_PRIVATE (OrgProjectOtherIfaceProxy) 2239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 2239s # 2239s # #else 2239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 2239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 2239s # 2239s # #endif 2239s # static void 2239s # org_project_other_iface_proxy_finalize (GObject *object) 2239s # { 2239s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (object); 2239s # g_datalist_clear (&proxy->priv->qdata); 2239s # G_OBJECT_CLASS (org_project_other_iface_proxy_parent_class)->finalize (object); 2239s # } 2239s # 2239s # static void 2239s # org_project_other_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2239s # guint prop_id G_GNUC_UNUSED, 2239s # GValue *value G_GNUC_UNUSED, 2239s # GParamSpec *pspec G_GNUC_UNUSED) 2239s # { 2239s # } 2239s # 2239s # static void 2239s # org_project_other_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2239s # guint prop_id G_GNUC_UNUSED, 2239s # const GValue *value G_GNUC_UNUSED, 2239s # GParamSpec *pspec G_GNUC_UNUSED) 2239s # { 2239s # } 2239s # 2239s # static void 2239s # org_project_other_iface_proxy_g_signal (GDBusProxy *proxy, 2239s # const gchar *sender_name G_GNUC_UNUSED, 2239s # const gchar *signal_name, 2239s # GVariant *parameters) 2239s # { 2239s # _ExtendedGDBusSignalInfo *info; 2239s # GVariantIter iter; 2239s # GVariant *child; 2239s # GValue *paramv; 2239s # gsize num_params; 2239s # gsize n; 2239s # guint signal_id; 2239s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, signal_name); 2239s # if (info == NULL) 2239s # return; 2239s # num_params = g_variant_n_children (parameters); 2239s # paramv = g_new0 (GValue, num_params + 1); 2239s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_IFACE); 2239s # g_value_set_object (¶mv[0], proxy); 2239s # g_variant_iter_init (&iter, parameters); 2239s # n = 1; 2239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2239s # { 2239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2239s # if (arg_info->use_gvariant) 2239s # { 2239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2239s # g_value_set_variant (¶mv[n], child); 2239s # n++; 2239s # } 2239s # else 2239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2239s # g_variant_unref (child); 2239s # } 2239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 2239s # g_signal_emitv (paramv, signal_id, 0, NULL); 2239s # for (n = 0; n < num_params + 1; n++) 2239s # g_value_unset (¶mv[n]); 2239s # g_free (paramv); 2239s # } 2239s # 2239s # static void 2239s # org_project_other_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2239s # GVariant *changed_properties, 2239s # const gchar *const *invalidated_properties) 2239s # { 2239s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (_proxy); 2239s # guint n; 2239s # const gchar *key; 2239s # GVariantIter *iter; 2239s # _ExtendedGDBusPropertyInfo *info; 2239s # g_variant_get (changed_properties, "a{sv}", &iter); 2239s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2239s # { 2239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, key); 2239s # g_datalist_remove_data (&proxy->priv->qdata, key); 2239s # if (info != NULL) 2239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2239s # } 2239s # g_variant_iter_free (iter); 2239s # for (n = 0; invalidated_properties[n] != NULL; n++) 2239s # { 2239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, invalidated_properties[n]); 2239s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2239s # if (info != NULL) 2239s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2239s # } 2239s # } 2239s # 2239s # static void 2239s # org_project_other_iface_proxy_init (OrgProjectOtherIfaceProxy *proxy) 2239s # { 2239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2239s # proxy->priv = org_project_other_iface_proxy_get_instance_private (proxy); 2239s # #else 2239s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, OrgProjectOtherIfaceProxyPrivate); 2239s # #endif 2239s # 2239s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_iface_interface_info ()); 2239s # } 2239s # 2239s # static void 2239s # org_project_other_iface_proxy_class_init (OrgProjectOtherIfaceProxyClass *klass) 2239s # { 2239s # GObjectClass *gobject_class; 2239s # GDBusProxyClass *proxy_class; 2239s # 2239s # gobject_class = G_OBJECT_CLASS (klass); 2239s # gobject_class->finalize = org_project_other_iface_proxy_finalize; 2239s # gobject_class->get_property = org_project_other_iface_proxy_get_property; 2239s # gobject_class->set_property = org_project_other_iface_proxy_set_property; 2239s # 2239s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2239s # proxy_class->g_signal = org_project_other_iface_proxy_g_signal; 2239s # proxy_class->g_properties_changed = org_project_other_iface_proxy_g_properties_changed; 2239s # 2239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2239s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceProxyPrivate)); 2239s # #endif 2239s # } 2239s # 2239s # static void 2239s # org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface G_GNUC_UNUSED) 2239s # { 2239s # } 2239s # 2239s # /** 2239s # * org_project_other_iface_proxy_new: 2239s # * @connection: A #GDBusConnection. 2239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2239s # * @object_path: An object path. 2239s # * @cancellable: (nullable): A #GCancellable or %NULL. 2239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2239s # * @user_data: User data to pass to @callback. 2239s # * 2239s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new() for more details. 2239s # * 2239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2239s # * You can then call org_project_other_iface_proxy_new_finish() to get the result of the operation. 2239s # * 2239s # * See org_project_other_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2239s # */ 2239s # void 2239s # org_project_other_iface_proxy_new ( 2239s # GDBusConnection *connection, 2239s # GDBusProxyFlags flags, 2239s # const gchar *name, 2239s # const gchar *object_path, 2239s # GCancellable *cancellable, 2239s # GAsyncReadyCallback callback, 2239s # gpointer user_data) 2239s # { 2239s # 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); 2239s # } 2239s # 2239s # /** 2239s # * org_project_other_iface_proxy_new_finish: 2239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new(). 2239s # * @error: Return location for error or %NULL 2239s # * 2239s # * Finishes an operation started with org_project_other_iface_proxy_new(). 2239s # * 2239s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 2239s # */ 2239s # OrgProjectOtherIface * 2239s # org_project_other_iface_proxy_new_finish ( 2239s # GAsyncResult *res, 2239s # GError **error) 2239s # { 2239s # GObject *ret; 2239s # GObject *source_object; 2239s # source_object = g_async_result_get_source_object (res); 2239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2239s # g_object_unref (source_object); 2239s # if (ret != NULL) 2239s # return ORG_PROJECT_OTHER_IFACE (ret); 2239s # else 2239s # return NULL; 2239s # } 2239s # 2239s # /** 2239s # * org_project_other_iface_proxy_new_sync: 2239s # * @connection: A #GDBusConnection. 2239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2239s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2239s # * @object_path: An object path. 2239s # * @cancellable: (nullable): A #GCancellable or %NULL. 2239s # * @error: Return location for error or %NULL 2239s # * 2239s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new_sync() for more details. 2239s # * 2239s # * The calling thread is blocked until a reply is received. 2239s # * 2239s # * See org_project_other_iface_proxy_new() for the asynchronous version of this constructor. 2239s # * 2239s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 2239s # */ 2239s # OrgProjectOtherIface * 2239s # org_project_other_iface_proxy_new_sync ( 2239s # GDBusConnection *connection, 2239s # GDBusProxyFlags flags, 2239s # const gchar *name, 2239s # const gchar *object_path, 2239s # GCancellable *cancellable, 2239s # GError **error) 2239s # { 2239s # GInitable *ret; 2239s # 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); 2239s # if (ret != NULL) 2239s # return ORG_PROJECT_OTHER_IFACE (ret); 2239s # else 2239s # return NULL; 2239s # } 2239s # 2239s # 2239s # /** 2239s # * org_project_other_iface_proxy_new_for_bus: 2239s # * @bus_type: A #GBusType. 2239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2239s # * @name: A bus name (well-known or unique). 2239s # * @object_path: An object path. 2239s # * @cancellable: (nullable): A #GCancellable or %NULL. 2239s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2239s # * @user_data: User data to pass to @callback. 2239s # * 2239s # * Like org_project_other_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2239s # * 2239s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2239s # * You can then call org_project_other_iface_proxy_new_for_bus_finish() to get the result of the operation. 2239s # * 2239s # * See org_project_other_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2239s # */ 2239s # void 2239s # org_project_other_iface_proxy_new_for_bus ( 2239s # GBusType bus_type, 2239s # GDBusProxyFlags flags, 2239s # const gchar *name, 2239s # const gchar *object_path, 2239s # GCancellable *cancellable, 2239s # GAsyncReadyCallback callback, 2239s # gpointer user_data) 2239s # { 2239s # 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); 2239s # } 2239s # 2239s # /** 2239s # * org_project_other_iface_proxy_new_for_bus_finish: 2239s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new_for_bus(). 2239s # * @error: Return location for error or %NULL 2239s # * 2239s # * Finishes an operation started with org_project_other_iface_proxy_new_for_bus(). 2239s # * 2239s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 2239s # */ 2239s # OrgProjectOtherIface * 2239s # org_project_other_iface_proxy_new_for_bus_finish ( 2239s # GAsyncResult *res, 2239s # GError **error) 2239s # { 2239s # GObject *ret; 2239s # GObject *source_object; 2239s # source_object = g_async_result_get_source_object (res); 2239s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2239s # g_object_unref (source_object); 2239s # if (ret != NULL) 2239s # return ORG_PROJECT_OTHER_IFACE (ret); 2239s # else 2239s # return NULL; 2239s # } 2239s # 2239s # /** 2239s # * org_project_other_iface_proxy_new_for_bus_sync: 2239s # * @bus_type: A #GBusType. 2239s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2239s # * @name: A bus name (well-known or unique). 2239s # * @object_path: An object path. 2239s # * @cancellable: (nullable): A #GCancellable or %NULL. 2239s # * @error: Return location for error or %NULL 2239s # * 2239s # * Like org_project_other_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2239s # * 2239s # * The calling thread is blocked until a reply is received. 2239s # * 2239s # * See org_project_other_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2239s # * 2239s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 2239s # */ 2239s # OrgProjectOtherIface * 2239s # org_project_other_iface_proxy_new_for_bus_sync ( 2239s # GBusType bus_type, 2239s # GDBusProxyFlags flags, 2239s # const gchar *name, 2239s # const gchar *object_path, 2239s # GCancellable *cancellable, 2239s # GError **error) 2239s # { 2239s # GInitable *ret; 2239s # 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); 2239s # if (ret != NULL) 2239s # return ORG_PROJECT_OTHER_IFACE (ret); 2239s # else 2239s # return NULL; 2239s # } 2239s # 2239s # 2239s # /* ------------------------------------------------------------------------ */ 2239s # 2239s # /** 2239s # * OrgProjectOtherIfaceSkeleton: 2239s # * 2239s # * The #OrgProjectOtherIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2239s # */ 2239s # 2239s # /** 2239s # * OrgProjectOtherIfaceSkeletonClass: 2239s # * @parent_class: The parent class. 2239s # * 2239s # * Class structure for #OrgProjectOtherIfaceSkeleton. 2239s # */ 2239s # 2239s # struct _OrgProjectOtherIfaceSkeletonPrivate 2239s # { 2239s # GValue *properties; 2239s # GList *changed_properties; 2239s # GSource *changed_properties_idle_source; 2239s # GMainContext *context; 2239s # GMutex lock; 2239s # }; 2239s # 2239s # static void 2239s # _org_project_other_iface_skeleton_handle_method_call ( 2239s # GDBusConnection *connection G_GNUC_UNUSED, 2239s # const gchar *sender G_GNUC_UNUSED, 2239s # const gchar *object_path G_GNUC_UNUSED, 2239s # const gchar *interface_name, 2239s # const gchar *method_name, 2239s # GVariant *parameters, 2239s # GDBusMethodInvocation *invocation, 2239s # gpointer user_data) 2239s # { 2239s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 2239s # _ExtendedGDBusMethodInfo *info; 2239s # GVariantIter iter; 2239s # GVariant *child; 2239s # GValue *paramv; 2239s # gsize num_params; 2239s # guint num_extra; 2239s # gsize n; 2239s # guint signal_id; 2239s # GValue return_value = G_VALUE_INIT; 2239s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2239s # g_assert (info != NULL); 2239s # num_params = g_variant_n_children (parameters); 2239s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2239s # n = 0; 2239s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_IFACE); 2239s # g_value_set_object (¶mv[n++], skeleton); 2239s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2239s # g_value_set_object (¶mv[n++], invocation); 2239s # if (info->pass_fdlist) 2239s # { 2239s # #ifdef G_OS_UNIX 2239s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2239s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2239s # #else 2239s # g_assert_not_reached (); 2239s # #endif 2239s # } 2239s # g_variant_iter_init (&iter, parameters); 2239s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2239s # { 2239s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2239s # if (arg_info->use_gvariant) 2239s # { 2239s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2239s # g_value_set_variant (¶mv[n], child); 2239s # n++; 2239s # } 2239s # else 2239s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2239s # g_variant_unref (child); 2239s # } 2239s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 2239s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2239s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2239s # if (!g_value_get_boolean (&return_value)) 2239s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2239s # g_value_unset (&return_value); 2239s # for (n = 0; n < num_params + num_extra; n++) 2239s # g_value_unset (¶mv[n]); 2239s # g_free (paramv); 2239s # } 2239s # 2239s # static GVariant * 2239s # _org_project_other_iface_skeleton_handle_get_property ( 2239s # GDBusConnection *connection G_GNUC_UNUSED, 2239s # const gchar *sender G_GNUC_UNUSED, 2239s # const gchar *object_path G_GNUC_UNUSED, 2239s # const gchar *interface_name G_GNUC_UNUSED, 2239s # const gchar *property_name, 2239s # GError **error, 2239s # gpointer user_data) 2239s # { 2239s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 2239s # GValue value = G_VALUE_INIT; 2239s # GParamSpec *pspec; 2239s # _ExtendedGDBusPropertyInfo *info; 2239s # GVariant *ret; 2239s # ret = NULL; 2239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 2239s # g_assert (info != NULL); 2239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2239s # if (pspec == NULL) 2239s # { 2239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2239s # } 2239s # else 2239s # { 2239s # g_value_init (&value, pspec->value_type); 2239s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2239s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2239s # g_value_unset (&value); 2239s # } 2239s # return ret; 2239s # } 2239s # 2239s # static gboolean 2239s # _org_project_other_iface_skeleton_handle_set_property ( 2239s # GDBusConnection *connection G_GNUC_UNUSED, 2239s # const gchar *sender G_GNUC_UNUSED, 2239s # const gchar *object_path G_GNUC_UNUSED, 2239s # const gchar *interface_name G_GNUC_UNUSED, 2239s # const gchar *property_name, 2239s # GVariant *variant, 2239s # GError **error, 2239s # gpointer user_data) 2239s # { 2239s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 2239s # GValue value = G_VALUE_INIT; 2239s # GParamSpec *pspec; 2239s # _ExtendedGDBusPropertyInfo *info; 2239s # gboolean ret; 2239s # ret = FALSE; 2239s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 2239s # g_assert (info != NULL); 2239s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2239s # if (pspec == NULL) 2239s # { 2239s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2239s # } 2239s # else 2239s # { 2239s # if (info->use_gvariant) 2239s # g_value_set_variant (&value, variant); 2239s # else 2239s # g_dbus_gvariant_to_gvalue (variant, &value); 2239s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2239s # g_value_unset (&value); 2239s # ret = TRUE; 2239s # } 2239s # return ret; 2239s # } 2239s # 2239s # static const GDBusInterfaceVTable _org_project_other_iface_skeleton_vtable = 2239s # { 2239s # _org_project_other_iface_skeleton_handle_method_call, 2239s # _org_project_other_iface_skeleton_handle_get_property, 2239s # _org_project_other_iface_skeleton_handle_set_property, 2239s # {NULL} 2239s # }; 2239s # 2239s # static GDBusInterfaceInfo * 2239s # org_project_other_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2239s # { 2239s # return org_project_other_iface_interface_info (); 2239s # } 2239s # 2239s # static GDBusInterfaceVTable * 2239s # org_project_other_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2239s # { 2239s # return (GDBusInterfaceVTable *) &_org_project_other_iface_skeleton_vtable; 2239s # } 2239s # 2239s # static GVariant * 2239s # org_project_other_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2239s # { 2239s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (_skeleton); 2239s # 2239s # GVariantBuilder builder; 2239s # guint n; 2239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2239s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2239s # #else 2239s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2239s # #endif 2239s # if (_org_project_other_iface_interface_info.parent_struct.properties == NULL) 2239s # goto out; 2239s # for (n = 0; _org_project_other_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2239s # { 2239s # GDBusPropertyInfo *info = _org_project_other_iface_interface_info.parent_struct.properties[n]; 2239s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2239s # { 2239s # GVariant *value; 2239s # 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); 2239s # if (value != NULL) 2239s # { 2239s # g_variant_take_ref (value); 2239s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2239s # g_variant_unref (value); 2239s # } 2239s # } 2239s # } 2239s # out: 2239s # return g_variant_builder_end (&builder); 2239s # } 2239s # 2239s # static void 2239s # org_project_other_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2239s # { 2239s # } 2239s # 2239s # static void 2239s # _org_project_other_iface_on_signal_simple_signal ( 2239s # OrgProjectOtherIface *object) 2239s # { 2239s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 2239s # 2239s # GList *connections, *l; 2239s # GVariant *signal_variant; 2239s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2239s # 2239s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2239s # for (l = connections; l != NULL; l = l->next) 2239s # { 2239s # GDBusConnection *connection = l->data; 2239s # g_dbus_connection_emit_signal (connection, 2239s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherIface", "SimpleSignal", 2239s # signal_variant, NULL); 2239s # } 2239s # g_variant_unref (signal_variant); 2239s # g_list_free_full (connections, g_object_unref); 2239s # } 2239s # 2239s # static void org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface); 2239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2239s # G_ADD_PRIVATE (OrgProjectOtherIfaceSkeleton) 2239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 2239s # 2239s # #else 2239s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2239s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 2239s # 2239s # #endif 2239s # static void 2239s # org_project_other_iface_skeleton_finalize (GObject *object) 2239s # { 2239s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 2239s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2239s # if (skeleton->priv->changed_properties_idle_source != NULL) 2239s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2239s # g_main_context_unref (skeleton->priv->context); 2239s # g_mutex_clear (&skeleton->priv->lock); 2239s # G_OBJECT_CLASS (org_project_other_iface_skeleton_parent_class)->finalize (object); 2239s # } 2239s # 2239s # static void 2239s # org_project_other_iface_skeleton_init (OrgProjectOtherIfaceSkeleton *skeleton) 2239s # { 2239s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2239s # skeleton->priv = org_project_other_iface_skeleton_get_instance_private (skeleton); 2239s # #else 2239s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, OrgProjectOtherIfaceSkeletonPrivate); 2239s # #endif 2239s # 2239s # g_mutex_init (&skeleton->priv->lock); 2239s # skeleton->priv->context = g_main_context_ref_thread_default (); 2239s # } 2239s # 2239s # static void 2239s # org_project_other_iface_skeleton_class_init (OrgProjectOtherIfaceSkeletonClass *klass) 2239s # { 2239s # GObjectClass *gobject_class; 2239s # GDBusInterfaceSkeletonClass *skeleton_class; 2239s # 2239s # gobject_class = G_OBJECT_CLASS (klass); 2239s # gobject_class->finalize = org_project_other_iface_skeleton_finalize; 2239s # 2239s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2239s # skeleton_class->get_info = org_project_other_iface_skeleton_dbus_interface_get_info; 2239s # skeleton_class->get_properties = org_project_other_iface_skeleton_dbus_interface_get_properties; 2239s # skeleton_class->flush = org_project_other_iface_skeleton_dbus_interface_flush; 2239s # skeleton_class->get_vtable = org_project_other_iface_skeleton_dbus_interface_get_vtable; 2239s # 2239s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2239s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceSkeletonPrivate)); 2239s # #endif 2239s # } 2239s # 2239s # static void 2239s # org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface) 2239s # { 2239s # iface->simple_signal = _org_project_other_iface_on_signal_simple_signal; 2239s # } 2239s # 2239s # /** 2239s # * org_project_other_iface_skeleton_new: 2239s # * 2239s # * Creates a skeleton object for the D-Bus interface org.project.OtherIface. 2239s # * 2239s # * Returns: (transfer full) (type OrgProjectOtherIfaceSkeleton): The skeleton object. 2239s # */ 2239s # OrgProjectOtherIface * 2239s # org_project_other_iface_skeleton_new (void) 2239s # { 2239s # return ORG_PROJECT_OTHER_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, NULL)); 2239s # } 2239s # Error: 2240s ok 22 __main__.TestCodegen.test_generate_signals_marshaller_simple_signal 2240s # gdbus-codegen: /usr/bin/gdbus-codegen 2240s # tmpdir: /tmp/tmpb25m521i 2240s # /tmp/tmpb25m521i/tmp4w9p69hk.xml: 2240s # 2240s # 2240s # 2240s # 2240s # 2240s # 2240s # 2240s # 2240s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb25m521i/tmp4w9p69hk.xml', '--output', '-', '--body'] 2240s # Return code: 0 2240s # Output: 2240s # /* 2240s # * This file is generated by gdbus-codegen, do not modify it. 2240s # * 2240s # * The license of this code is the same as for the D-Bus interface description 2240s # * it was derived from. Note that it links to GLib, so must comply with the 2240s # * LGPL linking clauses. 2240s # */ 2240s # 2240s # #ifdef HAVE_CONFIG_H 2240s # # include "config.h" 2240s # #endif 2240s # 2240s # #include 2240s # #ifdef G_OS_UNIX 2240s # # include 2240s # #endif 2240s # 2240s # #ifdef G_ENABLE_DEBUG 2240s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2240s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2240s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2240s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2240s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2240s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2240s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2240s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2240s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2240s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2240s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2240s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2240s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2240s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2240s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2240s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2240s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2240s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2240s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2240s # #else /* !G_ENABLE_DEBUG */ 2240s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2240s # * Do not access GValues directly in your code. Instead, use the 2240s # * g_value_get_*() functions 2240s # */ 2240s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2240s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2240s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2240s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2240s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2240s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2240s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2240s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2240s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2240s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2240s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2240s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2240s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2240s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2240s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2240s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2240s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2240s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2240s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2240s # #endif /* !G_ENABLE_DEBUG */ 2240s # 2240s # typedef struct 2240s # { 2240s # GDBusArgInfo parent_struct; 2240s # gboolean use_gvariant; 2240s # } _ExtendedGDBusArgInfo; 2240s # 2240s # typedef struct 2240s # { 2240s # GDBusMethodInfo parent_struct; 2240s # const gchar *signal_name; 2240s # gboolean pass_fdlist; 2240s # } _ExtendedGDBusMethodInfo; 2240s # 2240s # typedef struct 2240s # { 2240s # GDBusSignalInfo parent_struct; 2240s # const gchar *signal_name; 2240s # } _ExtendedGDBusSignalInfo; 2240s # 2240s # typedef struct 2240s # { 2240s # GDBusPropertyInfo parent_struct; 2240s # const gchar *hyphen_name; 2240s # guint use_gvariant : 1; 2240s # guint emits_changed_signal : 1; 2240s # } _ExtendedGDBusPropertyInfo; 2240s # 2240s # typedef struct 2240s # { 2240s # GDBusInterfaceInfo parent_struct; 2240s # const gchar *hyphen_name; 2240s # } _ExtendedGDBusInterfaceInfo; 2240s # 2240s # typedef struct 2240s # { 2240s # const _ExtendedGDBusPropertyInfo *info; 2240s # guint prop_id; 2240s # GValue orig_value; /* the value before the change */ 2240s # } ChangedProperty; 2240s # 2240s # static void 2240s # _changed_property_free (ChangedProperty *data) 2240s # { 2240s # g_value_unset (&data->orig_value); 2240s # g_free (data); 2240s # } 2240s # 2240s # static gboolean 2240s # _g_strv_equal0 (gchar **a, gchar **b) 2240s # { 2240s # gboolean ret = FALSE; 2240s # guint n; 2240s # if (a == NULL && b == NULL) 2240s # { 2240s # ret = TRUE; 2240s # goto out; 2240s # } 2240s # if (a == NULL || b == NULL) 2240s # goto out; 2240s # if (g_strv_length (a) != g_strv_length (b)) 2240s # goto out; 2240s # for (n = 0; a[n] != NULL; n++) 2240s # if (g_strcmp0 (a[n], b[n]) != 0) 2240s # goto out; 2240s # ret = TRUE; 2240s # out: 2240s # return ret; 2240s # } 2240s # 2240s # static gboolean 2240s # _g_variant_equal0 (GVariant *a, GVariant *b) 2240s # { 2240s # gboolean ret = FALSE; 2240s # if (a == NULL && b == NULL) 2240s # { 2240s # ret = TRUE; 2240s # goto out; 2240s # } 2240s # if (a == NULL || b == NULL) 2240s # goto out; 2240s # ret = g_variant_equal (a, b); 2240s # out: 2240s # return ret; 2240s # } 2240s # 2240s # G_GNUC_UNUSED static gboolean 2240s # _g_value_equal (const GValue *a, const GValue *b) 2240s # { 2240s # gboolean ret = FALSE; 2240s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2240s # switch (G_VALUE_TYPE (a)) 2240s # { 2240s # case G_TYPE_BOOLEAN: 2240s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2240s # break; 2240s # case G_TYPE_UCHAR: 2240s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2240s # break; 2240s # case G_TYPE_INT: 2240s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2240s # break; 2240s # case G_TYPE_UINT: 2240s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2240s # break; 2240s # case G_TYPE_INT64: 2240s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2240s # break; 2240s # case G_TYPE_UINT64: 2240s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2240s # break; 2240s # case G_TYPE_DOUBLE: 2240s # { 2240s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2240s # gdouble da = g_value_get_double (a); 2240s # gdouble db = g_value_get_double (b); 2240s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2240s # } 2240s # break; 2240s # case G_TYPE_STRING: 2240s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2240s # break; 2240s # case G_TYPE_VARIANT: 2240s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2240s # break; 2240s # default: 2240s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2240s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2240s # else 2240s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2240s # break; 2240s # } 2240s # return ret; 2240s # } 2240s # 2240s # /* ------------------------------------------------------------------------ 2240s # * Code for interface org.project.SignalingIface 2240s # * ------------------------------------------------------------------------ 2240s # */ 2240s # 2240s # /** 2240s # * SECTION:OrgProjectSignalingIface 2240s # * @title: OrgProjectSignalingIface 2240s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2240s # * 2240s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2240s # */ 2240s # 2240s # enum 2240s # { 2240s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2240s # }; 2240s # 2240s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 2240s # 2240s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2240s # 2240s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2240s # { 2240s # { 2240s # -1, 2240s # (gchar *) "SimpleSignal", 2240s # NULL, 2240s # NULL 2240s # }, 2240s # "simple-signal" 2240s # }; 2240s # 2240s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2240s # { 2240s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2240s # NULL 2240s # }; 2240s # 2240s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2240s # { 2240s # { 2240s # -1, 2240s # (gchar *) "org.project.SignalingIface", 2240s # NULL, 2240s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2240s # NULL, 2240s # NULL 2240s # }, 2240s # "org-project-signaling-iface", 2240s # }; 2240s # 2240s # 2240s # /** 2240s # * org_project_signaling_iface_interface_info: 2240s # * 2240s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2240s # * 2240s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2240s # */ 2240s # GDBusInterfaceInfo * 2240s # org_project_signaling_iface_interface_info (void) 2240s # { 2240s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2240s # } 2240s # 2240s # /** 2240s # * org_project_signaling_iface_override_properties: 2240s # * @klass: The class structure for a #GObject derived class. 2240s # * @property_id_begin: The property id to assign to the first overridden property. 2240s # * 2240s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2240s # * The properties are overridden in the order they are defined. 2240s # * 2240s # * Returns: The last property id. 2240s # */ 2240s # guint 2240s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2240s # { 2240s # return property_id_begin - 1; 2240s # } 2240s # 2240s # 2240s # inline static void 2240s # org_project_signaling_iface_signal_marshal_simple_signal ( 2240s # GClosure *closure, 2240s # GValue *return_value, 2240s # unsigned int n_param_values, 2240s # const GValue *param_values, 2240s # void *invocation_hint, 2240s # void *marshal_data) 2240s # { 2240s # g_cclosure_marshal_VOID__VOID (closure, 2240s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2240s # } 2240s # 2240s # 2240s # /** 2240s # * OrgProjectSignalingIface: 2240s # * 2240s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2240s # */ 2240s # 2240s # /** 2240s # * OrgProjectSignalingIfaceIface: 2240s # * @parent_iface: The parent interface. 2240s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2240s # * 2240s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2240s # */ 2240s # 2240s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2240s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2240s # 2240s # static void 2240s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2240s # { 2240s # /* GObject signals for received D-Bus signals: */ 2240s # /** 2240s # * OrgProjectSignalingIface::simple-signal: 2240s # * @object: A #OrgProjectSignalingIface. 2240s # * 2240s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2240s # * 2240s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2240s # */ 2240s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2240s # g_signal_new ("simple-signal", 2240s # G_TYPE_FROM_INTERFACE (iface), 2240s # G_SIGNAL_RUN_LAST, 2240s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2240s # NULL, 2240s # NULL, 2240s # org_project_signaling_iface_signal_marshal_simple_signal, 2240s # G_TYPE_NONE, 2240s # 0); 2240s # 2240s # } 2240s # 2240s # /** 2240s # * org_project_signaling_iface_emit_simple_signal: 2240s # * @object: A #OrgProjectSignalingIface. 2240s # * 2240s # * Emits the "SimpleSignal" D-Bus signal. 2240s # */ 2240s # void 2240s # org_project_signaling_iface_emit_simple_signal ( 2240s # OrgProjectSignalingIface *object) 2240s # { 2240s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2240s # } 2240s # 2240s # /* ------------------------------------------------------------------------ */ 2240s # 2240s # /** 2240s # * OrgProjectSignalingIfaceProxy: 2240s # * 2240s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2240s # */ 2240s # 2240s # /** 2240s # * OrgProjectSignalingIfaceProxyClass: 2240s # * @parent_class: The parent class. 2240s # * 2240s # * Class structure for #OrgProjectSignalingIfaceProxy. 2240s # */ 2240s # 2240s # struct _OrgProjectSignalingIfaceProxyPrivate 2240s # { 2240s # GData *qdata; 2240s # }; 2240s # 2240s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2240s # 2240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2240s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2240s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2240s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2240s # 2240s # #else 2240s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2240s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2240s # 2240s # #endif 2240s # static void 2240s # org_project_signaling_iface_proxy_finalize (GObject *object) 2240s # { 2240s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2240s # g_datalist_clear (&proxy->priv->qdata); 2240s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2240s # } 2240s # 2240s # static void 2240s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2240s # guint prop_id G_GNUC_UNUSED, 2240s # GValue *value G_GNUC_UNUSED, 2240s # GParamSpec *pspec G_GNUC_UNUSED) 2240s # { 2240s # } 2240s # 2240s # static void 2240s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2240s # guint prop_id G_GNUC_UNUSED, 2240s # const GValue *value G_GNUC_UNUSED, 2240s # GParamSpec *pspec G_GNUC_UNUSED) 2240s # { 2240s # } 2240s # 2240s # static void 2240s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2240s # const gchar *sender_name G_GNUC_UNUSED, 2240s # const gchar *signal_name, 2240s # GVariant *parameters) 2240s # { 2240s # _ExtendedGDBusSignalInfo *info; 2240s # GVariantIter iter; 2240s # GVariant *child; 2240s # GValue *paramv; 2240s # gsize num_params; 2240s # gsize n; 2240s # guint signal_id; 2240s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2240s # if (info == NULL) 2240s # return; 2240s # num_params = g_variant_n_children (parameters); 2240s # paramv = g_new0 (GValue, num_params + 1); 2240s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2240s # g_value_set_object (¶mv[0], proxy); 2240s # g_variant_iter_init (&iter, parameters); 2240s # n = 1; 2240s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2240s # { 2240s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2240s # if (arg_info->use_gvariant) 2240s # { 2240s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2240s # g_value_set_variant (¶mv[n], child); 2240s # n++; 2240s # } 2240s # else 2240s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2240s # g_variant_unref (child); 2240s # } 2240s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2240s # g_signal_emitv (paramv, signal_id, 0, NULL); 2240s # for (n = 0; n < num_params + 1; n++) 2240s # g_value_unset (¶mv[n]); 2240s # g_free (paramv); 2240s # } 2240s # 2240s # static void 2240s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2240s # GVariant *changed_properties, 2240s # const gchar *const *invalidated_properties) 2240s # { 2240s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2240s # guint n; 2240s # const gchar *key; 2240s # GVariantIter *iter; 2240s # _ExtendedGDBusPropertyInfo *info; 2240s # g_variant_get (changed_properties, "a{sv}", &iter); 2240s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2240s # { 2240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2240s # g_datalist_remove_data (&proxy->priv->qdata, key); 2240s # if (info != NULL) 2240s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2240s # } 2240s # g_variant_iter_free (iter); 2240s # for (n = 0; invalidated_properties[n] != NULL; n++) 2240s # { 2240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2240s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2240s # if (info != NULL) 2240s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2240s # } 2240s # } 2240s # 2240s # static void 2240s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2240s # { 2240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2240s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2240s # #else 2240s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2240s # #endif 2240s # 2240s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2240s # } 2240s # 2240s # static void 2240s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2240s # { 2240s # GObjectClass *gobject_class; 2240s # GDBusProxyClass *proxy_class; 2240s # 2240s # gobject_class = G_OBJECT_CLASS (klass); 2240s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2240s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2240s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2240s # 2240s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2240s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2240s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2240s # 2240s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2240s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2240s # #endif 2240s # } 2240s # 2240s # static void 2240s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2240s # { 2240s # } 2240s # 2240s # /** 2240s # * org_project_signaling_iface_proxy_new: 2240s # * @connection: A #GDBusConnection. 2240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2240s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2240s # * @object_path: An object path. 2240s # * @cancellable: (nullable): A #GCancellable or %NULL. 2240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2240s # * @user_data: User data to pass to @callback. 2240s # * 2240s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2240s # * 2240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2240s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2240s # * 2240s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2240s # */ 2240s # void 2240s # org_project_signaling_iface_proxy_new ( 2240s # GDBusConnection *connection, 2240s # GDBusProxyFlags flags, 2240s # const gchar *name, 2240s # const gchar *object_path, 2240s # GCancellable *cancellable, 2240s # GAsyncReadyCallback callback, 2240s # gpointer user_data) 2240s # { 2240s # 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); 2240s # } 2240s # 2240s # /** 2240s # * org_project_signaling_iface_proxy_new_finish: 2240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2240s # * @error: Return location for error or %NULL 2240s # * 2240s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2240s # * 2240s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2240s # */ 2240s # OrgProjectSignalingIface * 2240s # org_project_signaling_iface_proxy_new_finish ( 2240s # GAsyncResult *res, 2240s # GError **error) 2240s # { 2240s # GObject *ret; 2240s # GObject *source_object; 2240s # source_object = g_async_result_get_source_object (res); 2240s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2240s # g_object_unref (source_object); 2240s # if (ret != NULL) 2240s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2240s # else 2240s # return NULL; 2240s # } 2240s # 2240s # /** 2240s # * org_project_signaling_iface_proxy_new_sync: 2240s # * @connection: A #GDBusConnection. 2240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2240s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2240s # * @object_path: An object path. 2240s # * @cancellable: (nullable): A #GCancellable or %NULL. 2240s # * @error: Return location for error or %NULL 2240s # * 2240s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2240s # * 2240s # * The calling thread is blocked until a reply is received. 2240s # * 2240s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2240s # * 2240s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2240s # */ 2240s # OrgProjectSignalingIface * 2240s # org_project_signaling_iface_proxy_new_sync ( 2240s # GDBusConnection *connection, 2240s # GDBusProxyFlags flags, 2240s # const gchar *name, 2240s # const gchar *object_path, 2240s # GCancellable *cancellable, 2240s # GError **error) 2240s # { 2240s # GInitable *ret; 2240s # 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); 2240s # if (ret != NULL) 2240s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2240s # else 2240s # return NULL; 2240s # } 2240s # 2240s # 2240s # /** 2240s # * org_project_signaling_iface_proxy_new_for_bus: 2240s # * @bus_type: A #GBusType. 2240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2240s # * @name: A bus name (well-known or unique). 2240s # * @object_path: An object path. 2240s # * @cancellable: (nullable): A #GCancellable or %NULL. 2240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2240s # * @user_data: User data to pass to @callback. 2240s # * 2240s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2240s # * 2240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2240s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2240s # * 2240s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2240s # */ 2240s # void 2240s # org_project_signaling_iface_proxy_new_for_bus ( 2240s # GBusType bus_type, 2240s # GDBusProxyFlags flags, 2240s # const gchar *name, 2240s # const gchar *object_path, 2240s # GCancellable *cancellable, 2240s # GAsyncReadyCallback callback, 2240s # gpointer user_data) 2240s # { 2240s # 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); 2240s # } 2240s # 2240s # /** 2240s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2240s # * @error: Return location for error or %NULL 2240s # * 2240s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2240s # * 2240s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2240s # */ 2240s # OrgProjectSignalingIface * 2240s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2240s # GAsyncResult *res, 2240s # GError **error) 2240s # { 2240s # GObject *ret; 2240s # GObject *source_object; 2240s # source_object = g_async_result_get_source_object (res); 2240s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2240s # g_object_unref (source_object); 2240s # if (ret != NULL) 2240s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2240s # else 2240s # return NULL; 2240s # } 2240s # 2240s # /** 2240s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2240s # * @bus_type: A #GBusType. 2240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2240s # * @name: A bus name (well-known or unique). 2240s # * @object_path: An object path. 2240s # * @cancellable: (nullable): A #GCancellable or %NULL. 2240s # * @error: Return location for error or %NULL 2240s # * 2240s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2240s # * 2240s # * The calling thread is blocked until a reply is received. 2240s # * 2240s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2240s # * 2240s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2240s # */ 2240s # OrgProjectSignalingIface * 2240s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2240s # GBusType bus_type, 2240s # GDBusProxyFlags flags, 2240s # const gchar *name, 2240s # const gchar *object_path, 2240s # GCancellable *cancellable, 2240s # GError **error) 2240s # { 2240s # GInitable *ret; 2240s # 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); 2240s # if (ret != NULL) 2240s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2240s # else 2240s # return NULL; 2240s # } 2240s # 2240s # 2240s # /* ------------------------------------------------------------------------ */ 2240s # 2240s # /** 2240s # * OrgProjectSignalingIfaceSkeleton: 2240s # * 2240s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2240s # */ 2240s # 2240s # /** 2240s # * OrgProjectSignalingIfaceSkeletonClass: 2240s # * @parent_class: The parent class. 2240s # * 2240s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2240s # */ 2240s # 2240s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2240s # { 2240s # GValue *properties; 2240s # GList *changed_properties; 2240s # GSource *changed_properties_idle_source; 2240s # GMainContext *context; 2240s # GMutex lock; 2240s # }; 2240s # 2240s # static void 2240s # _org_project_signaling_iface_skeleton_handle_method_call ( 2240s # GDBusConnection *connection G_GNUC_UNUSED, 2240s # const gchar *sender G_GNUC_UNUSED, 2240s # const gchar *object_path G_GNUC_UNUSED, 2240s # const gchar *interface_name, 2240s # const gchar *method_name, 2240s # GVariant *parameters, 2240s # GDBusMethodInvocation *invocation, 2240s # gpointer user_data) 2240s # { 2240s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2240s # _ExtendedGDBusMethodInfo *info; 2240s # GVariantIter iter; 2240s # GVariant *child; 2240s # GValue *paramv; 2240s # gsize num_params; 2240s # guint num_extra; 2240s # gsize n; 2240s # guint signal_id; 2240s # GValue return_value = G_VALUE_INIT; 2240s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2240s # g_assert (info != NULL); 2240s # num_params = g_variant_n_children (parameters); 2240s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2240s # n = 0; 2240s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2240s # g_value_set_object (¶mv[n++], skeleton); 2240s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2240s # g_value_set_object (¶mv[n++], invocation); 2240s # if (info->pass_fdlist) 2240s # { 2240s # #ifdef G_OS_UNIX 2240s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2240s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2240s # #else 2240s # g_assert_not_reached (); 2240s # #endif 2240s # } 2240s # g_variant_iter_init (&iter, parameters); 2240s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2240s # { 2240s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2240s # if (arg_info->use_gvariant) 2240s # { 2240s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2240s # g_value_set_variant (¶mv[n], child); 2240s # n++; 2240s # } 2240s # else 2240s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2240s # g_variant_unref (child); 2240s # } 2240s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2240s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2240s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2240s # if (!g_value_get_boolean (&return_value)) 2240s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2240s # g_value_unset (&return_value); 2240s # for (n = 0; n < num_params + num_extra; n++) 2240s # g_value_unset (¶mv[n]); 2240s # g_free (paramv); 2240s # } 2240s # 2240s # static GVariant * 2240s # _org_project_signaling_iface_skeleton_handle_get_property ( 2240s # GDBusConnection *connection G_GNUC_UNUSED, 2240s # const gchar *sender G_GNUC_UNUSED, 2240s # const gchar *object_path G_GNUC_UNUSED, 2240s # const gchar *interface_name G_GNUC_UNUSED, 2240s # const gchar *property_name, 2240s # GError **error, 2240s # gpointer user_data) 2240s # { 2240s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2240s # GValue value = G_VALUE_INIT; 2240s # GParamSpec *pspec; 2240s # _ExtendedGDBusPropertyInfo *info; 2240s # GVariant *ret; 2240s # ret = NULL; 2240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2240s # g_assert (info != NULL); 2240s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2240s # if (pspec == NULL) 2240s # { 2240s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2240s # } 2240s # else 2240s # { 2240s # g_value_init (&value, pspec->value_type); 2240s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2240s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2240s # g_value_unset (&value); 2240s # } 2240s # return ret; 2240s # } 2240s # 2240s # static gboolean 2240s # _org_project_signaling_iface_skeleton_handle_set_property ( 2240s # GDBusConnection *connection G_GNUC_UNUSED, 2240s # const gchar *sender G_GNUC_UNUSED, 2240s # const gchar *object_path G_GNUC_UNUSED, 2240s # const gchar *interface_name G_GNUC_UNUSED, 2240s # const gchar *property_name, 2240s # GVariant *variant, 2240s # GError **error, 2240s # gpointer user_data) 2240s # { 2240s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2240s # GValue value = G_VALUE_INIT; 2240s # GParamSpec *pspec; 2240s # _ExtendedGDBusPropertyInfo *info; 2240s # gboolean ret; 2240s # ret = FALSE; 2240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2240s # g_assert (info != NULL); 2240s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2240s # if (pspec == NULL) 2240s # { 2240s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2240s # } 2240s # else 2240s # { 2240s # if (info->use_gvariant) 2240s # g_value_set_variant (&value, variant); 2240s # else 2240s # g_dbus_gvariant_to_gvalue (variant, &value); 2240s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2240s # g_value_unset (&value); 2240s # ret = TRUE; 2240s # } 2240s # return ret; 2240s # } 2240s # 2240s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2240s # { 2240s # _org_project_signaling_iface_skeleton_handle_method_call, 2240s # _org_project_signaling_iface_skeleton_handle_get_property, 2240s # _org_project_signaling_iface_skeleton_handle_set_property, 2240s # {NULL} 2240s # }; 2240s # 2240s # static GDBusInterfaceInfo * 2240s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2240s # { 2240s # return org_project_signaling_iface_interface_info (); 2240s # } 2240s # 2240s # static GDBusInterfaceVTable * 2240s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2240s # { 2240s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2240s # } 2240s # 2240s # static GVariant * 2240s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2240s # { 2240s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2240s # 2240s # GVariantBuilder builder; 2240s # guint n; 2240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2240s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2240s # #else 2240s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2240s # #endif 2240s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2240s # goto out; 2240s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2240s # { 2240s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2240s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2240s # { 2240s # GVariant *value; 2240s # 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); 2240s # if (value != NULL) 2240s # { 2240s # g_variant_take_ref (value); 2240s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2240s # g_variant_unref (value); 2240s # } 2240s # } 2240s # } 2240s # out: 2240s # return g_variant_builder_end (&builder); 2240s # } 2240s # 2240s # static void 2240s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2240s # { 2240s # } 2240s # 2240s # static void 2240s # _org_project_signaling_iface_on_signal_simple_signal ( 2240s # OrgProjectSignalingIface *object) 2240s # { 2240s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2240s # 2240s # GList *connections, *l; 2240s # GVariant *signal_variant; 2240s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2240s # 2240s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2240s # for (l = connections; l != NULL; l = l->next) 2240s # { 2240s # GDBusConnection *connection = l->data; 2240s # g_dbus_connection_emit_signal (connection, 2240s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2240s # signal_variant, NULL); 2240s # } 2240s # g_variant_unref (signal_variant); 2240s # g_list_free_full (connections, g_object_unref); 2240s # } 2240s # 2240s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2240s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2240s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2240s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2240s # 2240s # #else 2240s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2240s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2240s # 2240s # #endif 2240s # static void 2240s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2240s # { 2240s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2240s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2240s # if (skeleton->priv->changed_properties_idle_source != NULL) 2240s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2240s # g_main_context_unref (skeleton->priv->context); 2240s # g_mutex_clear (&skeleton->priv->lock); 2240s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2240s # } 2240s # 2240s # static void 2240s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2240s # { 2240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2240s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2240s # #else 2240s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2240s # #endif 2240s # 2240s # g_mutex_init (&skeleton->priv->lock); 2240s # skeleton->priv->context = g_main_context_ref_thread_default (); 2240s # } 2240s # 2240s # static void 2240s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2240s # { 2240s # GObjectClass *gobject_class; 2240s # GDBusInterfaceSkeletonClass *skeleton_class; 2240s # 2240s # gobject_class = G_OBJECT_CLASS (klass); 2240s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2240s # 2240s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2240s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2240s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2240s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2240s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2240s # 2240s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2240s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2240s # #endif 2240s # } 2240s # 2240s # static void 2240s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2240s # { 2240s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2240s # } 2240s # 2240s # /** 2240s # * org_project_signaling_iface_skeleton_new: 2240s # * 2240s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2240s # * 2240s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2240s # */ 2240s # OrgProjectSignalingIface * 2240s # org_project_signaling_iface_skeleton_new (void) 2240s # { 2240s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2240s # } 2240s # 2240s # /* ------------------------------------------------------------------------ 2240s # * Code for interface org.project.OtherSignalingIface 2240s # * ------------------------------------------------------------------------ 2240s # */ 2240s # 2240s # /** 2240s # * SECTION:OrgProjectOtherSignalingIface 2240s # * @title: OrgProjectOtherSignalingIface 2240s # * @short_description: Generated C code for the org.project.OtherSignalingIface D-Bus interface 2240s # * 2240s # * This section contains code for working with the org.project.OtherSignalingIface D-Bus interface in C. 2240s # */ 2240s # 2240s # enum 2240s # { 2240s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL, 2240s # }; 2240s # 2240s # static unsigned _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 2240s # 2240s # /* ---- Introspection data for org.project.OtherSignalingIface ---- */ 2240s # 2240s # static const _ExtendedGDBusSignalInfo _org_project_other_signaling_iface_signal_info_simple_signal = 2240s # { 2240s # { 2240s # -1, 2240s # (gchar *) "SimpleSignal", 2240s # NULL, 2240s # NULL 2240s # }, 2240s # "simple-signal" 2240s # }; 2240s # 2240s # static const GDBusSignalInfo * const _org_project_other_signaling_iface_signal_info_pointers[] = 2240s # { 2240s # &_org_project_other_signaling_iface_signal_info_simple_signal.parent_struct, 2240s # NULL 2240s # }; 2240s # 2240s # static const _ExtendedGDBusInterfaceInfo _org_project_other_signaling_iface_interface_info = 2240s # { 2240s # { 2240s # -1, 2240s # (gchar *) "org.project.OtherSignalingIface", 2240s # NULL, 2240s # (GDBusSignalInfo **) &_org_project_other_signaling_iface_signal_info_pointers, 2240s # NULL, 2240s # NULL 2240s # }, 2240s # "org-project-other-signaling-iface", 2240s # }; 2240s # 2240s # 2240s # /** 2240s # * org_project_other_signaling_iface_interface_info: 2240s # * 2240s # * Gets a machine-readable description of the org.project.OtherSignalingIface D-Bus interface. 2240s # * 2240s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2240s # */ 2240s # GDBusInterfaceInfo * 2240s # org_project_other_signaling_iface_interface_info (void) 2240s # { 2240s # return (GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct; 2240s # } 2240s # 2240s # /** 2240s # * org_project_other_signaling_iface_override_properties: 2240s # * @klass: The class structure for a #GObject derived class. 2240s # * @property_id_begin: The property id to assign to the first overridden property. 2240s # * 2240s # * Overrides all #GObject properties in the #OrgProjectOtherSignalingIface interface for a concrete class. 2240s # * The properties are overridden in the order they are defined. 2240s # * 2240s # * Returns: The last property id. 2240s # */ 2240s # guint 2240s # org_project_other_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2240s # { 2240s # return property_id_begin - 1; 2240s # } 2240s # 2240s # 2240s # inline static void 2240s # org_project_other_signaling_iface_signal_marshal_simple_signal ( 2240s # GClosure *closure, 2240s # GValue *return_value, 2240s # unsigned int n_param_values, 2240s # const GValue *param_values, 2240s # void *invocation_hint, 2240s # void *marshal_data) 2240s # { 2240s # g_cclosure_marshal_VOID__VOID (closure, 2240s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2240s # } 2240s # 2240s # 2240s # /** 2240s # * OrgProjectOtherSignalingIface: 2240s # * 2240s # * Abstract interface type for the D-Bus interface org.project.OtherSignalingIface. 2240s # */ 2240s # 2240s # /** 2240s # * OrgProjectOtherSignalingIfaceIface: 2240s # * @parent_iface: The parent interface. 2240s # * @simple_signal: Handler for the #OrgProjectOtherSignalingIface::simple-signal signal. 2240s # * 2240s # * Virtual table for the D-Bus interface org.project.OtherSignalingIface. 2240s # */ 2240s # 2240s # typedef OrgProjectOtherSignalingIfaceIface OrgProjectOtherSignalingIfaceInterface; 2240s # G_DEFINE_INTERFACE (OrgProjectOtherSignalingIface, org_project_other_signaling_iface, G_TYPE_OBJECT) 2240s # 2240s # static void 2240s # org_project_other_signaling_iface_default_init (OrgProjectOtherSignalingIfaceIface *iface) 2240s # { 2240s # /* GObject signals for received D-Bus signals: */ 2240s # /** 2240s # * OrgProjectOtherSignalingIface::simple-signal: 2240s # * @object: A #OrgProjectOtherSignalingIface. 2240s # * 2240s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2240s # * 2240s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2240s # */ 2240s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2240s # g_signal_new ("simple-signal", 2240s # G_TYPE_FROM_INTERFACE (iface), 2240s # G_SIGNAL_RUN_LAST, 2240s # G_STRUCT_OFFSET (OrgProjectOtherSignalingIfaceIface, simple_signal), 2240s # NULL, 2240s # NULL, 2240s # org_project_other_signaling_iface_signal_marshal_simple_signal, 2240s # G_TYPE_NONE, 2240s # 0); 2240s # 2240s # } 2240s # 2240s # /** 2240s # * org_project_other_signaling_iface_emit_simple_signal: 2240s # * @object: A #OrgProjectOtherSignalingIface. 2240s # * 2240s # * Emits the "SimpleSignal" D-Bus signal. 2240s # */ 2240s # void 2240s # org_project_other_signaling_iface_emit_simple_signal ( 2240s # OrgProjectOtherSignalingIface *object) 2240s # { 2240s # g_signal_emit (object, _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2240s # } 2240s # 2240s # /* ------------------------------------------------------------------------ */ 2240s # 2240s # /** 2240s # * OrgProjectOtherSignalingIfaceProxy: 2240s # * 2240s # * The #OrgProjectOtherSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2240s # */ 2240s # 2240s # /** 2240s # * OrgProjectOtherSignalingIfaceProxyClass: 2240s # * @parent_class: The parent class. 2240s # * 2240s # * Class structure for #OrgProjectOtherSignalingIfaceProxy. 2240s # */ 2240s # 2240s # struct _OrgProjectOtherSignalingIfaceProxyPrivate 2240s # { 2240s # GData *qdata; 2240s # }; 2240s # 2240s # static void org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 2240s # 2240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2240s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2240s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceProxy) 2240s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 2240s # 2240s # #else 2240s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2240s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 2240s # 2240s # #endif 2240s # static void 2240s # org_project_other_signaling_iface_proxy_finalize (GObject *object) 2240s # { 2240s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (object); 2240s # g_datalist_clear (&proxy->priv->qdata); 2240s # G_OBJECT_CLASS (org_project_other_signaling_iface_proxy_parent_class)->finalize (object); 2240s # } 2240s # 2240s # static void 2240s # org_project_other_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2240s # guint prop_id G_GNUC_UNUSED, 2240s # GValue *value G_GNUC_UNUSED, 2240s # GParamSpec *pspec G_GNUC_UNUSED) 2240s # { 2240s # } 2240s # 2240s # static void 2240s # org_project_other_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2240s # guint prop_id G_GNUC_UNUSED, 2240s # const GValue *value G_GNUC_UNUSED, 2240s # GParamSpec *pspec G_GNUC_UNUSED) 2240s # { 2240s # } 2240s # 2240s # static void 2240s # org_project_other_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2240s # const gchar *sender_name G_GNUC_UNUSED, 2240s # const gchar *signal_name, 2240s # GVariant *parameters) 2240s # { 2240s # _ExtendedGDBusSignalInfo *info; 2240s # GVariantIter iter; 2240s # GVariant *child; 2240s # GValue *paramv; 2240s # gsize num_params; 2240s # gsize n; 2240s # guint signal_id; 2240s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, signal_name); 2240s # if (info == NULL) 2240s # return; 2240s # num_params = g_variant_n_children (parameters); 2240s # paramv = g_new0 (GValue, num_params + 1); 2240s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 2240s # g_value_set_object (¶mv[0], proxy); 2240s # g_variant_iter_init (&iter, parameters); 2240s # n = 1; 2240s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2240s # { 2240s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2240s # if (arg_info->use_gvariant) 2240s # { 2240s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2240s # g_value_set_variant (¶mv[n], child); 2240s # n++; 2240s # } 2240s # else 2240s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2240s # g_variant_unref (child); 2240s # } 2240s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 2240s # g_signal_emitv (paramv, signal_id, 0, NULL); 2240s # for (n = 0; n < num_params + 1; n++) 2240s # g_value_unset (¶mv[n]); 2240s # g_free (paramv); 2240s # } 2240s # 2240s # static void 2240s # org_project_other_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2240s # GVariant *changed_properties, 2240s # const gchar *const *invalidated_properties) 2240s # { 2240s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (_proxy); 2240s # guint n; 2240s # const gchar *key; 2240s # GVariantIter *iter; 2240s # _ExtendedGDBusPropertyInfo *info; 2240s # g_variant_get (changed_properties, "a{sv}", &iter); 2240s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2240s # { 2240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, key); 2240s # g_datalist_remove_data (&proxy->priv->qdata, key); 2240s # if (info != NULL) 2240s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2240s # } 2240s # g_variant_iter_free (iter); 2240s # for (n = 0; invalidated_properties[n] != NULL; n++) 2240s # { 2240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2240s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2240s # if (info != NULL) 2240s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2240s # } 2240s # } 2240s # 2240s # static void 2240s # org_project_other_signaling_iface_proxy_init (OrgProjectOtherSignalingIfaceProxy *proxy) 2240s # { 2240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2240s # proxy->priv = org_project_other_signaling_iface_proxy_get_instance_private (proxy); 2240s # #else 2240s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, OrgProjectOtherSignalingIfaceProxyPrivate); 2240s # #endif 2240s # 2240s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_signaling_iface_interface_info ()); 2240s # } 2240s # 2240s # static void 2240s # org_project_other_signaling_iface_proxy_class_init (OrgProjectOtherSignalingIfaceProxyClass *klass) 2240s # { 2240s # GObjectClass *gobject_class; 2240s # GDBusProxyClass *proxy_class; 2240s # 2240s # gobject_class = G_OBJECT_CLASS (klass); 2240s # gobject_class->finalize = org_project_other_signaling_iface_proxy_finalize; 2240s # gobject_class->get_property = org_project_other_signaling_iface_proxy_get_property; 2240s # gobject_class->set_property = org_project_other_signaling_iface_proxy_set_property; 2240s # 2240s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2240s # proxy_class->g_signal = org_project_other_signaling_iface_proxy_g_signal; 2240s # proxy_class->g_properties_changed = org_project_other_signaling_iface_proxy_g_properties_changed; 2240s # 2240s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2240s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceProxyPrivate)); 2240s # #endif 2240s # } 2240s # 2240s # static void 2240s # org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface G_GNUC_UNUSED) 2240s # { 2240s # } 2240s # 2240s # /** 2240s # * org_project_other_signaling_iface_proxy_new: 2240s # * @connection: A #GDBusConnection. 2240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2240s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2240s # * @object_path: An object path. 2240s # * @cancellable: (nullable): A #GCancellable or %NULL. 2240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2240s # * @user_data: User data to pass to @callback. 2240s # * 2240s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new() for more details. 2240s # * 2240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2240s # * You can then call org_project_other_signaling_iface_proxy_new_finish() to get the result of the operation. 2240s # * 2240s # * See org_project_other_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2240s # */ 2240s # void 2240s # org_project_other_signaling_iface_proxy_new ( 2240s # GDBusConnection *connection, 2240s # GDBusProxyFlags flags, 2240s # const gchar *name, 2240s # const gchar *object_path, 2240s # GCancellable *cancellable, 2240s # GAsyncReadyCallback callback, 2240s # gpointer user_data) 2240s # { 2240s # 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); 2240s # } 2240s # 2240s # /** 2240s # * org_project_other_signaling_iface_proxy_new_finish: 2240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new(). 2240s # * @error: Return location for error or %NULL 2240s # * 2240s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new(). 2240s # * 2240s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2240s # */ 2240s # OrgProjectOtherSignalingIface * 2240s # org_project_other_signaling_iface_proxy_new_finish ( 2240s # GAsyncResult *res, 2240s # GError **error) 2240s # { 2240s # GObject *ret; 2240s # GObject *source_object; 2240s # source_object = g_async_result_get_source_object (res); 2240s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2240s # g_object_unref (source_object); 2240s # if (ret != NULL) 2240s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 2240s # else 2240s # return NULL; 2240s # } 2240s # 2240s # /** 2240s # * org_project_other_signaling_iface_proxy_new_sync: 2240s # * @connection: A #GDBusConnection. 2240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2240s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2240s # * @object_path: An object path. 2240s # * @cancellable: (nullable): A #GCancellable or %NULL. 2240s # * @error: Return location for error or %NULL 2240s # * 2240s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new_sync() for more details. 2240s # * 2240s # * The calling thread is blocked until a reply is received. 2240s # * 2240s # * See org_project_other_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2240s # * 2240s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2240s # */ 2240s # OrgProjectOtherSignalingIface * 2240s # org_project_other_signaling_iface_proxy_new_sync ( 2240s # GDBusConnection *connection, 2240s # GDBusProxyFlags flags, 2240s # const gchar *name, 2240s # const gchar *object_path, 2240s # GCancellable *cancellable, 2240s # GError **error) 2240s # { 2240s # GInitable *ret; 2240s # 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); 2240s # if (ret != NULL) 2240s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 2240s # else 2240s # return NULL; 2240s # } 2240s # 2240s # 2240s # /** 2240s # * org_project_other_signaling_iface_proxy_new_for_bus: 2240s # * @bus_type: A #GBusType. 2240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2240s # * @name: A bus name (well-known or unique). 2240s # * @object_path: An object path. 2240s # * @cancellable: (nullable): A #GCancellable or %NULL. 2240s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2240s # * @user_data: User data to pass to @callback. 2240s # * 2240s # * Like org_project_other_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2240s # * 2240s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2240s # * You can then call org_project_other_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2240s # * 2240s # * See org_project_other_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2240s # */ 2240s # void 2240s # org_project_other_signaling_iface_proxy_new_for_bus ( 2240s # GBusType bus_type, 2240s # GDBusProxyFlags flags, 2240s # const gchar *name, 2240s # const gchar *object_path, 2240s # GCancellable *cancellable, 2240s # GAsyncReadyCallback callback, 2240s # gpointer user_data) 2240s # { 2240s # 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); 2240s # } 2240s # 2240s # /** 2240s # * org_project_other_signaling_iface_proxy_new_for_bus_finish: 2240s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new_for_bus(). 2240s # * @error: Return location for error or %NULL 2240s # * 2240s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new_for_bus(). 2240s # * 2240s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2240s # */ 2240s # OrgProjectOtherSignalingIface * 2240s # org_project_other_signaling_iface_proxy_new_for_bus_finish ( 2240s # GAsyncResult *res, 2240s # GError **error) 2240s # { 2240s # GObject *ret; 2240s # GObject *source_object; 2240s # source_object = g_async_result_get_source_object (res); 2240s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2240s # g_object_unref (source_object); 2240s # if (ret != NULL) 2240s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 2240s # else 2240s # return NULL; 2240s # } 2240s # 2240s # /** 2240s # * org_project_other_signaling_iface_proxy_new_for_bus_sync: 2240s # * @bus_type: A #GBusType. 2240s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2240s # * @name: A bus name (well-known or unique). 2240s # * @object_path: An object path. 2240s # * @cancellable: (nullable): A #GCancellable or %NULL. 2240s # * @error: Return location for error or %NULL 2240s # * 2240s # * Like org_project_other_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2240s # * 2240s # * The calling thread is blocked until a reply is received. 2240s # * 2240s # * See org_project_other_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2240s # * 2240s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2240s # */ 2240s # OrgProjectOtherSignalingIface * 2240s # org_project_other_signaling_iface_proxy_new_for_bus_sync ( 2240s # GBusType bus_type, 2240s # GDBusProxyFlags flags, 2240s # const gchar *name, 2240s # const gchar *object_path, 2240s # GCancellable *cancellable, 2240s # GError **error) 2240s # { 2240s # GInitable *ret; 2240s # 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); 2240s # if (ret != NULL) 2240s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 2240s # else 2240s # return NULL; 2240s # } 2240s # 2240s # 2240s # /* ------------------------------------------------------------------------ */ 2240s # 2240s # /** 2240s # * OrgProjectOtherSignalingIfaceSkeleton: 2240s # * 2240s # * The #OrgProjectOtherSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2240s # */ 2240s # 2240s # /** 2240s # * OrgProjectOtherSignalingIfaceSkeletonClass: 2240s # * @parent_class: The parent class. 2240s # * 2240s # * Class structure for #OrgProjectOtherSignalingIfaceSkeleton. 2240s # */ 2240s # 2240s # struct _OrgProjectOtherSignalingIfaceSkeletonPrivate 2240s # { 2240s # GValue *properties; 2240s # GList *changed_properties; 2240s # GSource *changed_properties_idle_source; 2240s # GMainContext *context; 2240s # GMutex lock; 2240s # }; 2240s # 2240s # static void 2240s # _org_project_other_signaling_iface_skeleton_handle_method_call ( 2240s # GDBusConnection *connection G_GNUC_UNUSED, 2240s # const gchar *sender G_GNUC_UNUSED, 2240s # const gchar *object_path G_GNUC_UNUSED, 2240s # const gchar *interface_name, 2240s # const gchar *method_name, 2240s # GVariant *parameters, 2240s # GDBusMethodInvocation *invocation, 2240s # gpointer user_data) 2240s # { 2240s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 2240s # _ExtendedGDBusMethodInfo *info; 2240s # GVariantIter iter; 2240s # GVariant *child; 2240s # GValue *paramv; 2240s # gsize num_params; 2240s # guint num_extra; 2240s # gsize n; 2240s # guint signal_id; 2240s # GValue return_value = G_VALUE_INIT; 2240s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2240s # g_assert (info != NULL); 2240s # num_params = g_variant_n_children (parameters); 2240s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2240s # n = 0; 2240s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 2240s # g_value_set_object (¶mv[n++], skeleton); 2240s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2240s # g_value_set_object (¶mv[n++], invocation); 2240s # if (info->pass_fdlist) 2240s # { 2240s # #ifdef G_OS_UNIX 2240s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2240s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2240s # #else 2240s # g_assert_not_reached (); 2240s # #endif 2240s # } 2240s # g_variant_iter_init (&iter, parameters); 2240s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2240s # { 2240s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2240s # if (arg_info->use_gvariant) 2240s # { 2240s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2240s # g_value_set_variant (¶mv[n], child); 2240s # n++; 2240s # } 2240s # else 2240s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2240s # g_variant_unref (child); 2240s # } 2240s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 2240s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2240s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2240s # if (!g_value_get_boolean (&return_value)) 2240s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2240s # g_value_unset (&return_value); 2240s # for (n = 0; n < num_params + num_extra; n++) 2240s # g_value_unset (¶mv[n]); 2240s # g_free (paramv); 2240s # } 2240s # 2240s # static GVariant * 2240s # _org_project_other_signaling_iface_skeleton_handle_get_property ( 2240s # GDBusConnection *connection G_GNUC_UNUSED, 2240s # const gchar *sender G_GNUC_UNUSED, 2240s # const gchar *object_path G_GNUC_UNUSED, 2240s # const gchar *interface_name G_GNUC_UNUSED, 2240s # const gchar *property_name, 2240s # GError **error, 2240s # gpointer user_data) 2240s # { 2240s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 2240s # GValue value = G_VALUE_INIT; 2240s # GParamSpec *pspec; 2240s # _ExtendedGDBusPropertyInfo *info; 2240s # GVariant *ret; 2240s # ret = NULL; 2240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 2240s # g_assert (info != NULL); 2240s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2240s # if (pspec == NULL) 2240s # { 2240s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2240s # } 2240s # else 2240s # { 2240s # g_value_init (&value, pspec->value_type); 2240s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2240s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2240s # g_value_unset (&value); 2240s # } 2240s # return ret; 2240s # } 2240s # 2240s # static gboolean 2240s # _org_project_other_signaling_iface_skeleton_handle_set_property ( 2240s # GDBusConnection *connection G_GNUC_UNUSED, 2240s # const gchar *sender G_GNUC_UNUSED, 2240s # const gchar *object_path G_GNUC_UNUSED, 2240s # const gchar *interface_name G_GNUC_UNUSED, 2240s # const gchar *property_name, 2240s # GVariant *variant, 2240s # GError **error, 2240s # gpointer user_data) 2240s # { 2240s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 2240s # GValue value = G_VALUE_INIT; 2240s # GParamSpec *pspec; 2240s # _ExtendedGDBusPropertyInfo *info; 2240s # gboolean ret; 2240s # ret = FALSE; 2240s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 2240s # g_assert (info != NULL); 2240s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2240s # if (pspec == NULL) 2240s # { 2240s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2240s # } 2240s # else 2240s # { 2240s # if (info->use_gvariant) 2240s # g_value_set_variant (&value, variant); 2240s # else 2240s # g_dbus_gvariant_to_gvalue (variant, &value); 2240s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2240s # g_value_unset (&value); 2240s # ret = TRUE; 2240s # } 2240s # return ret; 2240s # } 2240s # 2240s # static const GDBusInterfaceVTable _org_project_other_signaling_iface_skeleton_vtable = 2240s # { 2240s # _org_project_other_signaling_iface_skeleton_handle_method_call, 2240s # _org_project_other_signaling_iface_skeleton_handle_get_property, 2240s # _org_project_other_signaling_iface_skeleton_handle_set_property, 2240s # {NULL} 2240s # }; 2240s # 2240s # static GDBusInterfaceInfo * 2240s # org_project_other_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2240s # { 2240s # return org_project_other_signaling_iface_interface_info (); 2240s # } 2240s # 2240s # static GDBusInterfaceVTable * 2240s # org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2240s # { 2240s # return (GDBusInterfaceVTable *) &_org_project_other_signaling_iface_skeleton_vtable; 2240s # } 2240s # 2240s # static GVariant * 2240s # org_project_other_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2240s # { 2240s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (_skeleton); 2240s # 2240s # GVariantBuilder builder; 2240s # guint n; 2240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2240s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2240s # #else 2240s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2240s # #endif 2240s # if (_org_project_other_signaling_iface_interface_info.parent_struct.properties == NULL) 2240s # goto out; 2240s # for (n = 0; _org_project_other_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2240s # { 2240s # GDBusPropertyInfo *info = _org_project_other_signaling_iface_interface_info.parent_struct.properties[n]; 2240s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2240s # { 2240s # GVariant *value; 2240s # 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); 2240s # if (value != NULL) 2240s # { 2240s # g_variant_take_ref (value); 2240s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2240s # g_variant_unref (value); 2240s # } 2240s # } 2240s # } 2240s # out: 2240s # return g_variant_builder_end (&builder); 2240s # } 2240s # 2240s # static void 2240s # org_project_other_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2240s # { 2240s # } 2240s # 2240s # static void 2240s # _org_project_other_signaling_iface_on_signal_simple_signal ( 2240s # OrgProjectOtherSignalingIface *object) 2240s # { 2240s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 2240s # 2240s # GList *connections, *l; 2240s # GVariant *signal_variant; 2240s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2240s # 2240s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2240s # for (l = connections; l != NULL; l = l->next) 2240s # { 2240s # GDBusConnection *connection = l->data; 2240s # g_dbus_connection_emit_signal (connection, 2240s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherSignalingIface", "SimpleSignal", 2240s # signal_variant, NULL); 2240s # } 2240s # g_variant_unref (signal_variant); 2240s # g_list_free_full (connections, g_object_unref); 2240s # } 2240s # 2240s # static void org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 2240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2240s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2240s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceSkeleton) 2240s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 2240s # 2240s # #else 2240s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2240s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 2240s # 2240s # #endif 2240s # static void 2240s # org_project_other_signaling_iface_skeleton_finalize (GObject *object) 2240s # { 2240s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 2240s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2240s # if (skeleton->priv->changed_properties_idle_source != NULL) 2240s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2240s # g_main_context_unref (skeleton->priv->context); 2240s # g_mutex_clear (&skeleton->priv->lock); 2240s # G_OBJECT_CLASS (org_project_other_signaling_iface_skeleton_parent_class)->finalize (object); 2240s # } 2240s # 2240s # static void 2240s # org_project_other_signaling_iface_skeleton_init (OrgProjectOtherSignalingIfaceSkeleton *skeleton) 2240s # { 2240s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2240s # skeleton->priv = org_project_other_signaling_iface_skeleton_get_instance_private (skeleton); 2240s # #else 2240s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, OrgProjectOtherSignalingIfaceSkeletonPrivate); 2240s # #endif 2240s # 2240s # g_mutex_init (&skeleton->priv->lock); 2240s # skeleton->priv->context = g_main_context_ref_thread_default (); 2240s # } 2240s # 2240s # static void 2240s # org_project_other_signaling_iface_skeleton_class_init (OrgProjectOtherSignalingIfaceSkeletonClass *klass) 2240s # { 2240s # GObjectClass *gobject_class; 2240s # GDBusInterfaceSkeletonClass *skeleton_class; 2240s # 2240s # gobject_class = G_OBJECT_CLASS (klass); 2240s # gobject_class->finalize = org_project_other_signaling_iface_skeleton_finalize; 2240s # 2240s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2240s # skeleton_class->get_info = org_project_other_signaling_iface_skeleton_dbus_interface_get_info; 2240s # skeleton_class->get_properties = org_project_other_signaling_iface_skeleton_dbus_interface_get_properties; 2240s # skeleton_class->flush = org_project_other_signaling_iface_skeleton_dbus_interface_flush; 2240s # skeleton_class->get_vtable = org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable; 2240s # 2240s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2240s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceSkeletonPrivate)); 2240s # #endif 2240s # } 2240s # 2240s # static void 2240s # org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface) 2240s # { 2240s # iface->simple_signal = _org_project_other_signaling_iface_on_signal_simple_signal; 2240s # } 2240s # 2240s # /** 2240s # * org_project_other_signaling_iface_skeleton_new: 2240s # * 2240s # * Creates a skeleton object for the D-Bus interface org.project.OtherSignalingIface. 2240s # * 2240s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceSkeleton): The skeleton object. 2240s # */ 2240s # OrgProjectOtherSignalingIface * 2240s # org_project_other_signaling_iface_skeleton_new (void) 2240s # { 2240s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, NULL)); 2240s # } 2240s # Error: 2243s # Executing: glib/codegen.py.test 2244s ok 23 __main__.TestCodegen.test_generate_signals_marshaller_single_typed_args 2244s # gdbus-codegen: /usr/bin/gdbus-codegen 2244s # tmpdir: /tmp/tmpcnzv9ghf 2244s # /tmp/tmpcnzv9ghf/tmpf94ta17q.xml: 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmpf94ta17q.xml', '--output', '-', '--body'] 2244s # Return code: 0 2244s # Output: 2244s # /* 2244s # * This file is generated by gdbus-codegen, do not modify it. 2244s # * 2244s # * The license of this code is the same as for the D-Bus interface description 2244s # * it was derived from. Note that it links to GLib, so must comply with the 2244s # * LGPL linking clauses. 2244s # */ 2244s # 2244s # #ifdef HAVE_CONFIG_H 2244s # # include "config.h" 2244s # #endif 2244s # 2244s # #include 2244s # #ifdef G_OS_UNIX 2244s # # include 2244s # #endif 2244s # 2244s # #ifdef G_ENABLE_DEBUG 2244s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2244s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2244s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2244s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2244s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2244s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2244s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2244s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2244s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2244s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2244s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2244s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2244s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2244s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2244s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2244s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2244s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2244s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2244s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2244s # #else /* !G_ENABLE_DEBUG */ 2244s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2244s # * Do not access GValues directly in your code. Instead, use the 2244s # * g_value_get_*() functions 2244s # */ 2244s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2244s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2244s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2244s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2244s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2244s # #endif /* !G_ENABLE_DEBUG */ 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusArgInfo parent_struct; 2244s # gboolean use_gvariant; 2244s # } _ExtendedGDBusArgInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusMethodInfo parent_struct; 2244s # const gchar *signal_name; 2244s # gboolean pass_fdlist; 2244s # } _ExtendedGDBusMethodInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusSignalInfo parent_struct; 2244s # const gchar *signal_name; 2244s # } _ExtendedGDBusSignalInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusPropertyInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # guint use_gvariant : 1; 2244s # guint emits_changed_signal : 1; 2244s # } _ExtendedGDBusPropertyInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusInterfaceInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # } _ExtendedGDBusInterfaceInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # const _ExtendedGDBusPropertyInfo *info; 2244s # guint prop_id; 2244s # GValue orig_value; /* the value before the change */ 2244s # } ChangedProperty; 2244s # 2244s # static void 2244s # _changed_property_free (ChangedProperty *data) 2244s # { 2244s # g_value_unset (&data->orig_value); 2244s # g_free (data); 2244s # } 2244s # 2244s # static gboolean 2244s # _g_strv_equal0 (gchar **a, gchar **b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # guint n; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # if (g_strv_length (a) != g_strv_length (b)) 2244s # goto out; 2244s # for (n = 0; a[n] != NULL; n++) 2244s # if (g_strcmp0 (a[n], b[n]) != 0) 2244s # goto out; 2244s # ret = TRUE; 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _g_variant_equal0 (GVariant *a, GVariant *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # ret = g_variant_equal (a, b); 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # G_GNUC_UNUSED static gboolean 2244s # _g_value_equal (const GValue *a, const GValue *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2244s # switch (G_VALUE_TYPE (a)) 2244s # { 2244s # case G_TYPE_BOOLEAN: 2244s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2244s # break; 2244s # case G_TYPE_UCHAR: 2244s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2244s # break; 2244s # case G_TYPE_INT: 2244s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2244s # break; 2244s # case G_TYPE_UINT: 2244s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2244s # break; 2244s # case G_TYPE_INT64: 2244s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2244s # break; 2244s # case G_TYPE_UINT64: 2244s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2244s # break; 2244s # case G_TYPE_DOUBLE: 2244s # { 2244s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2244s # gdouble da = g_value_get_double (a); 2244s # gdouble db = g_value_get_double (b); 2244s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2244s # } 2244s # break; 2244s # case G_TYPE_STRING: 2244s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2244s # break; 2244s # case G_TYPE_VARIANT: 2244s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2244s # break; 2244s # default: 2244s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2244s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2244s # else 2244s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2244s # break; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ 2244s # * Code for interface org.project.SignalingIface 2244s # * ------------------------------------------------------------------------ 2244s # */ 2244s # 2244s # /** 2244s # * SECTION:OrgProjectSignalingIface 2244s # * @title: OrgProjectSignalingIface 2244s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2244s # * 2244s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2244s # */ 2244s # 2244s # enum 2244s # { 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2244s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 2244s # }; 2244s # 2244s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2244s # 2244s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SimpleSignal", 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "simple-signal" 2244s # }; 2244s # 2244s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "arg_b", 2244s # (gchar *) "b", 2244s # NULL 2244s # }, 2244s # FALSE 2244s # }; 2244s # 2244s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SingleArgSignalB", 2244s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 2244s # NULL 2244s # }, 2244s # "single-arg-signal-b" 2244s # }; 2244s # 2244s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "org.project.SignalingIface", 2244s # NULL, 2244s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "org-project-signaling-iface", 2244s # }; 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_interface_info: 2244s # * 2244s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2244s # * 2244s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2244s # */ 2244s # GDBusInterfaceInfo * 2244s # org_project_signaling_iface_interface_info (void) 2244s # { 2244s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_override_properties: 2244s # * @klass: The class structure for a #GObject derived class. 2244s # * @property_id_begin: The property id to assign to the first overridden property. 2244s # * 2244s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2244s # * The properties are overridden in the order they are defined. 2244s # * 2244s # * Returns: The last property id. 2244s # */ 2244s # guint 2244s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2244s # { 2244s # return property_id_begin - 1; 2244s # } 2244s # 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_simple_signal ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__VOID (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__BOOLEAN (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface: 2244s # * 2244s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceIface: 2244s # * @parent_iface: The parent interface. 2244s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2244s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 2244s # * 2244s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2244s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2244s # 2244s # static void 2244s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # /* GObject signals for received D-Bus signals: */ 2244s # /** 2244s # * OrgProjectSignalingIface::simple-signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2244s # g_signal_new ("simple-signal", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_simple_signal, 2244s # G_TYPE_NONE, 2244s # 0); 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface::single-arg-signal-b: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_b: Argument. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 2244s # g_signal_new ("single-arg-signal-b", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 2244s # G_TYPE_NONE, 2244s # 1, G_TYPE_BOOLEAN); 2244s # 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_simple_signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * Emits the "SimpleSignal" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_single_arg_signal_b: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_b: Argument to pass with the signal. 2244s # * 2244s # * Emits the "SingleArgSignalB" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_single_arg_signal_b ( 2244s # OrgProjectSignalingIface *object, 2244s # gboolean arg_arg_b) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_arg_b); 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxy: 2244s # * 2244s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxyClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceProxy. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceProxyPrivate 2244s # { 2244s # GData *qdata; 2244s # }; 2244s # 2244s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_proxy_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2244s # g_datalist_clear (&proxy->priv->qdata); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # const GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2244s # const gchar *sender_name G_GNUC_UNUSED, 2244s # const gchar *signal_name, 2244s # GVariant *parameters) 2244s # { 2244s # _ExtendedGDBusSignalInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # gsize n; 2244s # guint signal_id; 2244s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2244s # if (info == NULL) 2244s # return; 2244s # num_params = g_variant_n_children (parameters); 2244s # paramv = g_new0 (GValue, num_params + 1); 2244s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[0], proxy); 2244s # g_variant_iter_init (&iter, parameters); 2244s # n = 1; 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_signal_emitv (paramv, signal_id, 0, NULL); 2244s # for (n = 0; n < num_params + 1; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2244s # GVariant *changed_properties, 2244s # const gchar *const *invalidated_properties) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2244s # guint n; 2244s # const gchar *key; 2244s # GVariantIter *iter; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # g_variant_get (changed_properties, "a{sv}", &iter); 2244s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2244s # g_datalist_remove_data (&proxy->priv->qdata, key); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # g_variant_iter_free (iter); 2244s # for (n = 0; invalidated_properties[n] != NULL; n++) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2244s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2244s # #else 2244s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2244s # #endif 2244s # 2244s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusProxyClass *proxy_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2244s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2244s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2244s # 2244s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2244s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2244s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_sync: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_sync ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new_for_bus ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeleton: 2244s # * 2244s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeletonClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2244s # { 2244s # GValue *properties; 2244s # GList *changed_properties; 2244s # GSource *changed_properties_idle_source; 2244s # GMainContext *context; 2244s # GMutex lock; 2244s # }; 2244s # 2244s # static void 2244s # _org_project_signaling_iface_skeleton_handle_method_call ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name, 2244s # const gchar *method_name, 2244s # GVariant *parameters, 2244s # GDBusMethodInvocation *invocation, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # _ExtendedGDBusMethodInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # guint num_extra; 2244s # gsize n; 2244s # guint signal_id; 2244s # GValue return_value = G_VALUE_INIT; 2244s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2244s # g_assert (info != NULL); 2244s # num_params = g_variant_n_children (parameters); 2244s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2244s # n = 0; 2244s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[n++], skeleton); 2244s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2244s # g_value_set_object (¶mv[n++], invocation); 2244s # if (info->pass_fdlist) 2244s # { 2244s # #ifdef G_OS_UNIX 2244s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2244s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2244s # #else 2244s # g_assert_not_reached (); 2244s # #endif 2244s # } 2244s # g_variant_iter_init (&iter, parameters); 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2244s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2244s # if (!g_value_get_boolean (&return_value)) 2244s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2244s # g_value_unset (&return_value); 2244s # for (n = 0; n < num_params + num_extra; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static GVariant * 2244s # _org_project_signaling_iface_skeleton_handle_get_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # GVariant *ret; 2244s # ret = NULL; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # g_value_init (&value, pspec->value_type); 2244s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2244s # g_value_unset (&value); 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _org_project_signaling_iface_skeleton_handle_set_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GVariant *variant, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # gboolean ret; 2244s # ret = FALSE; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # if (info->use_gvariant) 2244s # g_value_set_variant (&value, variant); 2244s # else 2244s # g_dbus_gvariant_to_gvalue (variant, &value); 2244s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # g_value_unset (&value); 2244s # ret = TRUE; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2244s # { 2244s # _org_project_signaling_iface_skeleton_handle_method_call, 2244s # _org_project_signaling_iface_skeleton_handle_get_property, 2244s # _org_project_signaling_iface_skeleton_handle_set_property, 2244s # {NULL} 2244s # }; 2244s # 2244s # static GDBusInterfaceInfo * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return org_project_signaling_iface_interface_info (); 2244s # } 2244s # 2244s # static GDBusInterfaceVTable * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2244s # } 2244s # 2244s # static GVariant * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2244s # 2244s # GVariantBuilder builder; 2244s # guint n; 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2244s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #else 2244s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #endif 2244s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2244s # goto out; 2244s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2244s # { 2244s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2244s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2244s # { 2244s # GVariant *value; 2244s # 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); 2244s # if (value != NULL) 2244s # { 2244s # g_variant_take_ref (value); 2244s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2244s # g_variant_unref (value); 2244s # } 2244s # } 2244s # } 2244s # out: 2244s # return g_variant_builder_end (&builder); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 2244s # OrgProjectSignalingIface *object, 2244s # gboolean arg_arg_b) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 2244s # arg_arg_b)); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2244s # if (skeleton->priv->changed_properties_idle_source != NULL) 2244s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2244s # g_main_context_unref (skeleton->priv->context); 2244s # g_mutex_clear (&skeleton->priv->lock); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2244s # #else 2244s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2244s # #endif 2244s # 2244s # g_mutex_init (&skeleton->priv->lock); 2244s # skeleton->priv->context = g_main_context_ref_thread_default (); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusInterfaceSkeletonClass *skeleton_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2244s # 2244s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2244s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2244s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2244s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2244s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2244s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_skeleton_new: 2244s # * 2244s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_skeleton_new (void) 2244s # { 2244s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2244s # } 2244s # Error: 2244s # 2244s # /tmp/tmpcnzv9ghf/tmpb8coqzkm.xml: 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmpb8coqzkm.xml', '--output', '-', '--body'] 2244s # Return code: 0 2244s # Output: 2244s # /* 2244s # * This file is generated by gdbus-codegen, do not modify it. 2244s # * 2244s # * The license of this code is the same as for the D-Bus interface description 2244s # * it was derived from. Note that it links to GLib, so must comply with the 2244s # * LGPL linking clauses. 2244s # */ 2244s # 2244s # #ifdef HAVE_CONFIG_H 2244s # # include "config.h" 2244s # #endif 2244s # 2244s # #include 2244s # #ifdef G_OS_UNIX 2244s # # include 2244s # #endif 2244s # 2244s # #ifdef G_ENABLE_DEBUG 2244s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2244s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2244s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2244s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2244s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2244s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2244s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2244s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2244s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2244s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2244s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2244s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2244s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2244s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2244s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2244s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2244s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2244s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2244s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2244s # #else /* !G_ENABLE_DEBUG */ 2244s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2244s # * Do not access GValues directly in your code. Instead, use the 2244s # * g_value_get_*() functions 2244s # */ 2244s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2244s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2244s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2244s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2244s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2244s # #endif /* !G_ENABLE_DEBUG */ 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusArgInfo parent_struct; 2244s # gboolean use_gvariant; 2244s # } _ExtendedGDBusArgInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusMethodInfo parent_struct; 2244s # const gchar *signal_name; 2244s # gboolean pass_fdlist; 2244s # } _ExtendedGDBusMethodInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusSignalInfo parent_struct; 2244s # const gchar *signal_name; 2244s # } _ExtendedGDBusSignalInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusPropertyInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # guint use_gvariant : 1; 2244s # guint emits_changed_signal : 1; 2244s # } _ExtendedGDBusPropertyInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusInterfaceInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # } _ExtendedGDBusInterfaceInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # const _ExtendedGDBusPropertyInfo *info; 2244s # guint prop_id; 2244s # GValue orig_value; /* the value before the change */ 2244s # } ChangedProperty; 2244s # 2244s # static void 2244s # _changed_property_free (ChangedProperty *data) 2244s # { 2244s # g_value_unset (&data->orig_value); 2244s # g_free (data); 2244s # } 2244s # 2244s # static gboolean 2244s # _g_strv_equal0 (gchar **a, gchar **b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # guint n; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # if (g_strv_length (a) != g_strv_length (b)) 2244s # goto out; 2244s # for (n = 0; a[n] != NULL; n++) 2244s # if (g_strcmp0 (a[n], b[n]) != 0) 2244s # goto out; 2244s # ret = TRUE; 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _g_variant_equal0 (GVariant *a, GVariant *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # ret = g_variant_equal (a, b); 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # G_GNUC_UNUSED static gboolean 2244s # _g_value_equal (const GValue *a, const GValue *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2244s # switch (G_VALUE_TYPE (a)) 2244s # { 2244s # case G_TYPE_BOOLEAN: 2244s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2244s # break; 2244s # case G_TYPE_UCHAR: 2244s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2244s # break; 2244s # case G_TYPE_INT: 2244s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2244s # break; 2244s # case G_TYPE_UINT: 2244s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2244s # break; 2244s # case G_TYPE_INT64: 2244s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2244s # break; 2244s # case G_TYPE_UINT64: 2244s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2244s # break; 2244s # case G_TYPE_DOUBLE: 2244s # { 2244s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2244s # gdouble da = g_value_get_double (a); 2244s # gdouble db = g_value_get_double (b); 2244s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2244s # } 2244s # break; 2244s # case G_TYPE_STRING: 2244s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2244s # break; 2244s # case G_TYPE_VARIANT: 2244s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2244s # break; 2244s # default: 2244s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2244s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2244s # else 2244s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2244s # break; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ 2244s # * Code for interface org.project.SignalingIface 2244s # * ------------------------------------------------------------------------ 2244s # */ 2244s # 2244s # /** 2244s # * SECTION:OrgProjectSignalingIface 2244s # * @title: OrgProjectSignalingIface 2244s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2244s # * 2244s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2244s # */ 2244s # 2244s # enum 2244s # { 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2244s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 2244s # }; 2244s # 2244s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2244s # 2244s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SimpleSignal", 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "simple-signal" 2244s # }; 2244s # 2244s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "arg_y", 2244s # (gchar *) "y", 2244s # NULL 2244s # }, 2244s # FALSE 2244s # }; 2244s # 2244s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SingleArgSignalY", 2244s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 2244s # NULL 2244s # }, 2244s # "single-arg-signal-y" 2244s # }; 2244s # 2244s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "org.project.SignalingIface", 2244s # NULL, 2244s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "org-project-signaling-iface", 2244s # }; 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_interface_info: 2244s # * 2244s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2244s # * 2244s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2244s # */ 2244s # GDBusInterfaceInfo * 2244s # org_project_signaling_iface_interface_info (void) 2244s # { 2244s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_override_properties: 2244s # * @klass: The class structure for a #GObject derived class. 2244s # * @property_id_begin: The property id to assign to the first overridden property. 2244s # * 2244s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2244s # * The properties are overridden in the order they are defined. 2244s # * 2244s # * Returns: The last property id. 2244s # */ 2244s # guint 2244s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2244s # { 2244s # return property_id_begin - 1; 2244s # } 2244s # 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_simple_signal ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__VOID (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__UCHAR (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface: 2244s # * 2244s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceIface: 2244s # * @parent_iface: The parent interface. 2244s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2244s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 2244s # * 2244s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2244s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2244s # 2244s # static void 2244s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # /* GObject signals for received D-Bus signals: */ 2244s # /** 2244s # * OrgProjectSignalingIface::simple-signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2244s # g_signal_new ("simple-signal", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_simple_signal, 2244s # G_TYPE_NONE, 2244s # 0); 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface::single-arg-signal-y: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_y: Argument. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 2244s # g_signal_new ("single-arg-signal-y", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 2244s # G_TYPE_NONE, 2244s # 1, G_TYPE_UCHAR); 2244s # 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_simple_signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * Emits the "SimpleSignal" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_single_arg_signal_y: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_y: Argument to pass with the signal. 2244s # * 2244s # * Emits the "SingleArgSignalY" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_single_arg_signal_y ( 2244s # OrgProjectSignalingIface *object, 2244s # guchar arg_arg_y) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_arg_y); 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxy: 2244s # * 2244s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxyClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceProxy. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceProxyPrivate 2244s # { 2244s # GData *qdata; 2244s # }; 2244s # 2244s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_proxy_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2244s # g_datalist_clear (&proxy->priv->qdata); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # const GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2244s # const gchar *sender_name G_GNUC_UNUSED, 2244s # const gchar *signal_name, 2244s # GVariant *parameters) 2244s # { 2244s # _ExtendedGDBusSignalInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # gsize n; 2244s # guint signal_id; 2244s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2244s # if (info == NULL) 2244s # return; 2244s # num_params = g_variant_n_children (parameters); 2244s # paramv = g_new0 (GValue, num_params + 1); 2244s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[0], proxy); 2244s # g_variant_iter_init (&iter, parameters); 2244s # n = 1; 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_signal_emitv (paramv, signal_id, 0, NULL); 2244s # for (n = 0; n < num_params + 1; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2244s # GVariant *changed_properties, 2244s # const gchar *const *invalidated_properties) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2244s # guint n; 2244s # const gchar *key; 2244s # GVariantIter *iter; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # g_variant_get (changed_properties, "a{sv}", &iter); 2244s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2244s # g_datalist_remove_data (&proxy->priv->qdata, key); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # g_variant_iter_free (iter); 2244s # for (n = 0; invalidated_properties[n] != NULL; n++) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2244s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2244s # #else 2244s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2244s # #endif 2244s # 2244s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusProxyClass *proxy_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2244s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2244s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2244s # 2244s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2244s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2244s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_sync: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_sync ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new_for_bus ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeleton: 2244s # * 2244s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeletonClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2244s # { 2244s # GValue *properties; 2244s # GList *changed_properties; 2244s # GSource *changed_properties_idle_source; 2244s # GMainContext *context; 2244s # GMutex lock; 2244s # }; 2244s # 2244s # static void 2244s # _org_project_signaling_iface_skeleton_handle_method_call ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name, 2244s # const gchar *method_name, 2244s # GVariant *parameters, 2244s # GDBusMethodInvocation *invocation, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # _ExtendedGDBusMethodInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # guint num_extra; 2244s # gsize n; 2244s # guint signal_id; 2244s # GValue return_value = G_VALUE_INIT; 2244s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2244s # g_assert (info != NULL); 2244s # num_params = g_variant_n_children (parameters); 2244s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2244s # n = 0; 2244s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[n++], skeleton); 2244s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2244s # g_value_set_object (¶mv[n++], invocation); 2244s # if (info->pass_fdlist) 2244s # { 2244s # #ifdef G_OS_UNIX 2244s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2244s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2244s # #else 2244s # g_assert_not_reached (); 2244s # #endif 2244s # } 2244s # g_variant_iter_init (&iter, parameters); 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2244s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2244s # if (!g_value_get_boolean (&return_value)) 2244s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2244s # g_value_unset (&return_value); 2244s # for (n = 0; n < num_params + num_extra; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static GVariant * 2244s # _org_project_signaling_iface_skeleton_handle_get_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # GVariant *ret; 2244s # ret = NULL; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # g_value_init (&value, pspec->value_type); 2244s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2244s # g_value_unset (&value); 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _org_project_signaling_iface_skeleton_handle_set_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GVariant *variant, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # gboolean ret; 2244s # ret = FALSE; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # if (info->use_gvariant) 2244s # g_value_set_variant (&value, variant); 2244s # else 2244s # g_dbus_gvariant_to_gvalue (variant, &value); 2244s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # g_value_unset (&value); 2244s # ret = TRUE; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2244s # { 2244s # _org_project_signaling_iface_skeleton_handle_method_call, 2244s # _org_project_signaling_iface_skeleton_handle_get_property, 2244s # _org_project_signaling_iface_skeleton_handle_set_property, 2244s # {NULL} 2244s # }; 2244s # 2244s # static GDBusInterfaceInfo * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return org_project_signaling_iface_interface_info (); 2244s # } 2244s # 2244s # static GDBusInterfaceVTable * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2244s # } 2244s # 2244s # static GVariant * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2244s # 2244s # GVariantBuilder builder; 2244s # guint n; 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2244s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #else 2244s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #endif 2244s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2244s # goto out; 2244s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2244s # { 2244s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2244s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2244s # { 2244s # GVariant *value; 2244s # 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); 2244s # if (value != NULL) 2244s # { 2244s # g_variant_take_ref (value); 2244s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2244s # g_variant_unref (value); 2244s # } 2244s # } 2244s # } 2244s # out: 2244s # return g_variant_builder_end (&builder); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 2244s # OrgProjectSignalingIface *object, 2244s # guchar arg_arg_y) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 2244s # arg_arg_y)); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2244s # if (skeleton->priv->changed_properties_idle_source != NULL) 2244s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2244s # g_main_context_unref (skeleton->priv->context); 2244s # g_mutex_clear (&skeleton->priv->lock); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2244s # #else 2244s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2244s # #endif 2244s # 2244s # g_mutex_init (&skeleton->priv->lock); 2244s # skeleton->priv->context = g_main_context_ref_thread_default (); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusInterfaceSkeletonClass *skeleton_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2244s # 2244s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2244s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2244s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2244s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2244s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2244s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_skeleton_new: 2244s # * 2244s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_skeleton_new (void) 2244s # { 2244s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2244s # } 2244s # Error: 2244s # 2244s # /tmp/tmpcnzv9ghf/tmpxjhlgbeo.xml: 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmpxjhlgbeo.xml', '--output', '-', '--body'] 2244s # Return code: 0 2244s # Output: 2244s # /* 2244s # * This file is generated by gdbus-codegen, do not modify it. 2244s # * 2244s # * The license of this code is the same as for the D-Bus interface description 2244s # * it was derived from. Note that it links to GLib, so must comply with the 2244s # * LGPL linking clauses. 2244s # */ 2244s # 2244s # #ifdef HAVE_CONFIG_H 2244s # # include "config.h" 2244s # #endif 2244s # 2244s # #include 2244s # #ifdef G_OS_UNIX 2244s # # include 2244s # #endif 2244s # 2244s # #ifdef G_ENABLE_DEBUG 2244s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2244s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2244s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2244s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2244s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2244s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2244s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2244s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2244s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2244s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2244s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2244s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2244s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2244s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2244s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2244s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2244s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2244s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2244s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2244s # #else /* !G_ENABLE_DEBUG */ 2244s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2244s # * Do not access GValues directly in your code. Instead, use the 2244s # * g_value_get_*() functions 2244s # */ 2244s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2244s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2244s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2244s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2244s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2244s # #endif /* !G_ENABLE_DEBUG */ 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusArgInfo parent_struct; 2244s # gboolean use_gvariant; 2244s # } _ExtendedGDBusArgInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusMethodInfo parent_struct; 2244s # const gchar *signal_name; 2244s # gboolean pass_fdlist; 2244s # } _ExtendedGDBusMethodInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusSignalInfo parent_struct; 2244s # const gchar *signal_name; 2244s # } _ExtendedGDBusSignalInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusPropertyInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # guint use_gvariant : 1; 2244s # guint emits_changed_signal : 1; 2244s # } _ExtendedGDBusPropertyInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusInterfaceInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # } _ExtendedGDBusInterfaceInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # const _ExtendedGDBusPropertyInfo *info; 2244s # guint prop_id; 2244s # GValue orig_value; /* the value before the change */ 2244s # } ChangedProperty; 2244s # 2244s # static void 2244s # _changed_property_free (ChangedProperty *data) 2244s # { 2244s # g_value_unset (&data->orig_value); 2244s # g_free (data); 2244s # } 2244s # 2244s # static gboolean 2244s # _g_strv_equal0 (gchar **a, gchar **b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # guint n; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # if (g_strv_length (a) != g_strv_length (b)) 2244s # goto out; 2244s # for (n = 0; a[n] != NULL; n++) 2244s # if (g_strcmp0 (a[n], b[n]) != 0) 2244s # goto out; 2244s # ret = TRUE; 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _g_variant_equal0 (GVariant *a, GVariant *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # ret = g_variant_equal (a, b); 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # G_GNUC_UNUSED static gboolean 2244s # _g_value_equal (const GValue *a, const GValue *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2244s # switch (G_VALUE_TYPE (a)) 2244s # { 2244s # case G_TYPE_BOOLEAN: 2244s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2244s # break; 2244s # case G_TYPE_UCHAR: 2244s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2244s # break; 2244s # case G_TYPE_INT: 2244s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2244s # break; 2244s # case G_TYPE_UINT: 2244s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2244s # break; 2244s # case G_TYPE_INT64: 2244s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2244s # break; 2244s # case G_TYPE_UINT64: 2244s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2244s # break; 2244s # case G_TYPE_DOUBLE: 2244s # { 2244s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2244s # gdouble da = g_value_get_double (a); 2244s # gdouble db = g_value_get_double (b); 2244s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2244s # } 2244s # break; 2244s # case G_TYPE_STRING: 2244s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2244s # break; 2244s # case G_TYPE_VARIANT: 2244s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2244s # break; 2244s # default: 2244s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2244s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2244s # else 2244s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2244s # break; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ 2244s # * Code for interface org.project.SignalingIface 2244s # * ------------------------------------------------------------------------ 2244s # */ 2244s # 2244s # /** 2244s # * SECTION:OrgProjectSignalingIface 2244s # * @title: OrgProjectSignalingIface 2244s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2244s # * 2244s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2244s # */ 2244s # 2244s # enum 2244s # { 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2244s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 2244s # }; 2244s # 2244s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2244s # 2244s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SimpleSignal", 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "simple-signal" 2244s # }; 2244s # 2244s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "arg_n", 2244s # (gchar *) "n", 2244s # NULL 2244s # }, 2244s # FALSE 2244s # }; 2244s # 2244s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SingleArgSignalN", 2244s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 2244s # NULL 2244s # }, 2244s # "single-arg-signal-n" 2244s # }; 2244s # 2244s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "org.project.SignalingIface", 2244s # NULL, 2244s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "org-project-signaling-iface", 2244s # }; 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_interface_info: 2244s # * 2244s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2244s # * 2244s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2244s # */ 2244s # GDBusInterfaceInfo * 2244s # org_project_signaling_iface_interface_info (void) 2244s # { 2244s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_override_properties: 2244s # * @klass: The class structure for a #GObject derived class. 2244s # * @property_id_begin: The property id to assign to the first overridden property. 2244s # * 2244s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2244s # * The properties are overridden in the order they are defined. 2244s # * 2244s # * Returns: The last property id. 2244s # */ 2244s # guint 2244s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2244s # { 2244s # return property_id_begin - 1; 2244s # } 2244s # 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_simple_signal ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__VOID (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__INT (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface: 2244s # * 2244s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceIface: 2244s # * @parent_iface: The parent interface. 2244s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2244s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 2244s # * 2244s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2244s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2244s # 2244s # static void 2244s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # /* GObject signals for received D-Bus signals: */ 2244s # /** 2244s # * OrgProjectSignalingIface::simple-signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2244s # g_signal_new ("simple-signal", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_simple_signal, 2244s # G_TYPE_NONE, 2244s # 0); 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface::single-arg-signal-n: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_n: Argument. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 2244s # g_signal_new ("single-arg-signal-n", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 2244s # G_TYPE_NONE, 2244s # 1, G_TYPE_INT); 2244s # 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_simple_signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * Emits the "SimpleSignal" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_single_arg_signal_n: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_n: Argument to pass with the signal. 2244s # * 2244s # * Emits the "SingleArgSignalN" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_single_arg_signal_n ( 2244s # OrgProjectSignalingIface *object, 2244s # gint16 arg_arg_n) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_arg_n); 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxy: 2244s # * 2244s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxyClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceProxy. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceProxyPrivate 2244s # { 2244s # GData *qdata; 2244s # }; 2244s # 2244s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_proxy_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2244s # g_datalist_clear (&proxy->priv->qdata); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # const GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2244s # const gchar *sender_name G_GNUC_UNUSED, 2244s # const gchar *signal_name, 2244s # GVariant *parameters) 2244s # { 2244s # _ExtendedGDBusSignalInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # gsize n; 2244s # guint signal_id; 2244s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2244s # if (info == NULL) 2244s # return; 2244s # num_params = g_variant_n_children (parameters); 2244s # paramv = g_new0 (GValue, num_params + 1); 2244s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[0], proxy); 2244s # g_variant_iter_init (&iter, parameters); 2244s # n = 1; 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_signal_emitv (paramv, signal_id, 0, NULL); 2244s # for (n = 0; n < num_params + 1; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2244s # GVariant *changed_properties, 2244s # const gchar *const *invalidated_properties) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2244s # guint n; 2244s # const gchar *key; 2244s # GVariantIter *iter; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # g_variant_get (changed_properties, "a{sv}", &iter); 2244s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2244s # g_datalist_remove_data (&proxy->priv->qdata, key); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # g_variant_iter_free (iter); 2244s # for (n = 0; invalidated_properties[n] != NULL; n++) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2244s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2244s # #else 2244s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2244s # #endif 2244s # 2244s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusProxyClass *proxy_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2244s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2244s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2244s # 2244s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2244s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2244s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_sync: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_sync ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new_for_bus ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeleton: 2244s # * 2244s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeletonClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2244s # { 2244s # GValue *properties; 2244s # GList *changed_properties; 2244s # GSource *changed_properties_idle_source; 2244s # GMainContext *context; 2244s # GMutex lock; 2244s # }; 2244s # 2244s # static void 2244s # _org_project_signaling_iface_skeleton_handle_method_call ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name, 2244s # const gchar *method_name, 2244s # GVariant *parameters, 2244s # GDBusMethodInvocation *invocation, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # _ExtendedGDBusMethodInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # guint num_extra; 2244s # gsize n; 2244s # guint signal_id; 2244s # GValue return_value = G_VALUE_INIT; 2244s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2244s # g_assert (info != NULL); 2244s # num_params = g_variant_n_children (parameters); 2244s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2244s # n = 0; 2244s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[n++], skeleton); 2244s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2244s # g_value_set_object (¶mv[n++], invocation); 2244s # if (info->pass_fdlist) 2244s # { 2244s # #ifdef G_OS_UNIX 2244s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2244s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2244s # #else 2244s # g_assert_not_reached (); 2244s # #endif 2244s # } 2244s # g_variant_iter_init (&iter, parameters); 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2244s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2244s # if (!g_value_get_boolean (&return_value)) 2244s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2244s # g_value_unset (&return_value); 2244s # for (n = 0; n < num_params + num_extra; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static GVariant * 2244s # _org_project_signaling_iface_skeleton_handle_get_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # GVariant *ret; 2244s # ret = NULL; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # g_value_init (&value, pspec->value_type); 2244s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2244s # g_value_unset (&value); 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _org_project_signaling_iface_skeleton_handle_set_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GVariant *variant, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # gboolean ret; 2244s # ret = FALSE; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # if (info->use_gvariant) 2244s # g_value_set_variant (&value, variant); 2244s # else 2244s # g_dbus_gvariant_to_gvalue (variant, &value); 2244s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # g_value_unset (&value); 2244s # ret = TRUE; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2244s # { 2244s # _org_project_signaling_iface_skeleton_handle_method_call, 2244s # _org_project_signaling_iface_skeleton_handle_get_property, 2244s # _org_project_signaling_iface_skeleton_handle_set_property, 2244s # {NULL} 2244s # }; 2244s # 2244s # static GDBusInterfaceInfo * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return org_project_signaling_iface_interface_info (); 2244s # } 2244s # 2244s # static GDBusInterfaceVTable * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2244s # } 2244s # 2244s # static GVariant * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2244s # 2244s # GVariantBuilder builder; 2244s # guint n; 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2244s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #else 2244s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #endif 2244s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2244s # goto out; 2244s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2244s # { 2244s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2244s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2244s # { 2244s # GVariant *value; 2244s # 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); 2244s # if (value != NULL) 2244s # { 2244s # g_variant_take_ref (value); 2244s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2244s # g_variant_unref (value); 2244s # } 2244s # } 2244s # } 2244s # out: 2244s # return g_variant_builder_end (&builder); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 2244s # OrgProjectSignalingIface *object, 2244s # gint16 arg_arg_n) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 2244s # arg_arg_n)); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2244s # if (skeleton->priv->changed_properties_idle_source != NULL) 2244s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2244s # g_main_context_unref (skeleton->priv->context); 2244s # g_mutex_clear (&skeleton->priv->lock); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2244s # #else 2244s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2244s # #endif 2244s # 2244s # g_mutex_init (&skeleton->priv->lock); 2244s # skeleton->priv->context = g_main_context_ref_thread_default (); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusInterfaceSkeletonClass *skeleton_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2244s # 2244s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2244s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2244s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2244s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2244s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2244s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_skeleton_new: 2244s # * 2244s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_skeleton_new (void) 2244s # { 2244s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2244s # } 2244s # Error: 2244s # 2244s # /tmp/tmpcnzv9ghf/tmppjpqmv58.xml: 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmppjpqmv58.xml', '--output', '-', '--body'] 2244s # Return code: 0 2244s # Output: 2244s # /* 2244s # * This file is generated by gdbus-codegen, do not modify it. 2244s # * 2244s # * The license of this code is the same as for the D-Bus interface description 2244s # * it was derived from. Note that it links to GLib, so must comply with the 2244s # * LGPL linking clauses. 2244s # */ 2244s # 2244s # #ifdef HAVE_CONFIG_H 2244s # # include "config.h" 2244s # #endif 2244s # 2244s # #include 2244s # #ifdef G_OS_UNIX 2244s # # include 2244s # #endif 2244s # 2244s # #ifdef G_ENABLE_DEBUG 2244s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2244s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2244s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2244s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2244s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2244s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2244s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2244s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2244s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2244s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2244s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2244s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2244s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2244s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2244s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2244s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2244s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2244s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2244s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2244s # #else /* !G_ENABLE_DEBUG */ 2244s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2244s # * Do not access GValues directly in your code. Instead, use the 2244s # * g_value_get_*() functions 2244s # */ 2244s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2244s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2244s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2244s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2244s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2244s # #endif /* !G_ENABLE_DEBUG */ 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusArgInfo parent_struct; 2244s # gboolean use_gvariant; 2244s # } _ExtendedGDBusArgInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusMethodInfo parent_struct; 2244s # const gchar *signal_name; 2244s # gboolean pass_fdlist; 2244s # } _ExtendedGDBusMethodInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusSignalInfo parent_struct; 2244s # const gchar *signal_name; 2244s # } _ExtendedGDBusSignalInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusPropertyInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # guint use_gvariant : 1; 2244s # guint emits_changed_signal : 1; 2244s # } _ExtendedGDBusPropertyInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusInterfaceInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # } _ExtendedGDBusInterfaceInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # const _ExtendedGDBusPropertyInfo *info; 2244s # guint prop_id; 2244s # GValue orig_value; /* the value before the change */ 2244s # } ChangedProperty; 2244s # 2244s # static void 2244s # _changed_property_free (ChangedProperty *data) 2244s # { 2244s # g_value_unset (&data->orig_value); 2244s # g_free (data); 2244s # } 2244s # 2244s # static gboolean 2244s # _g_strv_equal0 (gchar **a, gchar **b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # guint n; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # if (g_strv_length (a) != g_strv_length (b)) 2244s # goto out; 2244s # for (n = 0; a[n] != NULL; n++) 2244s # if (g_strcmp0 (a[n], b[n]) != 0) 2244s # goto out; 2244s # ret = TRUE; 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _g_variant_equal0 (GVariant *a, GVariant *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # ret = g_variant_equal (a, b); 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # G_GNUC_UNUSED static gboolean 2244s # _g_value_equal (const GValue *a, const GValue *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2244s # switch (G_VALUE_TYPE (a)) 2244s # { 2244s # case G_TYPE_BOOLEAN: 2244s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2244s # break; 2244s # case G_TYPE_UCHAR: 2244s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2244s # break; 2244s # case G_TYPE_INT: 2244s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2244s # break; 2244s # case G_TYPE_UINT: 2244s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2244s # break; 2244s # case G_TYPE_INT64: 2244s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2244s # break; 2244s # case G_TYPE_UINT64: 2244s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2244s # break; 2244s # case G_TYPE_DOUBLE: 2244s # { 2244s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2244s # gdouble da = g_value_get_double (a); 2244s # gdouble db = g_value_get_double (b); 2244s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2244s # } 2244s # break; 2244s # case G_TYPE_STRING: 2244s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2244s # break; 2244s # case G_TYPE_VARIANT: 2244s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2244s # break; 2244s # default: 2244s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2244s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2244s # else 2244s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2244s # break; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ 2244s # * Code for interface org.project.SignalingIface 2244s # * ------------------------------------------------------------------------ 2244s # */ 2244s # 2244s # /** 2244s # * SECTION:OrgProjectSignalingIface 2244s # * @title: OrgProjectSignalingIface 2244s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2244s # * 2244s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2244s # */ 2244s # 2244s # enum 2244s # { 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2244s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 2244s # }; 2244s # 2244s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2244s # 2244s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SimpleSignal", 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "simple-signal" 2244s # }; 2244s # 2244s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "arg_q", 2244s # (gchar *) "q", 2244s # NULL 2244s # }, 2244s # FALSE 2244s # }; 2244s # 2244s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SingleArgSignalQ", 2244s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 2244s # NULL 2244s # }, 2244s # "single-arg-signal-q" 2244s # }; 2244s # 2244s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "org.project.SignalingIface", 2244s # NULL, 2244s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "org-project-signaling-iface", 2244s # }; 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_interface_info: 2244s # * 2244s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2244s # * 2244s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2244s # */ 2244s # GDBusInterfaceInfo * 2244s # org_project_signaling_iface_interface_info (void) 2244s # { 2244s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_override_properties: 2244s # * @klass: The class structure for a #GObject derived class. 2244s # * @property_id_begin: The property id to assign to the first overridden property. 2244s # * 2244s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2244s # * The properties are overridden in the order they are defined. 2244s # * 2244s # * Returns: The last property id. 2244s # */ 2244s # guint 2244s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2244s # { 2244s # return property_id_begin - 1; 2244s # } 2244s # 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_simple_signal ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__VOID (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__UINT (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface: 2244s # * 2244s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceIface: 2244s # * @parent_iface: The parent interface. 2244s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2244s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 2244s # * 2244s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2244s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2244s # 2244s # static void 2244s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # /* GObject signals for received D-Bus signals: */ 2244s # /** 2244s # * OrgProjectSignalingIface::simple-signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2244s # g_signal_new ("simple-signal", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_simple_signal, 2244s # G_TYPE_NONE, 2244s # 0); 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface::single-arg-signal-q: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_q: Argument. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 2244s # g_signal_new ("single-arg-signal-q", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 2244s # G_TYPE_NONE, 2244s # 1, G_TYPE_UINT); 2244s # 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_simple_signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * Emits the "SimpleSignal" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_single_arg_signal_q: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_q: Argument to pass with the signal. 2244s # * 2244s # * Emits the "SingleArgSignalQ" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_single_arg_signal_q ( 2244s # OrgProjectSignalingIface *object, 2244s # guint16 arg_arg_q) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_arg_q); 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxy: 2244s # * 2244s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxyClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceProxy. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceProxyPrivate 2244s # { 2244s # GData *qdata; 2244s # }; 2244s # 2244s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_proxy_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2244s # g_datalist_clear (&proxy->priv->qdata); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # const GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2244s # const gchar *sender_name G_GNUC_UNUSED, 2244s # const gchar *signal_name, 2244s # GVariant *parameters) 2244s # { 2244s # _ExtendedGDBusSignalInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # gsize n; 2244s # guint signal_id; 2244s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2244s # if (info == NULL) 2244s # return; 2244s # num_params = g_variant_n_children (parameters); 2244s # paramv = g_new0 (GValue, num_params + 1); 2244s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[0], proxy); 2244s # g_variant_iter_init (&iter, parameters); 2244s # n = 1; 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_signal_emitv (paramv, signal_id, 0, NULL); 2244s # for (n = 0; n < num_params + 1; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2244s # GVariant *changed_properties, 2244s # const gchar *const *invalidated_properties) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2244s # guint n; 2244s # const gchar *key; 2244s # GVariantIter *iter; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # g_variant_get (changed_properties, "a{sv}", &iter); 2244s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2244s # g_datalist_remove_data (&proxy->priv->qdata, key); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # g_variant_iter_free (iter); 2244s # for (n = 0; invalidated_properties[n] != NULL; n++) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2244s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2244s # #else 2244s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2244s # #endif 2244s # 2244s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusProxyClass *proxy_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2244s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2244s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2244s # 2244s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2244s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2244s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_sync: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_sync ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new_for_bus ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeleton: 2244s # * 2244s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeletonClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2244s # { 2244s # GValue *properties; 2244s # GList *changed_properties; 2244s # GSource *changed_properties_idle_source; 2244s # GMainContext *context; 2244s # GMutex lock; 2244s # }; 2244s # 2244s # static void 2244s # _org_project_signaling_iface_skeleton_handle_method_call ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name, 2244s # const gchar *method_name, 2244s # GVariant *parameters, 2244s # GDBusMethodInvocation *invocation, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # _ExtendedGDBusMethodInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # guint num_extra; 2244s # gsize n; 2244s # guint signal_id; 2244s # GValue return_value = G_VALUE_INIT; 2244s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2244s # g_assert (info != NULL); 2244s # num_params = g_variant_n_children (parameters); 2244s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2244s # n = 0; 2244s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[n++], skeleton); 2244s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2244s # g_value_set_object (¶mv[n++], invocation); 2244s # if (info->pass_fdlist) 2244s # { 2244s # #ifdef G_OS_UNIX 2244s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2244s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2244s # #else 2244s # g_assert_not_reached (); 2244s # #endif 2244s # } 2244s # g_variant_iter_init (&iter, parameters); 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2244s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2244s # if (!g_value_get_boolean (&return_value)) 2244s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2244s # g_value_unset (&return_value); 2244s # for (n = 0; n < num_params + num_extra; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static GVariant * 2244s # _org_project_signaling_iface_skeleton_handle_get_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # GVariant *ret; 2244s # ret = NULL; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # g_value_init (&value, pspec->value_type); 2244s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2244s # g_value_unset (&value); 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _org_project_signaling_iface_skeleton_handle_set_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GVariant *variant, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # gboolean ret; 2244s # ret = FALSE; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # if (info->use_gvariant) 2244s # g_value_set_variant (&value, variant); 2244s # else 2244s # g_dbus_gvariant_to_gvalue (variant, &value); 2244s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # g_value_unset (&value); 2244s # ret = TRUE; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2244s # { 2244s # _org_project_signaling_iface_skeleton_handle_method_call, 2244s # _org_project_signaling_iface_skeleton_handle_get_property, 2244s # _org_project_signaling_iface_skeleton_handle_set_property, 2244s # {NULL} 2244s # }; 2244s # 2244s # static GDBusInterfaceInfo * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return org_project_signaling_iface_interface_info (); 2244s # } 2244s # 2244s # static GDBusInterfaceVTable * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2244s # } 2244s # 2244s # static GVariant * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2244s # 2244s # GVariantBuilder builder; 2244s # guint n; 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2244s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #else 2244s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #endif 2244s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2244s # goto out; 2244s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2244s # { 2244s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2244s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2244s # { 2244s # GVariant *value; 2244s # 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); 2244s # if (value != NULL) 2244s # { 2244s # g_variant_take_ref (value); 2244s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2244s # g_variant_unref (value); 2244s # } 2244s # } 2244s # } 2244s # out: 2244s # return g_variant_builder_end (&builder); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 2244s # OrgProjectSignalingIface *object, 2244s # guint16 arg_arg_q) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 2244s # arg_arg_q)); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2244s # if (skeleton->priv->changed_properties_idle_source != NULL) 2244s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2244s # g_main_context_unref (skeleton->priv->context); 2244s # g_mutex_clear (&skeleton->priv->lock); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2244s # #else 2244s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2244s # #endif 2244s # 2244s # g_mutex_init (&skeleton->priv->lock); 2244s # skeleton->priv->context = g_main_context_ref_thread_default (); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusInterfaceSkeletonClass *skeleton_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2244s # 2244s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2244s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2244s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2244s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2244s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2244s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_skeleton_new: 2244s # * 2244s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_skeleton_new (void) 2244s # { 2244s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2244s # } 2244s # Error: 2244s # 2244s # /tmp/tmpcnzv9ghf/tmpxdyge55i.xml: 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmpxdyge55i.xml', '--output', '-', '--body'] 2244s # Return code: 0 2244s # Output: 2244s # /* 2244s # * This file is generated by gdbus-codegen, do not modify it. 2244s # * 2244s # * The license of this code is the same as for the D-Bus interface description 2244s # * it was derived from. Note that it links to GLib, so must comply with the 2244s # * LGPL linking clauses. 2244s # */ 2244s # 2244s # #ifdef HAVE_CONFIG_H 2244s # # include "config.h" 2244s # #endif 2244s # 2244s # #include 2244s # #ifdef G_OS_UNIX 2244s # # include 2244s # #endif 2244s # 2244s # #ifdef G_ENABLE_DEBUG 2244s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2244s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2244s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2244s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2244s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2244s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2244s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2244s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2244s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2244s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2244s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2244s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2244s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2244s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2244s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2244s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2244s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2244s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2244s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2244s # #else /* !G_ENABLE_DEBUG */ 2244s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2244s # * Do not access GValues directly in your code. Instead, use the 2244s # * g_value_get_*() functions 2244s # */ 2244s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2244s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2244s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2244s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2244s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2244s # #endif /* !G_ENABLE_DEBUG */ 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusArgInfo parent_struct; 2244s # gboolean use_gvariant; 2244s # } _ExtendedGDBusArgInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusMethodInfo parent_struct; 2244s # const gchar *signal_name; 2244s # gboolean pass_fdlist; 2244s # } _ExtendedGDBusMethodInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusSignalInfo parent_struct; 2244s # const gchar *signal_name; 2244s # } _ExtendedGDBusSignalInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusPropertyInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # guint use_gvariant : 1; 2244s # guint emits_changed_signal : 1; 2244s # } _ExtendedGDBusPropertyInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusInterfaceInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # } _ExtendedGDBusInterfaceInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # const _ExtendedGDBusPropertyInfo *info; 2244s # guint prop_id; 2244s # GValue orig_value; /* the value before the change */ 2244s # } ChangedProperty; 2244s # 2244s # static void 2244s # _changed_property_free (ChangedProperty *data) 2244s # { 2244s # g_value_unset (&data->orig_value); 2244s # g_free (data); 2244s # } 2244s # 2244s # static gboolean 2244s # _g_strv_equal0 (gchar **a, gchar **b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # guint n; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # if (g_strv_length (a) != g_strv_length (b)) 2244s # goto out; 2244s # for (n = 0; a[n] != NULL; n++) 2244s # if (g_strcmp0 (a[n], b[n]) != 0) 2244s # goto out; 2244s # ret = TRUE; 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _g_variant_equal0 (GVariant *a, GVariant *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # ret = g_variant_equal (a, b); 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # G_GNUC_UNUSED static gboolean 2244s # _g_value_equal (const GValue *a, const GValue *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2244s # switch (G_VALUE_TYPE (a)) 2244s # { 2244s # case G_TYPE_BOOLEAN: 2244s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2244s # break; 2244s # case G_TYPE_UCHAR: 2244s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2244s # break; 2244s # case G_TYPE_INT: 2244s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2244s # break; 2244s # case G_TYPE_UINT: 2244s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2244s # break; 2244s # case G_TYPE_INT64: 2244s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2244s # break; 2244s # case G_TYPE_UINT64: 2244s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2244s # break; 2244s # case G_TYPE_DOUBLE: 2244s # { 2244s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2244s # gdouble da = g_value_get_double (a); 2244s # gdouble db = g_value_get_double (b); 2244s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2244s # } 2244s # break; 2244s # case G_TYPE_STRING: 2244s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2244s # break; 2244s # case G_TYPE_VARIANT: 2244s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2244s # break; 2244s # default: 2244s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2244s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2244s # else 2244s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2244s # break; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ 2244s # * Code for interface org.project.SignalingIface 2244s # * ------------------------------------------------------------------------ 2244s # */ 2244s # 2244s # /** 2244s # * SECTION:OrgProjectSignalingIface 2244s # * @title: OrgProjectSignalingIface 2244s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2244s # * 2244s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2244s # */ 2244s # 2244s # enum 2244s # { 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2244s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 2244s # }; 2244s # 2244s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2244s # 2244s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SimpleSignal", 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "simple-signal" 2244s # }; 2244s # 2244s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "arg_i", 2244s # (gchar *) "i", 2244s # NULL 2244s # }, 2244s # FALSE 2244s # }; 2244s # 2244s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SingleArgSignalI", 2244s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 2244s # NULL 2244s # }, 2244s # "single-arg-signal-i" 2244s # }; 2244s # 2244s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "org.project.SignalingIface", 2244s # NULL, 2244s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "org-project-signaling-iface", 2244s # }; 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_interface_info: 2244s # * 2244s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2244s # * 2244s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2244s # */ 2244s # GDBusInterfaceInfo * 2244s # org_project_signaling_iface_interface_info (void) 2244s # { 2244s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_override_properties: 2244s # * @klass: The class structure for a #GObject derived class. 2244s # * @property_id_begin: The property id to assign to the first overridden property. 2244s # * 2244s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2244s # * The properties are overridden in the order they are defined. 2244s # * 2244s # * Returns: The last property id. 2244s # */ 2244s # guint 2244s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2244s # { 2244s # return property_id_begin - 1; 2244s # } 2244s # 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_simple_signal ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__VOID (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__INT (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface: 2244s # * 2244s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceIface: 2244s # * @parent_iface: The parent interface. 2244s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2244s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 2244s # * 2244s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2244s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2244s # 2244s # static void 2244s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # /* GObject signals for received D-Bus signals: */ 2244s # /** 2244s # * OrgProjectSignalingIface::simple-signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2244s # g_signal_new ("simple-signal", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_simple_signal, 2244s # G_TYPE_NONE, 2244s # 0); 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface::single-arg-signal-i: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_i: Argument. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 2244s # g_signal_new ("single-arg-signal-i", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 2244s # G_TYPE_NONE, 2244s # 1, G_TYPE_INT); 2244s # 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_simple_signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * Emits the "SimpleSignal" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_single_arg_signal_i: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_i: Argument to pass with the signal. 2244s # * 2244s # * Emits the "SingleArgSignalI" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_single_arg_signal_i ( 2244s # OrgProjectSignalingIface *object, 2244s # gint arg_arg_i) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_arg_i); 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxy: 2244s # * 2244s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxyClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceProxy. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceProxyPrivate 2244s # { 2244s # GData *qdata; 2244s # }; 2244s # 2244s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_proxy_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2244s # g_datalist_clear (&proxy->priv->qdata); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # const GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2244s # const gchar *sender_name G_GNUC_UNUSED, 2244s # const gchar *signal_name, 2244s # GVariant *parameters) 2244s # { 2244s # _ExtendedGDBusSignalInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # gsize n; 2244s # guint signal_id; 2244s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2244s # if (info == NULL) 2244s # return; 2244s # num_params = g_variant_n_children (parameters); 2244s # paramv = g_new0 (GValue, num_params + 1); 2244s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[0], proxy); 2244s # g_variant_iter_init (&iter, parameters); 2244s # n = 1; 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_signal_emitv (paramv, signal_id, 0, NULL); 2244s # for (n = 0; n < num_params + 1; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2244s # GVariant *changed_properties, 2244s # const gchar *const *invalidated_properties) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2244s # guint n; 2244s # const gchar *key; 2244s # GVariantIter *iter; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # g_variant_get (changed_properties, "a{sv}", &iter); 2244s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2244s # g_datalist_remove_data (&proxy->priv->qdata, key); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # g_variant_iter_free (iter); 2244s # for (n = 0; invalidated_properties[n] != NULL; n++) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2244s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2244s # #else 2244s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2244s # #endif 2244s # 2244s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusProxyClass *proxy_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2244s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2244s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2244s # 2244s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2244s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2244s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_sync: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_sync ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new_for_bus ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeleton: 2244s # * 2244s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeletonClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2244s # { 2244s # GValue *properties; 2244s # GList *changed_properties; 2244s # GSource *changed_properties_idle_source; 2244s # GMainContext *context; 2244s # GMutex lock; 2244s # }; 2244s # 2244s # static void 2244s # _org_project_signaling_iface_skeleton_handle_method_call ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name, 2244s # const gchar *method_name, 2244s # GVariant *parameters, 2244s # GDBusMethodInvocation *invocation, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # _ExtendedGDBusMethodInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # guint num_extra; 2244s # gsize n; 2244s # guint signal_id; 2244s # GValue return_value = G_VALUE_INIT; 2244s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2244s # g_assert (info != NULL); 2244s # num_params = g_variant_n_children (parameters); 2244s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2244s # n = 0; 2244s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[n++], skeleton); 2244s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2244s # g_value_set_object (¶mv[n++], invocation); 2244s # if (info->pass_fdlist) 2244s # { 2244s # #ifdef G_OS_UNIX 2244s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2244s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2244s # #else 2244s # g_assert_not_reached (); 2244s # #endif 2244s # } 2244s # g_variant_iter_init (&iter, parameters); 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2244s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2244s # if (!g_value_get_boolean (&return_value)) 2244s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2244s # g_value_unset (&return_value); 2244s # for (n = 0; n < num_params + num_extra; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static GVariant * 2244s # _org_project_signaling_iface_skeleton_handle_get_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # GVariant *ret; 2244s # ret = NULL; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # g_value_init (&value, pspec->value_type); 2244s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2244s # g_value_unset (&value); 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _org_project_signaling_iface_skeleton_handle_set_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GVariant *variant, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # gboolean ret; 2244s # ret = FALSE; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # if (info->use_gvariant) 2244s # g_value_set_variant (&value, variant); 2244s # else 2244s # g_dbus_gvariant_to_gvalue (variant, &value); 2244s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # g_value_unset (&value); 2244s # ret = TRUE; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2244s # { 2244s # _org_project_signaling_iface_skeleton_handle_method_call, 2244s # _org_project_signaling_iface_skeleton_handle_get_property, 2244s # _org_project_signaling_iface_skeleton_handle_set_property, 2244s # {NULL} 2244s # }; 2244s # 2244s # static GDBusInterfaceInfo * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return org_project_signaling_iface_interface_info (); 2244s # } 2244s # 2244s # static GDBusInterfaceVTable * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2244s # } 2244s # 2244s # static GVariant * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2244s # 2244s # GVariantBuilder builder; 2244s # guint n; 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2244s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #else 2244s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #endif 2244s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2244s # goto out; 2244s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2244s # { 2244s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2244s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2244s # { 2244s # GVariant *value; 2244s # 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); 2244s # if (value != NULL) 2244s # { 2244s # g_variant_take_ref (value); 2244s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2244s # g_variant_unref (value); 2244s # } 2244s # } 2244s # } 2244s # out: 2244s # return g_variant_builder_end (&builder); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 2244s # OrgProjectSignalingIface *object, 2244s # gint arg_arg_i) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 2244s # arg_arg_i)); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2244s # if (skeleton->priv->changed_properties_idle_source != NULL) 2244s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2244s # g_main_context_unref (skeleton->priv->context); 2244s # g_mutex_clear (&skeleton->priv->lock); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2244s # #else 2244s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2244s # #endif 2244s # 2244s # g_mutex_init (&skeleton->priv->lock); 2244s # skeleton->priv->context = g_main_context_ref_thread_default (); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusInterfaceSkeletonClass *skeleton_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2244s # 2244s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2244s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2244s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2244s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2244s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2244s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_skeleton_new: 2244s # * 2244s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_skeleton_new (void) 2244s # { 2244s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2244s # } 2244s # Error: 2244s # 2244s # /tmp/tmpcnzv9ghf/tmp9gsnvhsv.xml: 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmp9gsnvhsv.xml', '--output', '-', '--body'] 2244s # Return code: 0 2244s # Output: 2244s # /* 2244s # * This file is generated by gdbus-codegen, do not modify it. 2244s # * 2244s # * The license of this code is the same as for the D-Bus interface description 2244s # * it was derived from. Note that it links to GLib, so must comply with the 2244s # * LGPL linking clauses. 2244s # */ 2244s # 2244s # #ifdef HAVE_CONFIG_H 2244s # # include "config.h" 2244s # #endif 2244s # 2244s # #include 2244s # #ifdef G_OS_UNIX 2244s # # include 2244s # #endif 2244s # 2244s # #ifdef G_ENABLE_DEBUG 2244s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2244s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2244s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2244s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2244s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2244s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2244s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2244s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2244s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2244s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2244s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2244s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2244s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2244s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2244s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2244s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2244s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2244s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2244s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2244s # #else /* !G_ENABLE_DEBUG */ 2244s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2244s # * Do not access GValues directly in your code. Instead, use the 2244s # * g_value_get_*() functions 2244s # */ 2244s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2244s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2244s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2244s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2244s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2244s # #endif /* !G_ENABLE_DEBUG */ 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusArgInfo parent_struct; 2244s # gboolean use_gvariant; 2244s # } _ExtendedGDBusArgInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusMethodInfo parent_struct; 2244s # const gchar *signal_name; 2244s # gboolean pass_fdlist; 2244s # } _ExtendedGDBusMethodInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusSignalInfo parent_struct; 2244s # const gchar *signal_name; 2244s # } _ExtendedGDBusSignalInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusPropertyInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # guint use_gvariant : 1; 2244s # guint emits_changed_signal : 1; 2244s # } _ExtendedGDBusPropertyInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusInterfaceInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # } _ExtendedGDBusInterfaceInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # const _ExtendedGDBusPropertyInfo *info; 2244s # guint prop_id; 2244s # GValue orig_value; /* the value before the change */ 2244s # } ChangedProperty; 2244s # 2244s # static void 2244s # _changed_property_free (ChangedProperty *data) 2244s # { 2244s # g_value_unset (&data->orig_value); 2244s # g_free (data); 2244s # } 2244s # 2244s # static gboolean 2244s # _g_strv_equal0 (gchar **a, gchar **b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # guint n; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # if (g_strv_length (a) != g_strv_length (b)) 2244s # goto out; 2244s # for (n = 0; a[n] != NULL; n++) 2244s # if (g_strcmp0 (a[n], b[n]) != 0) 2244s # goto out; 2244s # ret = TRUE; 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _g_variant_equal0 (GVariant *a, GVariant *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # ret = g_variant_equal (a, b); 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # G_GNUC_UNUSED static gboolean 2244s # _g_value_equal (const GValue *a, const GValue *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2244s # switch (G_VALUE_TYPE (a)) 2244s # { 2244s # case G_TYPE_BOOLEAN: 2244s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2244s # break; 2244s # case G_TYPE_UCHAR: 2244s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2244s # break; 2244s # case G_TYPE_INT: 2244s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2244s # break; 2244s # case G_TYPE_UINT: 2244s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2244s # break; 2244s # case G_TYPE_INT64: 2244s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2244s # break; 2244s # case G_TYPE_UINT64: 2244s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2244s # break; 2244s # case G_TYPE_DOUBLE: 2244s # { 2244s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2244s # gdouble da = g_value_get_double (a); 2244s # gdouble db = g_value_get_double (b); 2244s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2244s # } 2244s # break; 2244s # case G_TYPE_STRING: 2244s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2244s # break; 2244s # case G_TYPE_VARIANT: 2244s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2244s # break; 2244s # default: 2244s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2244s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2244s # else 2244s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2244s # break; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ 2244s # * Code for interface org.project.SignalingIface 2244s # * ------------------------------------------------------------------------ 2244s # */ 2244s # 2244s # /** 2244s # * SECTION:OrgProjectSignalingIface 2244s # * @title: OrgProjectSignalingIface 2244s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2244s # * 2244s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2244s # */ 2244s # 2244s # enum 2244s # { 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2244s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 2244s # }; 2244s # 2244s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2244s # 2244s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SimpleSignal", 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "simple-signal" 2244s # }; 2244s # 2244s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "arg_u", 2244s # (gchar *) "u", 2244s # NULL 2244s # }, 2244s # FALSE 2244s # }; 2244s # 2244s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SingleArgSignalU", 2244s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 2244s # NULL 2244s # }, 2244s # "single-arg-signal-u" 2244s # }; 2244s # 2244s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "org.project.SignalingIface", 2244s # NULL, 2244s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "org-project-signaling-iface", 2244s # }; 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_interface_info: 2244s # * 2244s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2244s # * 2244s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2244s # */ 2244s # GDBusInterfaceInfo * 2244s # org_project_signaling_iface_interface_info (void) 2244s # { 2244s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_override_properties: 2244s # * @klass: The class structure for a #GObject derived class. 2244s # * @property_id_begin: The property id to assign to the first overridden property. 2244s # * 2244s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2244s # * The properties are overridden in the order they are defined. 2244s # * 2244s # * Returns: The last property id. 2244s # */ 2244s # guint 2244s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2244s # { 2244s # return property_id_begin - 1; 2244s # } 2244s # 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_simple_signal ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__VOID (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__UINT (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface: 2244s # * 2244s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceIface: 2244s # * @parent_iface: The parent interface. 2244s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2244s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 2244s # * 2244s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2244s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2244s # 2244s # static void 2244s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # /* GObject signals for received D-Bus signals: */ 2244s # /** 2244s # * OrgProjectSignalingIface::simple-signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2244s # g_signal_new ("simple-signal", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_simple_signal, 2244s # G_TYPE_NONE, 2244s # 0); 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface::single-arg-signal-u: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_u: Argument. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 2244s # g_signal_new ("single-arg-signal-u", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 2244s # G_TYPE_NONE, 2244s # 1, G_TYPE_UINT); 2244s # 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_simple_signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * Emits the "SimpleSignal" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_single_arg_signal_u: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_u: Argument to pass with the signal. 2244s # * 2244s # * Emits the "SingleArgSignalU" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_single_arg_signal_u ( 2244s # OrgProjectSignalingIface *object, 2244s # guint arg_arg_u) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_arg_u); 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxy: 2244s # * 2244s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxyClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceProxy. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceProxyPrivate 2244s # { 2244s # GData *qdata; 2244s # }; 2244s # 2244s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_proxy_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2244s # g_datalist_clear (&proxy->priv->qdata); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # const GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2244s # const gchar *sender_name G_GNUC_UNUSED, 2244s # const gchar *signal_name, 2244s # GVariant *parameters) 2244s # { 2244s # _ExtendedGDBusSignalInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # gsize n; 2244s # guint signal_id; 2244s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2244s # if (info == NULL) 2244s # return; 2244s # num_params = g_variant_n_children (parameters); 2244s # paramv = g_new0 (GValue, num_params + 1); 2244s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[0], proxy); 2244s # g_variant_iter_init (&iter, parameters); 2244s # n = 1; 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_signal_emitv (paramv, signal_id, 0, NULL); 2244s # for (n = 0; n < num_params + 1; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2244s # GVariant *changed_properties, 2244s # const gchar *const *invalidated_properties) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2244s # guint n; 2244s # const gchar *key; 2244s # GVariantIter *iter; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # g_variant_get (changed_properties, "a{sv}", &iter); 2244s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2244s # g_datalist_remove_data (&proxy->priv->qdata, key); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # g_variant_iter_free (iter); 2244s # for (n = 0; invalidated_properties[n] != NULL; n++) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2244s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2244s # #else 2244s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2244s # #endif 2244s # 2244s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusProxyClass *proxy_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2244s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2244s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2244s # 2244s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2244s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2244s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_sync: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_sync ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new_for_bus ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeleton: 2244s # * 2244s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeletonClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2244s # { 2244s # GValue *properties; 2244s # GList *changed_properties; 2244s # GSource *changed_properties_idle_source; 2244s # GMainContext *context; 2244s # GMutex lock; 2244s # }; 2244s # 2244s # static void 2244s # _org_project_signaling_iface_skeleton_handle_method_call ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name, 2244s # const gchar *method_name, 2244s # GVariant *parameters, 2244s # GDBusMethodInvocation *invocation, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # _ExtendedGDBusMethodInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # guint num_extra; 2244s # gsize n; 2244s # guint signal_id; 2244s # GValue return_value = G_VALUE_INIT; 2244s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2244s # g_assert (info != NULL); 2244s # num_params = g_variant_n_children (parameters); 2244s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2244s # n = 0; 2244s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[n++], skeleton); 2244s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2244s # g_value_set_object (¶mv[n++], invocation); 2244s # if (info->pass_fdlist) 2244s # { 2244s # #ifdef G_OS_UNIX 2244s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2244s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2244s # #else 2244s # g_assert_not_reached (); 2244s # #endif 2244s # } 2244s # g_variant_iter_init (&iter, parameters); 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2244s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2244s # if (!g_value_get_boolean (&return_value)) 2244s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2244s # g_value_unset (&return_value); 2244s # for (n = 0; n < num_params + num_extra; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static GVariant * 2244s # _org_project_signaling_iface_skeleton_handle_get_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # GVariant *ret; 2244s # ret = NULL; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # g_value_init (&value, pspec->value_type); 2244s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2244s # g_value_unset (&value); 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _org_project_signaling_iface_skeleton_handle_set_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GVariant *variant, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # gboolean ret; 2244s # ret = FALSE; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # if (info->use_gvariant) 2244s # g_value_set_variant (&value, variant); 2244s # else 2244s # g_dbus_gvariant_to_gvalue (variant, &value); 2244s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # g_value_unset (&value); 2244s # ret = TRUE; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2244s # { 2244s # _org_project_signaling_iface_skeleton_handle_method_call, 2244s # _org_project_signaling_iface_skeleton_handle_get_property, 2244s # _org_project_signaling_iface_skeleton_handle_set_property, 2244s # {NULL} 2244s # }; 2244s # 2244s # static GDBusInterfaceInfo * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return org_project_signaling_iface_interface_info (); 2244s # } 2244s # 2244s # static GDBusInterfaceVTable * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2244s # } 2244s # 2244s # static GVariant * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2244s # 2244s # GVariantBuilder builder; 2244s # guint n; 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2244s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #else 2244s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #endif 2244s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2244s # goto out; 2244s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2244s # { 2244s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2244s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2244s # { 2244s # GVariant *value; 2244s # 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); 2244s # if (value != NULL) 2244s # { 2244s # g_variant_take_ref (value); 2244s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2244s # g_variant_unref (value); 2244s # } 2244s # } 2244s # } 2244s # out: 2244s # return g_variant_builder_end (&builder); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 2244s # OrgProjectSignalingIface *object, 2244s # guint arg_arg_u) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 2244s # arg_arg_u)); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2244s # if (skeleton->priv->changed_properties_idle_source != NULL) 2244s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2244s # g_main_context_unref (skeleton->priv->context); 2244s # g_mutex_clear (&skeleton->priv->lock); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2244s # #else 2244s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2244s # #endif 2244s # 2244s # g_mutex_init (&skeleton->priv->lock); 2244s # skeleton->priv->context = g_main_context_ref_thread_default (); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusInterfaceSkeletonClass *skeleton_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2244s # 2244s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2244s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2244s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2244s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2244s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2244s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_skeleton_new: 2244s # * 2244s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_skeleton_new (void) 2244s # { 2244s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2244s # } 2244s # Error: 2244s # 2244s # /tmp/tmpcnzv9ghf/tmpcr4z99xw.xml: 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmpcr4z99xw.xml', '--output', '-', '--body'] 2244s # Return code: 0 2244s # Output: 2244s # /* 2244s # * This file is generated by gdbus-codegen, do not modify it. 2244s # * 2244s # * The license of this code is the same as for the D-Bus interface description 2244s # * it was derived from. Note that it links to GLib, so must comply with the 2244s # * LGPL linking clauses. 2244s # */ 2244s # 2244s # #ifdef HAVE_CONFIG_H 2244s # # include "config.h" 2244s # #endif 2244s # 2244s # #include 2244s # #ifdef G_OS_UNIX 2244s # # include 2244s # #endif 2244s # 2244s # #ifdef G_ENABLE_DEBUG 2244s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2244s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2244s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2244s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2244s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2244s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2244s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2244s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2244s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2244s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2244s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2244s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2244s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2244s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2244s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2244s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2244s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2244s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2244s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2244s # #else /* !G_ENABLE_DEBUG */ 2244s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2244s # * Do not access GValues directly in your code. Instead, use the 2244s # * g_value_get_*() functions 2244s # */ 2244s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2244s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2244s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2244s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2244s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2244s # #endif /* !G_ENABLE_DEBUG */ 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusArgInfo parent_struct; 2244s # gboolean use_gvariant; 2244s # } _ExtendedGDBusArgInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusMethodInfo parent_struct; 2244s # const gchar *signal_name; 2244s # gboolean pass_fdlist; 2244s # } _ExtendedGDBusMethodInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusSignalInfo parent_struct; 2244s # const gchar *signal_name; 2244s # } _ExtendedGDBusSignalInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusPropertyInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # guint use_gvariant : 1; 2244s # guint emits_changed_signal : 1; 2244s # } _ExtendedGDBusPropertyInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusInterfaceInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # } _ExtendedGDBusInterfaceInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # const _ExtendedGDBusPropertyInfo *info; 2244s # guint prop_id; 2244s # GValue orig_value; /* the value before the change */ 2244s # } ChangedProperty; 2244s # 2244s # static void 2244s # _changed_property_free (ChangedProperty *data) 2244s # { 2244s # g_value_unset (&data->orig_value); 2244s # g_free (data); 2244s # } 2244s # 2244s # static gboolean 2244s # _g_strv_equal0 (gchar **a, gchar **b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # guint n; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # if (g_strv_length (a) != g_strv_length (b)) 2244s # goto out; 2244s # for (n = 0; a[n] != NULL; n++) 2244s # if (g_strcmp0 (a[n], b[n]) != 0) 2244s # goto out; 2244s # ret = TRUE; 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _g_variant_equal0 (GVariant *a, GVariant *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # ret = g_variant_equal (a, b); 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # G_GNUC_UNUSED static gboolean 2244s # _g_value_equal (const GValue *a, const GValue *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2244s # switch (G_VALUE_TYPE (a)) 2244s # { 2244s # case G_TYPE_BOOLEAN: 2244s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2244s # break; 2244s # case G_TYPE_UCHAR: 2244s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2244s # break; 2244s # case G_TYPE_INT: 2244s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2244s # break; 2244s # case G_TYPE_UINT: 2244s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2244s # break; 2244s # case G_TYPE_INT64: 2244s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2244s # break; 2244s # case G_TYPE_UINT64: 2244s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2244s # break; 2244s # case G_TYPE_DOUBLE: 2244s # { 2244s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2244s # gdouble da = g_value_get_double (a); 2244s # gdouble db = g_value_get_double (b); 2244s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2244s # } 2244s # break; 2244s # case G_TYPE_STRING: 2244s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2244s # break; 2244s # case G_TYPE_VARIANT: 2244s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2244s # break; 2244s # default: 2244s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2244s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2244s # else 2244s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2244s # break; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static void 2244s # _g_dbus_codegen_marshal_VOID__INT64 ( 2244s # GClosure *closure, 2244s # GValue *return_value G_GNUC_UNUSED, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint G_GNUC_UNUSED, 2244s # void *marshal_data) 2244s # { 2244s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 2244s # (void *data1, 2244s # gint64 arg_arg_x, 2244s # void *data2); 2244s # _GDbusCodegenMarshalVoid_Int64Func callback; 2244s # GCClosure *cc = (GCClosure*) closure; 2244s # void *data1, *data2; 2244s # 2244s # g_return_if_fail (n_param_values == 2); 2244s # 2244s # if (G_CCLOSURE_SWAP_DATA (closure)) 2244s # { 2244s # data1 = closure->data; 2244s # data2 = g_value_peek_pointer (param_values + 0); 2244s # } 2244s # else 2244s # { 2244s # data1 = g_value_peek_pointer (param_values + 0); 2244s # data2 = closure->data; 2244s # } 2244s # 2244s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 2244s # (marshal_data ? marshal_data : cc->callback); 2244s # 2244s # callback (data1, 2244s # g_marshal_value_peek_int64 (param_values + 1), 2244s # data2); 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ 2244s # * Code for interface org.project.SignalingIface 2244s # * ------------------------------------------------------------------------ 2244s # */ 2244s # 2244s # /** 2244s # * SECTION:OrgProjectSignalingIface 2244s # * @title: OrgProjectSignalingIface 2244s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2244s # * 2244s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2244s # */ 2244s # 2244s # enum 2244s # { 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2244s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 2244s # }; 2244s # 2244s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2244s # 2244s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SimpleSignal", 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "simple-signal" 2244s # }; 2244s # 2244s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "arg_x", 2244s # (gchar *) "x", 2244s # NULL 2244s # }, 2244s # FALSE 2244s # }; 2244s # 2244s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SingleArgSignalX", 2244s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 2244s # NULL 2244s # }, 2244s # "single-arg-signal-x" 2244s # }; 2244s # 2244s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "org.project.SignalingIface", 2244s # NULL, 2244s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "org-project-signaling-iface", 2244s # }; 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_interface_info: 2244s # * 2244s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2244s # * 2244s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2244s # */ 2244s # GDBusInterfaceInfo * 2244s # org_project_signaling_iface_interface_info (void) 2244s # { 2244s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_override_properties: 2244s # * @klass: The class structure for a #GObject derived class. 2244s # * @property_id_begin: The property id to assign to the first overridden property. 2244s # * 2244s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2244s # * The properties are overridden in the order they are defined. 2244s # * 2244s # * Returns: The last property id. 2244s # */ 2244s # guint 2244s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2244s # { 2244s # return property_id_begin - 1; 2244s # } 2244s # 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_simple_signal ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__VOID (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface: 2244s # * 2244s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceIface: 2244s # * @parent_iface: The parent interface. 2244s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2244s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 2244s # * 2244s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2244s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2244s # 2244s # static void 2244s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # /* GObject signals for received D-Bus signals: */ 2244s # /** 2244s # * OrgProjectSignalingIface::simple-signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2244s # g_signal_new ("simple-signal", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_simple_signal, 2244s # G_TYPE_NONE, 2244s # 0); 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface::single-arg-signal-x: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_x: Argument. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 2244s # g_signal_new ("single-arg-signal-x", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 2244s # G_TYPE_NONE, 2244s # 1, G_TYPE_INT64); 2244s # 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_simple_signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * Emits the "SimpleSignal" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_single_arg_signal_x: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_x: Argument to pass with the signal. 2244s # * 2244s # * Emits the "SingleArgSignalX" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_single_arg_signal_x ( 2244s # OrgProjectSignalingIface *object, 2244s # gint64 arg_arg_x) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_arg_x); 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxy: 2244s # * 2244s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxyClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceProxy. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceProxyPrivate 2244s # { 2244s # GData *qdata; 2244s # }; 2244s # 2244s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_proxy_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2244s # g_datalist_clear (&proxy->priv->qdata); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # const GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2244s # const gchar *sender_name G_GNUC_UNUSED, 2244s # const gchar *signal_name, 2244s # GVariant *parameters) 2244s # { 2244s # _ExtendedGDBusSignalInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # gsize n; 2244s # guint signal_id; 2244s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2244s # if (info == NULL) 2244s # return; 2244s # num_params = g_variant_n_children (parameters); 2244s # paramv = g_new0 (GValue, num_params + 1); 2244s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[0], proxy); 2244s # g_variant_iter_init (&iter, parameters); 2244s # n = 1; 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_signal_emitv (paramv, signal_id, 0, NULL); 2244s # for (n = 0; n < num_params + 1; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2244s # GVariant *changed_properties, 2244s # const gchar *const *invalidated_properties) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2244s # guint n; 2244s # const gchar *key; 2244s # GVariantIter *iter; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # g_variant_get (changed_properties, "a{sv}", &iter); 2244s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2244s # g_datalist_remove_data (&proxy->priv->qdata, key); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # g_variant_iter_free (iter); 2244s # for (n = 0; invalidated_properties[n] != NULL; n++) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2244s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2244s # #else 2244s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2244s # #endif 2244s # 2244s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusProxyClass *proxy_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2244s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2244s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2244s # 2244s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2244s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2244s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_sync: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_sync ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new_for_bus ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeleton: 2244s # * 2244s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeletonClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2244s # { 2244s # GValue *properties; 2244s # GList *changed_properties; 2244s # GSource *changed_properties_idle_source; 2244s # GMainContext *context; 2244s # GMutex lock; 2244s # }; 2244s # 2244s # static void 2244s # _org_project_signaling_iface_skeleton_handle_method_call ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name, 2244s # const gchar *method_name, 2244s # GVariant *parameters, 2244s # GDBusMethodInvocation *invocation, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # _ExtendedGDBusMethodInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # guint num_extra; 2244s # gsize n; 2244s # guint signal_id; 2244s # GValue return_value = G_VALUE_INIT; 2244s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2244s # g_assert (info != NULL); 2244s # num_params = g_variant_n_children (parameters); 2244s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2244s # n = 0; 2244s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[n++], skeleton); 2244s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2244s # g_value_set_object (¶mv[n++], invocation); 2244s # if (info->pass_fdlist) 2244s # { 2244s # #ifdef G_OS_UNIX 2244s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2244s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2244s # #else 2244s # g_assert_not_reached (); 2244s # #endif 2244s # } 2244s # g_variant_iter_init (&iter, parameters); 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2244s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2244s # if (!g_value_get_boolean (&return_value)) 2244s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2244s # g_value_unset (&return_value); 2244s # for (n = 0; n < num_params + num_extra; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static GVariant * 2244s # _org_project_signaling_iface_skeleton_handle_get_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # GVariant *ret; 2244s # ret = NULL; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # g_value_init (&value, pspec->value_type); 2244s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2244s # g_value_unset (&value); 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _org_project_signaling_iface_skeleton_handle_set_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GVariant *variant, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # gboolean ret; 2244s # ret = FALSE; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # if (info->use_gvariant) 2244s # g_value_set_variant (&value, variant); 2244s # else 2244s # g_dbus_gvariant_to_gvalue (variant, &value); 2244s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # g_value_unset (&value); 2244s # ret = TRUE; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2244s # { 2244s # _org_project_signaling_iface_skeleton_handle_method_call, 2244s # _org_project_signaling_iface_skeleton_handle_get_property, 2244s # _org_project_signaling_iface_skeleton_handle_set_property, 2244s # {NULL} 2244s # }; 2244s # 2244s # static GDBusInterfaceInfo * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return org_project_signaling_iface_interface_info (); 2244s # } 2244s # 2244s # static GDBusInterfaceVTable * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2244s # } 2244s # 2244s # static GVariant * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2244s # 2244s # GVariantBuilder builder; 2244s # guint n; 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2244s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #else 2244s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #endif 2244s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2244s # goto out; 2244s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2244s # { 2244s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2244s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2244s # { 2244s # GVariant *value; 2244s # 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); 2244s # if (value != NULL) 2244s # { 2244s # g_variant_take_ref (value); 2244s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2244s # g_variant_unref (value); 2244s # } 2244s # } 2244s # } 2244s # out: 2244s # return g_variant_builder_end (&builder); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 2244s # OrgProjectSignalingIface *object, 2244s # gint64 arg_arg_x) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 2244s # arg_arg_x)); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2244s # if (skeleton->priv->changed_properties_idle_source != NULL) 2244s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2244s # g_main_context_unref (skeleton->priv->context); 2244s # g_mutex_clear (&skeleton->priv->lock); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2244s # #else 2244s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2244s # #endif 2244s # 2244s # g_mutex_init (&skeleton->priv->lock); 2244s # skeleton->priv->context = g_main_context_ref_thread_default (); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusInterfaceSkeletonClass *skeleton_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2244s # 2244s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2244s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2244s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2244s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2244s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2244s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_skeleton_new: 2244s # * 2244s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_skeleton_new (void) 2244s # { 2244s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2244s # } 2244s # Error: 2244s # 2244s # /tmp/tmpcnzv9ghf/tmp8uqwpuad.xml: 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmp8uqwpuad.xml', '--output', '-', '--body'] 2244s # Return code: 0 2244s # Output: 2244s # /* 2244s # * This file is generated by gdbus-codegen, do not modify it. 2244s # * 2244s # * The license of this code is the same as for the D-Bus interface description 2244s # * it was derived from. Note that it links to GLib, so must comply with the 2244s # * LGPL linking clauses. 2244s # */ 2244s # 2244s # #ifdef HAVE_CONFIG_H 2244s # # include "config.h" 2244s # #endif 2244s # 2244s # #include 2244s # #ifdef G_OS_UNIX 2244s # # include 2244s # #endif 2244s # 2244s # #ifdef G_ENABLE_DEBUG 2244s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2244s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2244s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2244s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2244s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2244s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2244s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2244s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2244s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2244s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2244s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2244s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2244s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2244s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2244s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2244s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2244s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2244s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2244s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2244s # #else /* !G_ENABLE_DEBUG */ 2244s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2244s # * Do not access GValues directly in your code. Instead, use the 2244s # * g_value_get_*() functions 2244s # */ 2244s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2244s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2244s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2244s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2244s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2244s # #endif /* !G_ENABLE_DEBUG */ 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusArgInfo parent_struct; 2244s # gboolean use_gvariant; 2244s # } _ExtendedGDBusArgInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusMethodInfo parent_struct; 2244s # const gchar *signal_name; 2244s # gboolean pass_fdlist; 2244s # } _ExtendedGDBusMethodInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusSignalInfo parent_struct; 2244s # const gchar *signal_name; 2244s # } _ExtendedGDBusSignalInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusPropertyInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # guint use_gvariant : 1; 2244s # guint emits_changed_signal : 1; 2244s # } _ExtendedGDBusPropertyInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusInterfaceInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # } _ExtendedGDBusInterfaceInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # const _ExtendedGDBusPropertyInfo *info; 2244s # guint prop_id; 2244s # GValue orig_value; /* the value before the change */ 2244s # } ChangedProperty; 2244s # 2244s # static void 2244s # _changed_property_free (ChangedProperty *data) 2244s # { 2244s # g_value_unset (&data->orig_value); 2244s # g_free (data); 2244s # } 2244s # 2244s # static gboolean 2244s # _g_strv_equal0 (gchar **a, gchar **b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # guint n; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # if (g_strv_length (a) != g_strv_length (b)) 2244s # goto out; 2244s # for (n = 0; a[n] != NULL; n++) 2244s # if (g_strcmp0 (a[n], b[n]) != 0) 2244s # goto out; 2244s # ret = TRUE; 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _g_variant_equal0 (GVariant *a, GVariant *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # ret = g_variant_equal (a, b); 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # G_GNUC_UNUSED static gboolean 2244s # _g_value_equal (const GValue *a, const GValue *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2244s # switch (G_VALUE_TYPE (a)) 2244s # { 2244s # case G_TYPE_BOOLEAN: 2244s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2244s # break; 2244s # case G_TYPE_UCHAR: 2244s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2244s # break; 2244s # case G_TYPE_INT: 2244s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2244s # break; 2244s # case G_TYPE_UINT: 2244s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2244s # break; 2244s # case G_TYPE_INT64: 2244s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2244s # break; 2244s # case G_TYPE_UINT64: 2244s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2244s # break; 2244s # case G_TYPE_DOUBLE: 2244s # { 2244s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2244s # gdouble da = g_value_get_double (a); 2244s # gdouble db = g_value_get_double (b); 2244s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2244s # } 2244s # break; 2244s # case G_TYPE_STRING: 2244s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2244s # break; 2244s # case G_TYPE_VARIANT: 2244s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2244s # break; 2244s # default: 2244s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2244s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2244s # else 2244s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2244s # break; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static void 2244s # _g_dbus_codegen_marshal_VOID__UINT64 ( 2244s # GClosure *closure, 2244s # GValue *return_value G_GNUC_UNUSED, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint G_GNUC_UNUSED, 2244s # void *marshal_data) 2244s # { 2244s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 2244s # (void *data1, 2244s # guint64 arg_arg_t, 2244s # void *data2); 2244s # _GDbusCodegenMarshalVoid_Uint64Func callback; 2244s # GCClosure *cc = (GCClosure*) closure; 2244s # void *data1, *data2; 2244s # 2244s # g_return_if_fail (n_param_values == 2); 2244s # 2244s # if (G_CCLOSURE_SWAP_DATA (closure)) 2244s # { 2244s # data1 = closure->data; 2244s # data2 = g_value_peek_pointer (param_values + 0); 2244s # } 2244s # else 2244s # { 2244s # data1 = g_value_peek_pointer (param_values + 0); 2244s # data2 = closure->data; 2244s # } 2244s # 2244s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 2244s # (marshal_data ? marshal_data : cc->callback); 2244s # 2244s # callback (data1, 2244s # g_marshal_value_peek_uint64 (param_values + 1), 2244s # data2); 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ 2244s # * Code for interface org.project.SignalingIface 2244s # * ------------------------------------------------------------------------ 2244s # */ 2244s # 2244s # /** 2244s # * SECTION:OrgProjectSignalingIface 2244s # * @title: OrgProjectSignalingIface 2244s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2244s # * 2244s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2244s # */ 2244s # 2244s # enum 2244s # { 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2244s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 2244s # }; 2244s # 2244s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2244s # 2244s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SimpleSignal", 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "simple-signal" 2244s # }; 2244s # 2244s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "arg_t", 2244s # (gchar *) "t", 2244s # NULL 2244s # }, 2244s # FALSE 2244s # }; 2244s # 2244s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SingleArgSignalT", 2244s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 2244s # NULL 2244s # }, 2244s # "single-arg-signal-t" 2244s # }; 2244s # 2244s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "org.project.SignalingIface", 2244s # NULL, 2244s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "org-project-signaling-iface", 2244s # }; 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_interface_info: 2244s # * 2244s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2244s # * 2244s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2244s # */ 2244s # GDBusInterfaceInfo * 2244s # org_project_signaling_iface_interface_info (void) 2244s # { 2244s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_override_properties: 2244s # * @klass: The class structure for a #GObject derived class. 2244s # * @property_id_begin: The property id to assign to the first overridden property. 2244s # * 2244s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2244s # * The properties are overridden in the order they are defined. 2244s # * 2244s # * Returns: The last property id. 2244s # */ 2244s # guint 2244s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2244s # { 2244s # return property_id_begin - 1; 2244s # } 2244s # 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_simple_signal ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__VOID (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface: 2244s # * 2244s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceIface: 2244s # * @parent_iface: The parent interface. 2244s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2244s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 2244s # * 2244s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2244s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2244s # 2244s # static void 2244s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # /* GObject signals for received D-Bus signals: */ 2244s # /** 2244s # * OrgProjectSignalingIface::simple-signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2244s # g_signal_new ("simple-signal", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_simple_signal, 2244s # G_TYPE_NONE, 2244s # 0); 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface::single-arg-signal-t: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_t: Argument. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 2244s # g_signal_new ("single-arg-signal-t", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 2244s # G_TYPE_NONE, 2244s # 1, G_TYPE_UINT64); 2244s # 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_simple_signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * Emits the "SimpleSignal" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_single_arg_signal_t: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_t: Argument to pass with the signal. 2244s # * 2244s # * Emits the "SingleArgSignalT" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_single_arg_signal_t ( 2244s # OrgProjectSignalingIface *object, 2244s # guint64 arg_arg_t) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_arg_t); 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxy: 2244s # * 2244s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxyClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceProxy. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceProxyPrivate 2244s # { 2244s # GData *qdata; 2244s # }; 2244s # 2244s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_proxy_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2244s # g_datalist_clear (&proxy->priv->qdata); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # const GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2244s # const gchar *sender_name G_GNUC_UNUSED, 2244s # const gchar *signal_name, 2244s # GVariant *parameters) 2244s # { 2244s # _ExtendedGDBusSignalInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # gsize n; 2244s # guint signal_id; 2244s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2244s # if (info == NULL) 2244s # return; 2244s # num_params = g_variant_n_children (parameters); 2244s # paramv = g_new0 (GValue, num_params + 1); 2244s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[0], proxy); 2244s # g_variant_iter_init (&iter, parameters); 2244s # n = 1; 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_signal_emitv (paramv, signal_id, 0, NULL); 2244s # for (n = 0; n < num_params + 1; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2244s # GVariant *changed_properties, 2244s # const gchar *const *invalidated_properties) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2244s # guint n; 2244s # const gchar *key; 2244s # GVariantIter *iter; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # g_variant_get (changed_properties, "a{sv}", &iter); 2244s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2244s # g_datalist_remove_data (&proxy->priv->qdata, key); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # g_variant_iter_free (iter); 2244s # for (n = 0; invalidated_properties[n] != NULL; n++) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2244s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2244s # #else 2244s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2244s # #endif 2244s # 2244s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusProxyClass *proxy_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2244s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2244s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2244s # 2244s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2244s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2244s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_sync: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_sync ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new_for_bus ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeleton: 2244s # * 2244s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeletonClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2244s # { 2244s # GValue *properties; 2244s # GList *changed_properties; 2244s # GSource *changed_properties_idle_source; 2244s # GMainContext *context; 2244s # GMutex lock; 2244s # }; 2244s # 2244s # static void 2244s # _org_project_signaling_iface_skeleton_handle_method_call ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name, 2244s # const gchar *method_name, 2244s # GVariant *parameters, 2244s # GDBusMethodInvocation *invocation, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # _ExtendedGDBusMethodInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # guint num_extra; 2244s # gsize n; 2244s # guint signal_id; 2244s # GValue return_value = G_VALUE_INIT; 2244s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2244s # g_assert (info != NULL); 2244s # num_params = g_variant_n_children (parameters); 2244s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2244s # n = 0; 2244s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[n++], skeleton); 2244s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2244s # g_value_set_object (¶mv[n++], invocation); 2244s # if (info->pass_fdlist) 2244s # { 2244s # #ifdef G_OS_UNIX 2244s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2244s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2244s # #else 2244s # g_assert_not_reached (); 2244s # #endif 2244s # } 2244s # g_variant_iter_init (&iter, parameters); 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2244s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2244s # if (!g_value_get_boolean (&return_value)) 2244s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2244s # g_value_unset (&return_value); 2244s # for (n = 0; n < num_params + num_extra; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static GVariant * 2244s # _org_project_signaling_iface_skeleton_handle_get_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # GVariant *ret; 2244s # ret = NULL; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # g_value_init (&value, pspec->value_type); 2244s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2244s # g_value_unset (&value); 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _org_project_signaling_iface_skeleton_handle_set_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GVariant *variant, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # gboolean ret; 2244s # ret = FALSE; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # if (info->use_gvariant) 2244s # g_value_set_variant (&value, variant); 2244s # else 2244s # g_dbus_gvariant_to_gvalue (variant, &value); 2244s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # g_value_unset (&value); 2244s # ret = TRUE; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2244s # { 2244s # _org_project_signaling_iface_skeleton_handle_method_call, 2244s # _org_project_signaling_iface_skeleton_handle_get_property, 2244s # _org_project_signaling_iface_skeleton_handle_set_property, 2244s # {NULL} 2244s # }; 2244s # 2244s # static GDBusInterfaceInfo * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return org_project_signaling_iface_interface_info (); 2244s # } 2244s # 2244s # static GDBusInterfaceVTable * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2244s # } 2244s # 2244s # static GVariant * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2244s # 2244s # GVariantBuilder builder; 2244s # guint n; 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2244s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #else 2244s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #endif 2244s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2244s # goto out; 2244s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2244s # { 2244s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2244s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2244s # { 2244s # GVariant *value; 2244s # 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); 2244s # if (value != NULL) 2244s # { 2244s # g_variant_take_ref (value); 2244s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2244s # g_variant_unref (value); 2244s # } 2244s # } 2244s # } 2244s # out: 2244s # return g_variant_builder_end (&builder); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 2244s # OrgProjectSignalingIface *object, 2244s # guint64 arg_arg_t) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 2244s # arg_arg_t)); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2244s # if (skeleton->priv->changed_properties_idle_source != NULL) 2244s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2244s # g_main_context_unref (skeleton->priv->context); 2244s # g_mutex_clear (&skeleton->priv->lock); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2244s # #else 2244s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2244s # #endif 2244s # 2244s # g_mutex_init (&skeleton->priv->lock); 2244s # skeleton->priv->context = g_main_context_ref_thread_default (); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusInterfaceSkeletonClass *skeleton_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2244s # 2244s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2244s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2244s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2244s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2244s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2244s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_skeleton_new: 2244s # * 2244s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_skeleton_new (void) 2244s # { 2244s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2244s # } 2244s # Error: 2244s # 2244s # /tmp/tmpcnzv9ghf/tmphmlnpzom.xml: 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmphmlnpzom.xml', '--output', '-', '--body'] 2244s # Return code: 0 2244s # Output: 2244s # /* 2244s # * This file is generated by gdbus-codegen, do not modify it. 2244s # * 2244s # * The license of this code is the same as for the D-Bus interface description 2244s # * it was derived from. Note that it links to GLib, so must comply with the 2244s # * LGPL linking clauses. 2244s # */ 2244s # 2244s # #ifdef HAVE_CONFIG_H 2244s # # include "config.h" 2244s # #endif 2244s # 2244s # #include 2244s # #ifdef G_OS_UNIX 2244s # # include 2244s # #endif 2244s # 2244s # #ifdef G_ENABLE_DEBUG 2244s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2244s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2244s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2244s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2244s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2244s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2244s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2244s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2244s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2244s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2244s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2244s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2244s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2244s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2244s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2244s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2244s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2244s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2244s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2244s # #else /* !G_ENABLE_DEBUG */ 2244s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2244s # * Do not access GValues directly in your code. Instead, use the 2244s # * g_value_get_*() functions 2244s # */ 2244s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2244s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2244s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2244s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2244s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2244s # #endif /* !G_ENABLE_DEBUG */ 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusArgInfo parent_struct; 2244s # gboolean use_gvariant; 2244s # } _ExtendedGDBusArgInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusMethodInfo parent_struct; 2244s # const gchar *signal_name; 2244s # gboolean pass_fdlist; 2244s # } _ExtendedGDBusMethodInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusSignalInfo parent_struct; 2244s # const gchar *signal_name; 2244s # } _ExtendedGDBusSignalInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusPropertyInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # guint use_gvariant : 1; 2244s # guint emits_changed_signal : 1; 2244s # } _ExtendedGDBusPropertyInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusInterfaceInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # } _ExtendedGDBusInterfaceInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # const _ExtendedGDBusPropertyInfo *info; 2244s # guint prop_id; 2244s # GValue orig_value; /* the value before the change */ 2244s # } ChangedProperty; 2244s # 2244s # static void 2244s # _changed_property_free (ChangedProperty *data) 2244s # { 2244s # g_value_unset (&data->orig_value); 2244s # g_free (data); 2244s # } 2244s # 2244s # static gboolean 2244s # _g_strv_equal0 (gchar **a, gchar **b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # guint n; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # if (g_strv_length (a) != g_strv_length (b)) 2244s # goto out; 2244s # for (n = 0; a[n] != NULL; n++) 2244s # if (g_strcmp0 (a[n], b[n]) != 0) 2244s # goto out; 2244s # ret = TRUE; 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _g_variant_equal0 (GVariant *a, GVariant *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # ret = g_variant_equal (a, b); 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # G_GNUC_UNUSED static gboolean 2244s # _g_value_equal (const GValue *a, const GValue *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2244s # switch (G_VALUE_TYPE (a)) 2244s # { 2244s # case G_TYPE_BOOLEAN: 2244s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2244s # break; 2244s # case G_TYPE_UCHAR: 2244s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2244s # break; 2244s # case G_TYPE_INT: 2244s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2244s # break; 2244s # case G_TYPE_UINT: 2244s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2244s # break; 2244s # case G_TYPE_INT64: 2244s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2244s # break; 2244s # case G_TYPE_UINT64: 2244s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2244s # break; 2244s # case G_TYPE_DOUBLE: 2244s # { 2244s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2244s # gdouble da = g_value_get_double (a); 2244s # gdouble db = g_value_get_double (b); 2244s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2244s # } 2244s # break; 2244s # case G_TYPE_STRING: 2244s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2244s # break; 2244s # case G_TYPE_VARIANT: 2244s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2244s # break; 2244s # default: 2244s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2244s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2244s # else 2244s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2244s # break; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ 2244s # * Code for interface org.project.SignalingIface 2244s # * ------------------------------------------------------------------------ 2244s # */ 2244s # 2244s # /** 2244s # * SECTION:OrgProjectSignalingIface 2244s # * @title: OrgProjectSignalingIface 2244s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2244s # * 2244s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2244s # */ 2244s # 2244s # enum 2244s # { 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2244s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 2244s # }; 2244s # 2244s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2244s # 2244s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SimpleSignal", 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "simple-signal" 2244s # }; 2244s # 2244s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "arg_d", 2244s # (gchar *) "d", 2244s # NULL 2244s # }, 2244s # FALSE 2244s # }; 2244s # 2244s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SingleArgSignalD", 2244s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 2244s # NULL 2244s # }, 2244s # "single-arg-signal-d" 2244s # }; 2244s # 2244s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "org.project.SignalingIface", 2244s # NULL, 2244s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "org-project-signaling-iface", 2244s # }; 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_interface_info: 2244s # * 2244s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2244s # * 2244s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2244s # */ 2244s # GDBusInterfaceInfo * 2244s # org_project_signaling_iface_interface_info (void) 2244s # { 2244s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_override_properties: 2244s # * @klass: The class structure for a #GObject derived class. 2244s # * @property_id_begin: The property id to assign to the first overridden property. 2244s # * 2244s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2244s # * The properties are overridden in the order they are defined. 2244s # * 2244s # * Returns: The last property id. 2244s # */ 2244s # guint 2244s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2244s # { 2244s # return property_id_begin - 1; 2244s # } 2244s # 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_simple_signal ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__VOID (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__DOUBLE (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface: 2244s # * 2244s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceIface: 2244s # * @parent_iface: The parent interface. 2244s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2244s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 2244s # * 2244s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2244s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2244s # 2244s # static void 2244s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # /* GObject signals for received D-Bus signals: */ 2244s # /** 2244s # * OrgProjectSignalingIface::simple-signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2244s # g_signal_new ("simple-signal", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_simple_signal, 2244s # G_TYPE_NONE, 2244s # 0); 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface::single-arg-signal-d: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_d: Argument. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 2244s # g_signal_new ("single-arg-signal-d", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 2244s # G_TYPE_NONE, 2244s # 1, G_TYPE_DOUBLE); 2244s # 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_simple_signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * Emits the "SimpleSignal" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_single_arg_signal_d: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_d: Argument to pass with the signal. 2244s # * 2244s # * Emits the "SingleArgSignalD" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_single_arg_signal_d ( 2244s # OrgProjectSignalingIface *object, 2244s # gdouble arg_arg_d) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_arg_d); 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxy: 2244s # * 2244s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxyClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceProxy. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceProxyPrivate 2244s # { 2244s # GData *qdata; 2244s # }; 2244s # 2244s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_proxy_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2244s # g_datalist_clear (&proxy->priv->qdata); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # const GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2244s # const gchar *sender_name G_GNUC_UNUSED, 2244s # const gchar *signal_name, 2244s # GVariant *parameters) 2244s # { 2244s # _ExtendedGDBusSignalInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # gsize n; 2244s # guint signal_id; 2244s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2244s # if (info == NULL) 2244s # return; 2244s # num_params = g_variant_n_children (parameters); 2244s # paramv = g_new0 (GValue, num_params + 1); 2244s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[0], proxy); 2244s # g_variant_iter_init (&iter, parameters); 2244s # n = 1; 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_signal_emitv (paramv, signal_id, 0, NULL); 2244s # for (n = 0; n < num_params + 1; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2244s # GVariant *changed_properties, 2244s # const gchar *const *invalidated_properties) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2244s # guint n; 2244s # const gchar *key; 2244s # GVariantIter *iter; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # g_variant_get (changed_properties, "a{sv}", &iter); 2244s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2244s # g_datalist_remove_data (&proxy->priv->qdata, key); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # g_variant_iter_free (iter); 2244s # for (n = 0; invalidated_properties[n] != NULL; n++) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2244s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2244s # #else 2244s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2244s # #endif 2244s # 2244s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusProxyClass *proxy_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2244s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2244s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2244s # 2244s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2244s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2244s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_sync: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_sync ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new_for_bus ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2244s # * @bus_type: A #GBusType. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: A bus name (well-known or unique). 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2244s # GBusType bus_type, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GError **error) 2244s # { 2244s # GInitable *ret; 2244s # 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); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeleton: 2244s # * 2244s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceSkeletonClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2244s # { 2244s # GValue *properties; 2244s # GList *changed_properties; 2244s # GSource *changed_properties_idle_source; 2244s # GMainContext *context; 2244s # GMutex lock; 2244s # }; 2244s # 2244s # static void 2244s # _org_project_signaling_iface_skeleton_handle_method_call ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name, 2244s # const gchar *method_name, 2244s # GVariant *parameters, 2244s # GDBusMethodInvocation *invocation, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # _ExtendedGDBusMethodInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # guint num_extra; 2244s # gsize n; 2244s # guint signal_id; 2244s # GValue return_value = G_VALUE_INIT; 2244s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2244s # g_assert (info != NULL); 2244s # num_params = g_variant_n_children (parameters); 2244s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2244s # n = 0; 2244s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[n++], skeleton); 2244s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2244s # g_value_set_object (¶mv[n++], invocation); 2244s # if (info->pass_fdlist) 2244s # { 2244s # #ifdef G_OS_UNIX 2244s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2244s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2244s # #else 2244s # g_assert_not_reached (); 2244s # #endif 2244s # } 2244s # g_variant_iter_init (&iter, parameters); 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2244s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2244s # if (!g_value_get_boolean (&return_value)) 2244s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2244s # g_value_unset (&return_value); 2244s # for (n = 0; n < num_params + num_extra; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static GVariant * 2244s # _org_project_signaling_iface_skeleton_handle_get_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # GVariant *ret; 2244s # ret = NULL; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # g_value_init (&value, pspec->value_type); 2244s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2244s # g_value_unset (&value); 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _org_project_signaling_iface_skeleton_handle_set_property ( 2244s # GDBusConnection *connection G_GNUC_UNUSED, 2244s # const gchar *sender G_GNUC_UNUSED, 2244s # const gchar *object_path G_GNUC_UNUSED, 2244s # const gchar *interface_name G_GNUC_UNUSED, 2244s # const gchar *property_name, 2244s # GVariant *variant, 2244s # GError **error, 2244s # gpointer user_data) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2244s # GValue value = G_VALUE_INIT; 2244s # GParamSpec *pspec; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # gboolean ret; 2244s # ret = FALSE; 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2244s # g_assert (info != NULL); 2244s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2244s # if (pspec == NULL) 2244s # { 2244s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2244s # } 2244s # else 2244s # { 2244s # if (info->use_gvariant) 2244s # g_value_set_variant (&value, variant); 2244s # else 2244s # g_dbus_gvariant_to_gvalue (variant, &value); 2244s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2244s # g_value_unset (&value); 2244s # ret = TRUE; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2244s # { 2244s # _org_project_signaling_iface_skeleton_handle_method_call, 2244s # _org_project_signaling_iface_skeleton_handle_get_property, 2244s # _org_project_signaling_iface_skeleton_handle_set_property, 2244s # {NULL} 2244s # }; 2244s # 2244s # static GDBusInterfaceInfo * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return org_project_signaling_iface_interface_info (); 2244s # } 2244s # 2244s # static GDBusInterfaceVTable * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2244s # { 2244s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2244s # } 2244s # 2244s # static GVariant * 2244s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2244s # 2244s # GVariantBuilder builder; 2244s # guint n; 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2244s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #else 2244s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2244s # #endif 2244s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2244s # goto out; 2244s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2244s # { 2244s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2244s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2244s # { 2244s # GVariant *value; 2244s # 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); 2244s # if (value != NULL) 2244s # { 2244s # g_variant_take_ref (value); 2244s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2244s # g_variant_unref (value); 2244s # } 2244s # } 2244s # } 2244s # out: 2244s # return g_variant_builder_end (&builder); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void 2244s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 2244s # OrgProjectSignalingIface *object, 2244s # gdouble arg_arg_d) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # 2244s # GList *connections, *l; 2244s # GVariant *signal_variant; 2244s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2244s # 2244s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 2244s # arg_arg_d)); 2244s # for (l = connections; l != NULL; l = l->next) 2244s # { 2244s # GDBusConnection *connection = l->data; 2244s # g_dbus_connection_emit_signal (connection, 2244s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 2244s # signal_variant, NULL); 2244s # } 2244s # g_variant_unref (signal_variant); 2244s # g_list_free_full (connections, g_object_unref); 2244s # } 2244s # 2244s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2244s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2244s # if (skeleton->priv->changed_properties_idle_source != NULL) 2244s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2244s # g_main_context_unref (skeleton->priv->context); 2244s # g_mutex_clear (&skeleton->priv->lock); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2244s # #else 2244s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2244s # #endif 2244s # 2244s # g_mutex_init (&skeleton->priv->lock); 2244s # skeleton->priv->context = g_main_context_ref_thread_default (); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusInterfaceSkeletonClass *skeleton_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2244s # 2244s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2244s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2244s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2244s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2244s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2244s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_skeleton_new: 2244s # * 2244s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_skeleton_new (void) 2244s # { 2244s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2244s # } 2244s # Error: 2244s # 2244s # /tmp/tmpcnzv9ghf/tmpqv3nhgvz.xml: 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # 2244s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmpqv3nhgvz.xml', '--output', '-', '--body'] 2244s # Return code: 0 2244s # Output: 2244s # /* 2244s # * This file is generated by gdbus-codegen, do not modify it. 2244s # * 2244s # * The license of this code is the same as for the D-Bus interface description 2244s # * it was derived from. Note that it links to GLib, so must comply with the 2244s # * LGPL linking clauses. 2244s # */ 2244s # 2244s # #ifdef HAVE_CONFIG_H 2244s # # include "config.h" 2244s # #endif 2244s # 2244s # #include 2244s # #ifdef G_OS_UNIX 2244s # # include 2244s # #endif 2244s # 2244s # #ifdef G_ENABLE_DEBUG 2244s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2244s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2244s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2244s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2244s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2244s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2244s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2244s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2244s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2244s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2244s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2244s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2244s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2244s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2244s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2244s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2244s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2244s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2244s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2244s # #else /* !G_ENABLE_DEBUG */ 2244s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2244s # * Do not access GValues directly in your code. Instead, use the 2244s # * g_value_get_*() functions 2244s # */ 2244s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2244s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2244s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2244s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2244s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2244s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2244s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2244s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2244s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2244s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2244s # #endif /* !G_ENABLE_DEBUG */ 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusArgInfo parent_struct; 2244s # gboolean use_gvariant; 2244s # } _ExtendedGDBusArgInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusMethodInfo parent_struct; 2244s # const gchar *signal_name; 2244s # gboolean pass_fdlist; 2244s # } _ExtendedGDBusMethodInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusSignalInfo parent_struct; 2244s # const gchar *signal_name; 2244s # } _ExtendedGDBusSignalInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusPropertyInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # guint use_gvariant : 1; 2244s # guint emits_changed_signal : 1; 2244s # } _ExtendedGDBusPropertyInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # GDBusInterfaceInfo parent_struct; 2244s # const gchar *hyphen_name; 2244s # } _ExtendedGDBusInterfaceInfo; 2244s # 2244s # typedef struct 2244s # { 2244s # const _ExtendedGDBusPropertyInfo *info; 2244s # guint prop_id; 2244s # GValue orig_value; /* the value before the change */ 2244s # } ChangedProperty; 2244s # 2244s # static void 2244s # _changed_property_free (ChangedProperty *data) 2244s # { 2244s # g_value_unset (&data->orig_value); 2244s # g_free (data); 2244s # } 2244s # 2244s # static gboolean 2244s # _g_strv_equal0 (gchar **a, gchar **b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # guint n; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # if (g_strv_length (a) != g_strv_length (b)) 2244s # goto out; 2244s # for (n = 0; a[n] != NULL; n++) 2244s # if (g_strcmp0 (a[n], b[n]) != 0) 2244s # goto out; 2244s # ret = TRUE; 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # static gboolean 2244s # _g_variant_equal0 (GVariant *a, GVariant *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # if (a == NULL && b == NULL) 2244s # { 2244s # ret = TRUE; 2244s # goto out; 2244s # } 2244s # if (a == NULL || b == NULL) 2244s # goto out; 2244s # ret = g_variant_equal (a, b); 2244s # out: 2244s # return ret; 2244s # } 2244s # 2244s # G_GNUC_UNUSED static gboolean 2244s # _g_value_equal (const GValue *a, const GValue *b) 2244s # { 2244s # gboolean ret = FALSE; 2244s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2244s # switch (G_VALUE_TYPE (a)) 2244s # { 2244s # case G_TYPE_BOOLEAN: 2244s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2244s # break; 2244s # case G_TYPE_UCHAR: 2244s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2244s # break; 2244s # case G_TYPE_INT: 2244s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2244s # break; 2244s # case G_TYPE_UINT: 2244s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2244s # break; 2244s # case G_TYPE_INT64: 2244s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2244s # break; 2244s # case G_TYPE_UINT64: 2244s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2244s # break; 2244s # case G_TYPE_DOUBLE: 2244s # { 2244s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2244s # gdouble da = g_value_get_double (a); 2244s # gdouble db = g_value_get_double (b); 2244s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2244s # } 2244s # break; 2244s # case G_TYPE_STRING: 2244s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2244s # break; 2244s # case G_TYPE_VARIANT: 2244s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2244s # break; 2244s # default: 2244s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2244s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2244s # else 2244s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2244s # break; 2244s # } 2244s # return ret; 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ 2244s # * Code for interface org.project.SignalingIface 2244s # * ------------------------------------------------------------------------ 2244s # */ 2244s # 2244s # /** 2244s # * SECTION:OrgProjectSignalingIface 2244s # * @title: OrgProjectSignalingIface 2244s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2244s # * 2244s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2244s # */ 2244s # 2244s # enum 2244s # { 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2244s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 2244s # }; 2244s # 2244s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2244s # 2244s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SimpleSignal", 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "simple-signal" 2244s # }; 2244s # 2244s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "arg_s", 2244s # (gchar *) "s", 2244s # NULL 2244s # }, 2244s # FALSE 2244s # }; 2244s # 2244s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "SingleArgSignalS", 2244s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 2244s # NULL 2244s # }, 2244s # "single-arg-signal-s" 2244s # }; 2244s # 2244s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2244s # { 2244s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2244s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 2244s # NULL 2244s # }; 2244s # 2244s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2244s # { 2244s # { 2244s # -1, 2244s # (gchar *) "org.project.SignalingIface", 2244s # NULL, 2244s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2244s # NULL, 2244s # NULL 2244s # }, 2244s # "org-project-signaling-iface", 2244s # }; 2244s # 2244s # 2244s # /** 2244s # * org_project_signaling_iface_interface_info: 2244s # * 2244s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2244s # * 2244s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2244s # */ 2244s # GDBusInterfaceInfo * 2244s # org_project_signaling_iface_interface_info (void) 2244s # { 2244s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_override_properties: 2244s # * @klass: The class structure for a #GObject derived class. 2244s # * @property_id_begin: The property id to assign to the first overridden property. 2244s # * 2244s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2244s # * The properties are overridden in the order they are defined. 2244s # * 2244s # * Returns: The last property id. 2244s # */ 2244s # guint 2244s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2244s # { 2244s # return property_id_begin - 1; 2244s # } 2244s # 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_simple_signal ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__VOID (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # inline static void 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 2244s # GClosure *closure, 2244s # GValue *return_value, 2244s # unsigned int n_param_values, 2244s # const GValue *param_values, 2244s # void *invocation_hint, 2244s # void *marshal_data) 2244s # { 2244s # g_cclosure_marshal_VOID__STRING (closure, 2244s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2244s # } 2244s # 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface: 2244s # * 2244s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceIface: 2244s # * @parent_iface: The parent interface. 2244s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2244s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 2244s # * 2244s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2244s # */ 2244s # 2244s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2244s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2244s # 2244s # static void 2244s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2244s # { 2244s # /* GObject signals for received D-Bus signals: */ 2244s # /** 2244s # * OrgProjectSignalingIface::simple-signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2244s # g_signal_new ("simple-signal", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_simple_signal, 2244s # G_TYPE_NONE, 2244s # 0); 2244s # 2244s # /** 2244s # * OrgProjectSignalingIface::single-arg-signal-s: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_s: Argument. 2244s # * 2244s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 2244s # * 2244s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2244s # */ 2244s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 2244s # g_signal_new ("single-arg-signal-s", 2244s # G_TYPE_FROM_INTERFACE (iface), 2244s # G_SIGNAL_RUN_LAST, 2244s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 2244s # NULL, 2244s # NULL, 2244s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 2244s # G_TYPE_NONE, 2244s # 1, G_TYPE_STRING); 2244s # 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_simple_signal: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * 2244s # * Emits the "SimpleSignal" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_simple_signal ( 2244s # OrgProjectSignalingIface *object) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_emit_single_arg_signal_s: 2244s # * @object: A #OrgProjectSignalingIface. 2244s # * @arg_arg_s: Argument to pass with the signal. 2244s # * 2244s # * Emits the "SingleArgSignalS" D-Bus signal. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_emit_single_arg_signal_s ( 2244s # OrgProjectSignalingIface *object, 2244s # const gchar *arg_arg_s) 2244s # { 2244s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_arg_s); 2244s # } 2244s # 2244s # /* ------------------------------------------------------------------------ */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxy: 2244s # * 2244s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2244s # */ 2244s # 2244s # /** 2244s # * OrgProjectSignalingIfaceProxyClass: 2244s # * @parent_class: The parent class. 2244s # * 2244s # * Class structure for #OrgProjectSignalingIfaceProxy. 2244s # */ 2244s # 2244s # struct _OrgProjectSignalingIfaceProxyPrivate 2244s # { 2244s # GData *qdata; 2244s # }; 2244s # 2244s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #else 2244s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2244s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2244s # 2244s # #endif 2244s # static void 2244s # org_project_signaling_iface_proxy_finalize (GObject *object) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2244s # g_datalist_clear (&proxy->priv->qdata); 2244s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2244s # guint prop_id G_GNUC_UNUSED, 2244s # const GValue *value G_GNUC_UNUSED, 2244s # GParamSpec *pspec G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2244s # const gchar *sender_name G_GNUC_UNUSED, 2244s # const gchar *signal_name, 2244s # GVariant *parameters) 2244s # { 2244s # _ExtendedGDBusSignalInfo *info; 2244s # GVariantIter iter; 2244s # GVariant *child; 2244s # GValue *paramv; 2244s # gsize num_params; 2244s # gsize n; 2244s # guint signal_id; 2244s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2244s # if (info == NULL) 2244s # return; 2244s # num_params = g_variant_n_children (parameters); 2244s # paramv = g_new0 (GValue, num_params + 1); 2244s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_value_set_object (¶mv[0], proxy); 2244s # g_variant_iter_init (&iter, parameters); 2244s # n = 1; 2244s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2244s # { 2244s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2244s # if (arg_info->use_gvariant) 2244s # { 2244s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2244s # g_value_set_variant (¶mv[n], child); 2244s # n++; 2244s # } 2244s # else 2244s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2244s # g_variant_unref (child); 2244s # } 2244s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2244s # g_signal_emitv (paramv, signal_id, 0, NULL); 2244s # for (n = 0; n < num_params + 1; n++) 2244s # g_value_unset (¶mv[n]); 2244s # g_free (paramv); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2244s # GVariant *changed_properties, 2244s # const gchar *const *invalidated_properties) 2244s # { 2244s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2244s # guint n; 2244s # const gchar *key; 2244s # GVariantIter *iter; 2244s # _ExtendedGDBusPropertyInfo *info; 2244s # g_variant_get (changed_properties, "a{sv}", &iter); 2244s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2244s # g_datalist_remove_data (&proxy->priv->qdata, key); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # g_variant_iter_free (iter); 2244s # for (n = 0; invalidated_properties[n] != NULL; n++) 2244s # { 2244s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2244s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2244s # if (info != NULL) 2244s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2244s # } 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2244s # { 2244s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2244s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2244s # #else 2244s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2244s # #endif 2244s # 2244s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2244s # { 2244s # GObjectClass *gobject_class; 2244s # GDBusProxyClass *proxy_class; 2244s # 2244s # gobject_class = G_OBJECT_CLASS (klass); 2244s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2244s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2244s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2244s # 2244s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2244s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2244s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2244s # 2244s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2244s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2244s # #endif 2244s # } 2244s # 2244s # static void 2244s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2244s # { 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2244s # * @user_data: User data to pass to @callback. 2244s # * 2244s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2244s # * 2244s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2244s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2244s # */ 2244s # void 2244s # org_project_signaling_iface_proxy_new ( 2244s # GDBusConnection *connection, 2244s # GDBusProxyFlags flags, 2244s # const gchar *name, 2244s # const gchar *object_path, 2244s # GCancellable *cancellable, 2244s # GAsyncReadyCallback callback, 2244s # gpointer user_data) 2244s # { 2244s # 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); 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_finish: 2244s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2244s # * 2244s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2244s # */ 2244s # OrgProjectSignalingIface * 2244s # org_project_signaling_iface_proxy_new_finish ( 2244s # GAsyncResult *res, 2244s # GError **error) 2244s # { 2244s # GObject *ret; 2244s # GObject *source_object; 2244s # source_object = g_async_result_get_source_object (res); 2244s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2244s # g_object_unref (source_object); 2244s # if (ret != NULL) 2244s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2244s # else 2244s # return NULL; 2244s # } 2244s # 2244s # /** 2244s # * org_project_signaling_iface_proxy_new_sync: 2244s # * @connection: A #GDBusConnection. 2244s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2244s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2244s # * @object_path: An object path. 2244s # * @cancellable: (nullable): A #GCancellable or %NULL. 2244s # * @error: Return location for error or %NULL 2244s # * 2244s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2244s # * 2244s # * The calling thread is blocked until a reply is received. 2244s # * 2244s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2244s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_sync ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new_for_bus ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeleton: 2245s # * 2245s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeletonClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2245s # { 2245s # GValue *properties; 2245s # GList *changed_properties; 2245s # GSource *changed_properties_idle_source; 2245s # GMainContext *context; 2245s # GMutex lock; 2245s # }; 2245s # 2245s # static void 2245s # _org_project_signaling_iface_skeleton_handle_method_call ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name, 2245s # const gchar *method_name, 2245s # GVariant *parameters, 2245s # GDBusMethodInvocation *invocation, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # _ExtendedGDBusMethodInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # guint num_extra; 2245s # gsize n; 2245s # guint signal_id; 2245s # GValue return_value = G_VALUE_INIT; 2245s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2245s # g_assert (info != NULL); 2245s # num_params = g_variant_n_children (parameters); 2245s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2245s # n = 0; 2245s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[n++], skeleton); 2245s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2245s # g_value_set_object (¶mv[n++], invocation); 2245s # if (info->pass_fdlist) 2245s # { 2245s # #ifdef G_OS_UNIX 2245s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2245s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2245s # #else 2245s # g_assert_not_reached (); 2245s # #endif 2245s # } 2245s # g_variant_iter_init (&iter, parameters); 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2245s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2245s # if (!g_value_get_boolean (&return_value)) 2245s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2245s # g_value_unset (&return_value); 2245s # for (n = 0; n < num_params + num_extra; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static GVariant * 2245s # _org_project_signaling_iface_skeleton_handle_get_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # GVariant *ret; 2245s # ret = NULL; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # g_value_init (&value, pspec->value_type); 2245s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2245s # g_value_unset (&value); 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _org_project_signaling_iface_skeleton_handle_set_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GVariant *variant, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # gboolean ret; 2245s # ret = FALSE; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # if (info->use_gvariant) 2245s # g_value_set_variant (&value, variant); 2245s # else 2245s # g_dbus_gvariant_to_gvalue (variant, &value); 2245s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # g_value_unset (&value); 2245s # ret = TRUE; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2245s # { 2245s # _org_project_signaling_iface_skeleton_handle_method_call, 2245s # _org_project_signaling_iface_skeleton_handle_get_property, 2245s # _org_project_signaling_iface_skeleton_handle_set_property, 2245s # {NULL} 2245s # }; 2245s # 2245s # static GDBusInterfaceInfo * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return org_project_signaling_iface_interface_info (); 2245s # } 2245s # 2245s # static GDBusInterfaceVTable * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2245s # } 2245s # 2245s # static GVariant * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2245s # 2245s # GVariantBuilder builder; 2245s # guint n; 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2245s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #else 2245s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #endif 2245s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2245s # goto out; 2245s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2245s # { 2245s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2245s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2245s # { 2245s # GVariant *value; 2245s # 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); 2245s # if (value != NULL) 2245s # { 2245s # g_variant_take_ref (value); 2245s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2245s # g_variant_unref (value); 2245s # } 2245s # } 2245s # } 2245s # out: 2245s # return g_variant_builder_end (&builder); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 2245s # OrgProjectSignalingIface *object, 2245s # const gchar *arg_arg_s) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 2245s # arg_arg_s)); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2245s # if (skeleton->priv->changed_properties_idle_source != NULL) 2245s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2245s # g_main_context_unref (skeleton->priv->context); 2245s # g_mutex_clear (&skeleton->priv->lock); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2245s # #else 2245s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2245s # #endif 2245s # 2245s # g_mutex_init (&skeleton->priv->lock); 2245s # skeleton->priv->context = g_main_context_ref_thread_default (); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusInterfaceSkeletonClass *skeleton_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2245s # 2245s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2245s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2245s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2245s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2245s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2245s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_skeleton_new: 2245s # * 2245s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_skeleton_new (void) 2245s # { 2245s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2245s # } 2245s # Error: 2245s # 2245s # /tmp/tmpcnzv9ghf/tmpo3qv_rrr.xml: 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmpo3qv_rrr.xml', '--output', '-', '--body'] 2245s # Return code: 0 2245s # Output: 2245s # /* 2245s # * This file is generated by gdbus-codegen, do not modify it. 2245s # * 2245s # * The license of this code is the same as for the D-Bus interface description 2245s # * it was derived from. Note that it links to GLib, so must comply with the 2245s # * LGPL linking clauses. 2245s # */ 2245s # 2245s # #ifdef HAVE_CONFIG_H 2245s # # include "config.h" 2245s # #endif 2245s # 2245s # #include 2245s # #ifdef G_OS_UNIX 2245s # # include 2245s # #endif 2245s # 2245s # #ifdef G_ENABLE_DEBUG 2245s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2245s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2245s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2245s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2245s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2245s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2245s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2245s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2245s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2245s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2245s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2245s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2245s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2245s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2245s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2245s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2245s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2245s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2245s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2245s # #else /* !G_ENABLE_DEBUG */ 2245s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2245s # * Do not access GValues directly in your code. Instead, use the 2245s # * g_value_get_*() functions 2245s # */ 2245s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2245s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2245s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2245s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2245s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2245s # #endif /* !G_ENABLE_DEBUG */ 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusArgInfo parent_struct; 2245s # gboolean use_gvariant; 2245s # } _ExtendedGDBusArgInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusMethodInfo parent_struct; 2245s # const gchar *signal_name; 2245s # gboolean pass_fdlist; 2245s # } _ExtendedGDBusMethodInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusSignalInfo parent_struct; 2245s # const gchar *signal_name; 2245s # } _ExtendedGDBusSignalInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusPropertyInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # guint use_gvariant : 1; 2245s # guint emits_changed_signal : 1; 2245s # } _ExtendedGDBusPropertyInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusInterfaceInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # } _ExtendedGDBusInterfaceInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # const _ExtendedGDBusPropertyInfo *info; 2245s # guint prop_id; 2245s # GValue orig_value; /* the value before the change */ 2245s # } ChangedProperty; 2245s # 2245s # static void 2245s # _changed_property_free (ChangedProperty *data) 2245s # { 2245s # g_value_unset (&data->orig_value); 2245s # g_free (data); 2245s # } 2245s # 2245s # static gboolean 2245s # _g_strv_equal0 (gchar **a, gchar **b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # guint n; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # if (g_strv_length (a) != g_strv_length (b)) 2245s # goto out; 2245s # for (n = 0; a[n] != NULL; n++) 2245s # if (g_strcmp0 (a[n], b[n]) != 0) 2245s # goto out; 2245s # ret = TRUE; 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _g_variant_equal0 (GVariant *a, GVariant *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # ret = g_variant_equal (a, b); 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # G_GNUC_UNUSED static gboolean 2245s # _g_value_equal (const GValue *a, const GValue *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2245s # switch (G_VALUE_TYPE (a)) 2245s # { 2245s # case G_TYPE_BOOLEAN: 2245s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2245s # break; 2245s # case G_TYPE_UCHAR: 2245s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2245s # break; 2245s # case G_TYPE_INT: 2245s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2245s # break; 2245s # case G_TYPE_UINT: 2245s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2245s # break; 2245s # case G_TYPE_INT64: 2245s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2245s # break; 2245s # case G_TYPE_UINT64: 2245s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2245s # break; 2245s # case G_TYPE_DOUBLE: 2245s # { 2245s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2245s # gdouble da = g_value_get_double (a); 2245s # gdouble db = g_value_get_double (b); 2245s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2245s # } 2245s # break; 2245s # case G_TYPE_STRING: 2245s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2245s # break; 2245s # case G_TYPE_VARIANT: 2245s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2245s # break; 2245s # default: 2245s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2245s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2245s # else 2245s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2245s # break; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ 2245s # * Code for interface org.project.SignalingIface 2245s # * ------------------------------------------------------------------------ 2245s # */ 2245s # 2245s # /** 2245s # * SECTION:OrgProjectSignalingIface 2245s # * @title: OrgProjectSignalingIface 2245s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2245s # * 2245s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2245s # */ 2245s # 2245s # enum 2245s # { 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2245s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 2245s # }; 2245s # 2245s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2245s # 2245s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SimpleSignal", 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "simple-signal" 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "arg_o", 2245s # (gchar *) "o", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SingleArgSignalO", 2245s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 2245s # NULL 2245s # }, 2245s # "single-arg-signal-o" 2245s # }; 2245s # 2245s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "org.project.SignalingIface", 2245s # NULL, 2245s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "org-project-signaling-iface", 2245s # }; 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_interface_info: 2245s # * 2245s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2245s # * 2245s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2245s # */ 2245s # GDBusInterfaceInfo * 2245s # org_project_signaling_iface_interface_info (void) 2245s # { 2245s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_override_properties: 2245s # * @klass: The class structure for a #GObject derived class. 2245s # * @property_id_begin: The property id to assign to the first overridden property. 2245s # * 2245s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2245s # * The properties are overridden in the order they are defined. 2245s # * 2245s # * Returns: The last property id. 2245s # */ 2245s # guint 2245s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2245s # { 2245s # return property_id_begin - 1; 2245s # } 2245s # 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_simple_signal ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # g_cclosure_marshal_VOID__VOID (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # g_cclosure_marshal_VOID__STRING (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface: 2245s # * 2245s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceIface: 2245s # * @parent_iface: The parent interface. 2245s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2245s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 2245s # * 2245s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2245s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2245s # 2245s # static void 2245s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # /* GObject signals for received D-Bus signals: */ 2245s # /** 2245s # * OrgProjectSignalingIface::simple-signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2245s # g_signal_new ("simple-signal", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_simple_signal, 2245s # G_TYPE_NONE, 2245s # 0); 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface::single-arg-signal-o: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_arg_o: Argument. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 2245s # g_signal_new ("single-arg-signal-o", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 2245s # G_TYPE_NONE, 2245s # 1, G_TYPE_STRING); 2245s # 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_simple_signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * Emits the "SimpleSignal" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_single_arg_signal_o: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_arg_o: Argument to pass with the signal. 2245s # * 2245s # * Emits the "SingleArgSignalO" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_single_arg_signal_o ( 2245s # OrgProjectSignalingIface *object, 2245s # const gchar *arg_arg_o) 2245s # { 2245s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_arg_o); 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxy: 2245s # * 2245s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxyClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceProxy. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceProxyPrivate 2245s # { 2245s # GData *qdata; 2245s # }; 2245s # 2245s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_proxy_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2245s # g_datalist_clear (&proxy->priv->qdata); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # const GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2245s # const gchar *sender_name G_GNUC_UNUSED, 2245s # const gchar *signal_name, 2245s # GVariant *parameters) 2245s # { 2245s # _ExtendedGDBusSignalInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # gsize n; 2245s # guint signal_id; 2245s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2245s # if (info == NULL) 2245s # return; 2245s # num_params = g_variant_n_children (parameters); 2245s # paramv = g_new0 (GValue, num_params + 1); 2245s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[0], proxy); 2245s # g_variant_iter_init (&iter, parameters); 2245s # n = 1; 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_signal_emitv (paramv, signal_id, 0, NULL); 2245s # for (n = 0; n < num_params + 1; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2245s # GVariant *changed_properties, 2245s # const gchar *const *invalidated_properties) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2245s # guint n; 2245s # const gchar *key; 2245s # GVariantIter *iter; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # g_variant_get (changed_properties, "a{sv}", &iter); 2245s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2245s # g_datalist_remove_data (&proxy->priv->qdata, key); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # g_variant_iter_free (iter); 2245s # for (n = 0; invalidated_properties[n] != NULL; n++) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2245s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2245s # #else 2245s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2245s # #endif 2245s # 2245s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusProxyClass *proxy_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2245s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2245s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2245s # 2245s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2245s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2245s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_sync: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_sync ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new_for_bus ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeleton: 2245s # * 2245s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeletonClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2245s # { 2245s # GValue *properties; 2245s # GList *changed_properties; 2245s # GSource *changed_properties_idle_source; 2245s # GMainContext *context; 2245s # GMutex lock; 2245s # }; 2245s # 2245s # static void 2245s # _org_project_signaling_iface_skeleton_handle_method_call ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name, 2245s # const gchar *method_name, 2245s # GVariant *parameters, 2245s # GDBusMethodInvocation *invocation, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # _ExtendedGDBusMethodInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # guint num_extra; 2245s # gsize n; 2245s # guint signal_id; 2245s # GValue return_value = G_VALUE_INIT; 2245s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2245s # g_assert (info != NULL); 2245s # num_params = g_variant_n_children (parameters); 2245s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2245s # n = 0; 2245s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[n++], skeleton); 2245s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2245s # g_value_set_object (¶mv[n++], invocation); 2245s # if (info->pass_fdlist) 2245s # { 2245s # #ifdef G_OS_UNIX 2245s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2245s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2245s # #else 2245s # g_assert_not_reached (); 2245s # #endif 2245s # } 2245s # g_variant_iter_init (&iter, parameters); 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2245s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2245s # if (!g_value_get_boolean (&return_value)) 2245s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2245s # g_value_unset (&return_value); 2245s # for (n = 0; n < num_params + num_extra; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static GVariant * 2245s # _org_project_signaling_iface_skeleton_handle_get_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # GVariant *ret; 2245s # ret = NULL; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # g_value_init (&value, pspec->value_type); 2245s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2245s # g_value_unset (&value); 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _org_project_signaling_iface_skeleton_handle_set_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GVariant *variant, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # gboolean ret; 2245s # ret = FALSE; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # if (info->use_gvariant) 2245s # g_value_set_variant (&value, variant); 2245s # else 2245s # g_dbus_gvariant_to_gvalue (variant, &value); 2245s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # g_value_unset (&value); 2245s # ret = TRUE; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2245s # { 2245s # _org_project_signaling_iface_skeleton_handle_method_call, 2245s # _org_project_signaling_iface_skeleton_handle_get_property, 2245s # _org_project_signaling_iface_skeleton_handle_set_property, 2245s # {NULL} 2245s # }; 2245s # 2245s # static GDBusInterfaceInfo * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return org_project_signaling_iface_interface_info (); 2245s # } 2245s # 2245s # static GDBusInterfaceVTable * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2245s # } 2245s # 2245s # static GVariant * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2245s # 2245s # GVariantBuilder builder; 2245s # guint n; 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2245s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #else 2245s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #endif 2245s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2245s # goto out; 2245s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2245s # { 2245s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2245s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2245s # { 2245s # GVariant *value; 2245s # 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); 2245s # if (value != NULL) 2245s # { 2245s # g_variant_take_ref (value); 2245s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2245s # g_variant_unref (value); 2245s # } 2245s # } 2245s # } 2245s # out: 2245s # return g_variant_builder_end (&builder); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 2245s # OrgProjectSignalingIface *object, 2245s # const gchar *arg_arg_o) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 2245s # arg_arg_o)); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2245s # if (skeleton->priv->changed_properties_idle_source != NULL) 2245s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2245s # g_main_context_unref (skeleton->priv->context); 2245s # g_mutex_clear (&skeleton->priv->lock); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2245s # #else 2245s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2245s # #endif 2245s # 2245s # g_mutex_init (&skeleton->priv->lock); 2245s # skeleton->priv->context = g_main_context_ref_thread_default (); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusInterfaceSkeletonClass *skeleton_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2245s # 2245s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2245s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2245s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2245s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2245s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2245s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_skeleton_new: 2245s # * 2245s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_skeleton_new (void) 2245s # { 2245s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2245s # } 2245s # Error: 2245s # 2245s # /tmp/tmpcnzv9ghf/tmpzutlm05n.xml: 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmpzutlm05n.xml', '--output', '-', '--body'] 2245s # Return code: 0 2245s # Output: 2245s # /* 2245s # * This file is generated by gdbus-codegen, do not modify it. 2245s # * 2245s # * The license of this code is the same as for the D-Bus interface description 2245s # * it was derived from. Note that it links to GLib, so must comply with the 2245s # * LGPL linking clauses. 2245s # */ 2245s # 2245s # #ifdef HAVE_CONFIG_H 2245s # # include "config.h" 2245s # #endif 2245s # 2245s # #include 2245s # #ifdef G_OS_UNIX 2245s # # include 2245s # #endif 2245s # 2245s # #ifdef G_ENABLE_DEBUG 2245s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2245s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2245s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2245s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2245s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2245s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2245s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2245s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2245s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2245s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2245s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2245s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2245s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2245s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2245s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2245s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2245s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2245s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2245s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2245s # #else /* !G_ENABLE_DEBUG */ 2245s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2245s # * Do not access GValues directly in your code. Instead, use the 2245s # * g_value_get_*() functions 2245s # */ 2245s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2245s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2245s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2245s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2245s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2245s # #endif /* !G_ENABLE_DEBUG */ 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusArgInfo parent_struct; 2245s # gboolean use_gvariant; 2245s # } _ExtendedGDBusArgInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusMethodInfo parent_struct; 2245s # const gchar *signal_name; 2245s # gboolean pass_fdlist; 2245s # } _ExtendedGDBusMethodInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusSignalInfo parent_struct; 2245s # const gchar *signal_name; 2245s # } _ExtendedGDBusSignalInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusPropertyInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # guint use_gvariant : 1; 2245s # guint emits_changed_signal : 1; 2245s # } _ExtendedGDBusPropertyInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusInterfaceInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # } _ExtendedGDBusInterfaceInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # const _ExtendedGDBusPropertyInfo *info; 2245s # guint prop_id; 2245s # GValue orig_value; /* the value before the change */ 2245s # } ChangedProperty; 2245s # 2245s # static void 2245s # _changed_property_free (ChangedProperty *data) 2245s # { 2245s # g_value_unset (&data->orig_value); 2245s # g_free (data); 2245s # } 2245s # 2245s # static gboolean 2245s # _g_strv_equal0 (gchar **a, gchar **b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # guint n; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # if (g_strv_length (a) != g_strv_length (b)) 2245s # goto out; 2245s # for (n = 0; a[n] != NULL; n++) 2245s # if (g_strcmp0 (a[n], b[n]) != 0) 2245s # goto out; 2245s # ret = TRUE; 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _g_variant_equal0 (GVariant *a, GVariant *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # ret = g_variant_equal (a, b); 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # G_GNUC_UNUSED static gboolean 2245s # _g_value_equal (const GValue *a, const GValue *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2245s # switch (G_VALUE_TYPE (a)) 2245s # { 2245s # case G_TYPE_BOOLEAN: 2245s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2245s # break; 2245s # case G_TYPE_UCHAR: 2245s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2245s # break; 2245s # case G_TYPE_INT: 2245s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2245s # break; 2245s # case G_TYPE_UINT: 2245s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2245s # break; 2245s # case G_TYPE_INT64: 2245s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2245s # break; 2245s # case G_TYPE_UINT64: 2245s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2245s # break; 2245s # case G_TYPE_DOUBLE: 2245s # { 2245s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2245s # gdouble da = g_value_get_double (a); 2245s # gdouble db = g_value_get_double (b); 2245s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2245s # } 2245s # break; 2245s # case G_TYPE_STRING: 2245s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2245s # break; 2245s # case G_TYPE_VARIANT: 2245s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2245s # break; 2245s # default: 2245s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2245s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2245s # else 2245s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2245s # break; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ 2245s # * Code for interface org.project.SignalingIface 2245s # * ------------------------------------------------------------------------ 2245s # */ 2245s # 2245s # /** 2245s # * SECTION:OrgProjectSignalingIface 2245s # * @title: OrgProjectSignalingIface 2245s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2245s # * 2245s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2245s # */ 2245s # 2245s # enum 2245s # { 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2245s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 2245s # }; 2245s # 2245s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2245s # 2245s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SimpleSignal", 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "simple-signal" 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "arg_g", 2245s # (gchar *) "g", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SingleArgSignalG", 2245s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 2245s # NULL 2245s # }, 2245s # "single-arg-signal-g" 2245s # }; 2245s # 2245s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "org.project.SignalingIface", 2245s # NULL, 2245s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "org-project-signaling-iface", 2245s # }; 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_interface_info: 2245s # * 2245s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2245s # * 2245s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2245s # */ 2245s # GDBusInterfaceInfo * 2245s # org_project_signaling_iface_interface_info (void) 2245s # { 2245s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_override_properties: 2245s # * @klass: The class structure for a #GObject derived class. 2245s # * @property_id_begin: The property id to assign to the first overridden property. 2245s # * 2245s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2245s # * The properties are overridden in the order they are defined. 2245s # * 2245s # * Returns: The last property id. 2245s # */ 2245s # guint 2245s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2245s # { 2245s # return property_id_begin - 1; 2245s # } 2245s # 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_simple_signal ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # g_cclosure_marshal_VOID__VOID (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # g_cclosure_marshal_VOID__STRING (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface: 2245s # * 2245s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceIface: 2245s # * @parent_iface: The parent interface. 2245s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2245s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 2245s # * 2245s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2245s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2245s # 2245s # static void 2245s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # /* GObject signals for received D-Bus signals: */ 2245s # /** 2245s # * OrgProjectSignalingIface::simple-signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2245s # g_signal_new ("simple-signal", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_simple_signal, 2245s # G_TYPE_NONE, 2245s # 0); 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface::single-arg-signal-g: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_arg_g: Argument. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 2245s # g_signal_new ("single-arg-signal-g", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 2245s # G_TYPE_NONE, 2245s # 1, G_TYPE_STRING); 2245s # 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_simple_signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * Emits the "SimpleSignal" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_single_arg_signal_g: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_arg_g: Argument to pass with the signal. 2245s # * 2245s # * Emits the "SingleArgSignalG" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_single_arg_signal_g ( 2245s # OrgProjectSignalingIface *object, 2245s # const gchar *arg_arg_g) 2245s # { 2245s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_arg_g); 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxy: 2245s # * 2245s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxyClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceProxy. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceProxyPrivate 2245s # { 2245s # GData *qdata; 2245s # }; 2245s # 2245s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_proxy_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2245s # g_datalist_clear (&proxy->priv->qdata); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # const GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2245s # const gchar *sender_name G_GNUC_UNUSED, 2245s # const gchar *signal_name, 2245s # GVariant *parameters) 2245s # { 2245s # _ExtendedGDBusSignalInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # gsize n; 2245s # guint signal_id; 2245s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2245s # if (info == NULL) 2245s # return; 2245s # num_params = g_variant_n_children (parameters); 2245s # paramv = g_new0 (GValue, num_params + 1); 2245s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[0], proxy); 2245s # g_variant_iter_init (&iter, parameters); 2245s # n = 1; 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_signal_emitv (paramv, signal_id, 0, NULL); 2245s # for (n = 0; n < num_params + 1; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2245s # GVariant *changed_properties, 2245s # const gchar *const *invalidated_properties) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2245s # guint n; 2245s # const gchar *key; 2245s # GVariantIter *iter; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # g_variant_get (changed_properties, "a{sv}", &iter); 2245s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2245s # g_datalist_remove_data (&proxy->priv->qdata, key); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # g_variant_iter_free (iter); 2245s # for (n = 0; invalidated_properties[n] != NULL; n++) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2245s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2245s # #else 2245s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2245s # #endif 2245s # 2245s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusProxyClass *proxy_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2245s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2245s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2245s # 2245s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2245s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2245s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_sync: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_sync ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new_for_bus ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeleton: 2245s # * 2245s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeletonClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2245s # { 2245s # GValue *properties; 2245s # GList *changed_properties; 2245s # GSource *changed_properties_idle_source; 2245s # GMainContext *context; 2245s # GMutex lock; 2245s # }; 2245s # 2245s # static void 2245s # _org_project_signaling_iface_skeleton_handle_method_call ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name, 2245s # const gchar *method_name, 2245s # GVariant *parameters, 2245s # GDBusMethodInvocation *invocation, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # _ExtendedGDBusMethodInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # guint num_extra; 2245s # gsize n; 2245s # guint signal_id; 2245s # GValue return_value = G_VALUE_INIT; 2245s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2245s # g_assert (info != NULL); 2245s # num_params = g_variant_n_children (parameters); 2245s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2245s # n = 0; 2245s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[n++], skeleton); 2245s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2245s # g_value_set_object (¶mv[n++], invocation); 2245s # if (info->pass_fdlist) 2245s # { 2245s # #ifdef G_OS_UNIX 2245s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2245s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2245s # #else 2245s # g_assert_not_reached (); 2245s # #endif 2245s # } 2245s # g_variant_iter_init (&iter, parameters); 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2245s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2245s # if (!g_value_get_boolean (&return_value)) 2245s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2245s # g_value_unset (&return_value); 2245s # for (n = 0; n < num_params + num_extra; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static GVariant * 2245s # _org_project_signaling_iface_skeleton_handle_get_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # GVariant *ret; 2245s # ret = NULL; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # g_value_init (&value, pspec->value_type); 2245s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2245s # g_value_unset (&value); 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _org_project_signaling_iface_skeleton_handle_set_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GVariant *variant, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # gboolean ret; 2245s # ret = FALSE; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # if (info->use_gvariant) 2245s # g_value_set_variant (&value, variant); 2245s # else 2245s # g_dbus_gvariant_to_gvalue (variant, &value); 2245s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # g_value_unset (&value); 2245s # ret = TRUE; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2245s # { 2245s # _org_project_signaling_iface_skeleton_handle_method_call, 2245s # _org_project_signaling_iface_skeleton_handle_get_property, 2245s # _org_project_signaling_iface_skeleton_handle_set_property, 2245s # {NULL} 2245s # }; 2245s # 2245s # static GDBusInterfaceInfo * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return org_project_signaling_iface_interface_info (); 2245s # } 2245s # 2245s # static GDBusInterfaceVTable * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2245s # } 2245s # 2245s # static GVariant * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2245s # 2245s # GVariantBuilder builder; 2245s # guint n; 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2245s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #else 2245s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #endif 2245s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2245s # goto out; 2245s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2245s # { 2245s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2245s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2245s # { 2245s # GVariant *value; 2245s # 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); 2245s # if (value != NULL) 2245s # { 2245s # g_variant_take_ref (value); 2245s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2245s # g_variant_unref (value); 2245s # } 2245s # } 2245s # } 2245s # out: 2245s # return g_variant_builder_end (&builder); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 2245s # OrgProjectSignalingIface *object, 2245s # const gchar *arg_arg_g) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 2245s # arg_arg_g)); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2245s # if (skeleton->priv->changed_properties_idle_source != NULL) 2245s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2245s # g_main_context_unref (skeleton->priv->context); 2245s # g_mutex_clear (&skeleton->priv->lock); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2245s # #else 2245s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2245s # #endif 2245s # 2245s # g_mutex_init (&skeleton->priv->lock); 2245s # skeleton->priv->context = g_main_context_ref_thread_default (); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusInterfaceSkeletonClass *skeleton_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2245s # 2245s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2245s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2245s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2245s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2245s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2245s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_skeleton_new: 2245s # * 2245s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_skeleton_new (void) 2245s # { 2245s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2245s # } 2245s # Error: 2245s # 2245s # /tmp/tmpcnzv9ghf/tmp8ilxjbjv.xml: 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmp8ilxjbjv.xml', '--output', '-', '--body'] 2245s # Return code: 0 2245s # Output: 2245s # /* 2245s # * This file is generated by gdbus-codegen, do not modify it. 2245s # * 2245s # * The license of this code is the same as for the D-Bus interface description 2245s # * it was derived from. Note that it links to GLib, so must comply with the 2245s # * LGPL linking clauses. 2245s # */ 2245s # 2245s # #ifdef HAVE_CONFIG_H 2245s # # include "config.h" 2245s # #endif 2245s # 2245s # #include 2245s # #ifdef G_OS_UNIX 2245s # # include 2245s # #endif 2245s # 2245s # #ifdef G_ENABLE_DEBUG 2245s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2245s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2245s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2245s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2245s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2245s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2245s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2245s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2245s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2245s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2245s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2245s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2245s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2245s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2245s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2245s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2245s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2245s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2245s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2245s # #else /* !G_ENABLE_DEBUG */ 2245s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2245s # * Do not access GValues directly in your code. Instead, use the 2245s # * g_value_get_*() functions 2245s # */ 2245s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2245s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2245s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2245s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2245s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2245s # #endif /* !G_ENABLE_DEBUG */ 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusArgInfo parent_struct; 2245s # gboolean use_gvariant; 2245s # } _ExtendedGDBusArgInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusMethodInfo parent_struct; 2245s # const gchar *signal_name; 2245s # gboolean pass_fdlist; 2245s # } _ExtendedGDBusMethodInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusSignalInfo parent_struct; 2245s # const gchar *signal_name; 2245s # } _ExtendedGDBusSignalInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusPropertyInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # guint use_gvariant : 1; 2245s # guint emits_changed_signal : 1; 2245s # } _ExtendedGDBusPropertyInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusInterfaceInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # } _ExtendedGDBusInterfaceInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # const _ExtendedGDBusPropertyInfo *info; 2245s # guint prop_id; 2245s # GValue orig_value; /* the value before the change */ 2245s # } ChangedProperty; 2245s # 2245s # static void 2245s # _changed_property_free (ChangedProperty *data) 2245s # { 2245s # g_value_unset (&data->orig_value); 2245s # g_free (data); 2245s # } 2245s # 2245s # static gboolean 2245s # _g_strv_equal0 (gchar **a, gchar **b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # guint n; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # if (g_strv_length (a) != g_strv_length (b)) 2245s # goto out; 2245s # for (n = 0; a[n] != NULL; n++) 2245s # if (g_strcmp0 (a[n], b[n]) != 0) 2245s # goto out; 2245s # ret = TRUE; 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _g_variant_equal0 (GVariant *a, GVariant *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # ret = g_variant_equal (a, b); 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # G_GNUC_UNUSED static gboolean 2245s # _g_value_equal (const GValue *a, const GValue *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2245s # switch (G_VALUE_TYPE (a)) 2245s # { 2245s # case G_TYPE_BOOLEAN: 2245s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2245s # break; 2245s # case G_TYPE_UCHAR: 2245s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2245s # break; 2245s # case G_TYPE_INT: 2245s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2245s # break; 2245s # case G_TYPE_UINT: 2245s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2245s # break; 2245s # case G_TYPE_INT64: 2245s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2245s # break; 2245s # case G_TYPE_UINT64: 2245s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2245s # break; 2245s # case G_TYPE_DOUBLE: 2245s # { 2245s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2245s # gdouble da = g_value_get_double (a); 2245s # gdouble db = g_value_get_double (b); 2245s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2245s # } 2245s # break; 2245s # case G_TYPE_STRING: 2245s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2245s # break; 2245s # case G_TYPE_VARIANT: 2245s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2245s # break; 2245s # default: 2245s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2245s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2245s # else 2245s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2245s # break; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ 2245s # * Code for interface org.project.SignalingIface 2245s # * ------------------------------------------------------------------------ 2245s # */ 2245s # 2245s # /** 2245s # * SECTION:OrgProjectSignalingIface 2245s # * @title: OrgProjectSignalingIface 2245s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2245s # * 2245s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2245s # */ 2245s # 2245s # enum 2245s # { 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2245s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 2245s # }; 2245s # 2245s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2245s # 2245s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SimpleSignal", 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "simple-signal" 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "arg_h", 2245s # (gchar *) "h", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SingleArgSignalH", 2245s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 2245s # NULL 2245s # }, 2245s # "single-arg-signal-h" 2245s # }; 2245s # 2245s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "org.project.SignalingIface", 2245s # NULL, 2245s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "org-project-signaling-iface", 2245s # }; 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_interface_info: 2245s # * 2245s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2245s # * 2245s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2245s # */ 2245s # GDBusInterfaceInfo * 2245s # org_project_signaling_iface_interface_info (void) 2245s # { 2245s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_override_properties: 2245s # * @klass: The class structure for a #GObject derived class. 2245s # * @property_id_begin: The property id to assign to the first overridden property. 2245s # * 2245s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2245s # * The properties are overridden in the order they are defined. 2245s # * 2245s # * Returns: The last property id. 2245s # */ 2245s # guint 2245s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2245s # { 2245s # return property_id_begin - 1; 2245s # } 2245s # 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_simple_signal ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # g_cclosure_marshal_VOID__VOID (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # g_cclosure_marshal_VOID__VARIANT (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface: 2245s # * 2245s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceIface: 2245s # * @parent_iface: The parent interface. 2245s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2245s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 2245s # * 2245s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2245s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2245s # 2245s # static void 2245s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # /* GObject signals for received D-Bus signals: */ 2245s # /** 2245s # * OrgProjectSignalingIface::simple-signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2245s # g_signal_new ("simple-signal", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_simple_signal, 2245s # G_TYPE_NONE, 2245s # 0); 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface::single-arg-signal-h: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_arg_h: Argument. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 2245s # g_signal_new ("single-arg-signal-h", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 2245s # G_TYPE_NONE, 2245s # 1, G_TYPE_VARIANT); 2245s # 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_simple_signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * Emits the "SimpleSignal" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_single_arg_signal_h: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_arg_h: Argument to pass with the signal. 2245s # * 2245s # * Emits the "SingleArgSignalH" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_single_arg_signal_h ( 2245s # OrgProjectSignalingIface *object, 2245s # GVariant *arg_arg_h) 2245s # { 2245s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_arg_h); 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxy: 2245s # * 2245s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxyClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceProxy. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceProxyPrivate 2245s # { 2245s # GData *qdata; 2245s # }; 2245s # 2245s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_proxy_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2245s # g_datalist_clear (&proxy->priv->qdata); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # const GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2245s # const gchar *sender_name G_GNUC_UNUSED, 2245s # const gchar *signal_name, 2245s # GVariant *parameters) 2245s # { 2245s # _ExtendedGDBusSignalInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # gsize n; 2245s # guint signal_id; 2245s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2245s # if (info == NULL) 2245s # return; 2245s # num_params = g_variant_n_children (parameters); 2245s # paramv = g_new0 (GValue, num_params + 1); 2245s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[0], proxy); 2245s # g_variant_iter_init (&iter, parameters); 2245s # n = 1; 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_signal_emitv (paramv, signal_id, 0, NULL); 2245s # for (n = 0; n < num_params + 1; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2245s # GVariant *changed_properties, 2245s # const gchar *const *invalidated_properties) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2245s # guint n; 2245s # const gchar *key; 2245s # GVariantIter *iter; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # g_variant_get (changed_properties, "a{sv}", &iter); 2245s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2245s # g_datalist_remove_data (&proxy->priv->qdata, key); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # g_variant_iter_free (iter); 2245s # for (n = 0; invalidated_properties[n] != NULL; n++) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2245s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2245s # #else 2245s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2245s # #endif 2245s # 2245s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusProxyClass *proxy_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2245s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2245s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2245s # 2245s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2245s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2245s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_sync: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_sync ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new_for_bus ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeleton: 2245s # * 2245s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeletonClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2245s # { 2245s # GValue *properties; 2245s # GList *changed_properties; 2245s # GSource *changed_properties_idle_source; 2245s # GMainContext *context; 2245s # GMutex lock; 2245s # }; 2245s # 2245s # static void 2245s # _org_project_signaling_iface_skeleton_handle_method_call ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name, 2245s # const gchar *method_name, 2245s # GVariant *parameters, 2245s # GDBusMethodInvocation *invocation, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # _ExtendedGDBusMethodInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # guint num_extra; 2245s # gsize n; 2245s # guint signal_id; 2245s # GValue return_value = G_VALUE_INIT; 2245s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2245s # g_assert (info != NULL); 2245s # num_params = g_variant_n_children (parameters); 2245s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2245s # n = 0; 2245s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[n++], skeleton); 2245s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2245s # g_value_set_object (¶mv[n++], invocation); 2245s # if (info->pass_fdlist) 2245s # { 2245s # #ifdef G_OS_UNIX 2245s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2245s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2245s # #else 2245s # g_assert_not_reached (); 2245s # #endif 2245s # } 2245s # g_variant_iter_init (&iter, parameters); 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2245s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2245s # if (!g_value_get_boolean (&return_value)) 2245s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2245s # g_value_unset (&return_value); 2245s # for (n = 0; n < num_params + num_extra; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static GVariant * 2245s # _org_project_signaling_iface_skeleton_handle_get_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # GVariant *ret; 2245s # ret = NULL; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # g_value_init (&value, pspec->value_type); 2245s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2245s # g_value_unset (&value); 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _org_project_signaling_iface_skeleton_handle_set_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GVariant *variant, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # gboolean ret; 2245s # ret = FALSE; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # if (info->use_gvariant) 2245s # g_value_set_variant (&value, variant); 2245s # else 2245s # g_dbus_gvariant_to_gvalue (variant, &value); 2245s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # g_value_unset (&value); 2245s # ret = TRUE; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2245s # { 2245s # _org_project_signaling_iface_skeleton_handle_method_call, 2245s # _org_project_signaling_iface_skeleton_handle_get_property, 2245s # _org_project_signaling_iface_skeleton_handle_set_property, 2245s # {NULL} 2245s # }; 2245s # 2245s # static GDBusInterfaceInfo * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return org_project_signaling_iface_interface_info (); 2245s # } 2245s # 2245s # static GDBusInterfaceVTable * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2245s # } 2245s # 2245s # static GVariant * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2245s # 2245s # GVariantBuilder builder; 2245s # guint n; 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2245s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #else 2245s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #endif 2245s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2245s # goto out; 2245s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2245s # { 2245s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2245s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2245s # { 2245s # GVariant *value; 2245s # 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); 2245s # if (value != NULL) 2245s # { 2245s # g_variant_take_ref (value); 2245s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2245s # g_variant_unref (value); 2245s # } 2245s # } 2245s # } 2245s # out: 2245s # return g_variant_builder_end (&builder); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 2245s # OrgProjectSignalingIface *object, 2245s # GVariant *arg_arg_h) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 2245s # arg_arg_h)); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2245s # if (skeleton->priv->changed_properties_idle_source != NULL) 2245s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2245s # g_main_context_unref (skeleton->priv->context); 2245s # g_mutex_clear (&skeleton->priv->lock); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2245s # #else 2245s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2245s # #endif 2245s # 2245s # g_mutex_init (&skeleton->priv->lock); 2245s # skeleton->priv->context = g_main_context_ref_thread_default (); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusInterfaceSkeletonClass *skeleton_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2245s # 2245s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2245s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2245s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2245s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2245s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2245s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_skeleton_new: 2245s # * 2245s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_skeleton_new (void) 2245s # { 2245s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2245s # } 2245s # Error: 2245s # 2245s # /tmp/tmpcnzv9ghf/tmpsao1ndwd.xml: 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmpsao1ndwd.xml', '--output', '-', '--body'] 2245s # Return code: 0 2245s # Output: 2245s # /* 2245s # * This file is generated by gdbus-codegen, do not modify it. 2245s # * 2245s # * The license of this code is the same as for the D-Bus interface description 2245s # * it was derived from. Note that it links to GLib, so must comply with the 2245s # * LGPL linking clauses. 2245s # */ 2245s # 2245s # #ifdef HAVE_CONFIG_H 2245s # # include "config.h" 2245s # #endif 2245s # 2245s # #include 2245s # #ifdef G_OS_UNIX 2245s # # include 2245s # #endif 2245s # 2245s # #ifdef G_ENABLE_DEBUG 2245s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2245s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2245s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2245s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2245s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2245s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2245s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2245s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2245s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2245s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2245s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2245s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2245s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2245s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2245s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2245s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2245s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2245s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2245s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2245s # #else /* !G_ENABLE_DEBUG */ 2245s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2245s # * Do not access GValues directly in your code. Instead, use the 2245s # * g_value_get_*() functions 2245s # */ 2245s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2245s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2245s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2245s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2245s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2245s # #endif /* !G_ENABLE_DEBUG */ 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusArgInfo parent_struct; 2245s # gboolean use_gvariant; 2245s # } _ExtendedGDBusArgInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusMethodInfo parent_struct; 2245s # const gchar *signal_name; 2245s # gboolean pass_fdlist; 2245s # } _ExtendedGDBusMethodInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusSignalInfo parent_struct; 2245s # const gchar *signal_name; 2245s # } _ExtendedGDBusSignalInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusPropertyInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # guint use_gvariant : 1; 2245s # guint emits_changed_signal : 1; 2245s # } _ExtendedGDBusPropertyInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusInterfaceInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # } _ExtendedGDBusInterfaceInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # const _ExtendedGDBusPropertyInfo *info; 2245s # guint prop_id; 2245s # GValue orig_value; /* the value before the change */ 2245s # } ChangedProperty; 2245s # 2245s # static void 2245s # _changed_property_free (ChangedProperty *data) 2245s # { 2245s # g_value_unset (&data->orig_value); 2245s # g_free (data); 2245s # } 2245s # 2245s # static gboolean 2245s # _g_strv_equal0 (gchar **a, gchar **b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # guint n; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # if (g_strv_length (a) != g_strv_length (b)) 2245s # goto out; 2245s # for (n = 0; a[n] != NULL; n++) 2245s # if (g_strcmp0 (a[n], b[n]) != 0) 2245s # goto out; 2245s # ret = TRUE; 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _g_variant_equal0 (GVariant *a, GVariant *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # ret = g_variant_equal (a, b); 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # G_GNUC_UNUSED static gboolean 2245s # _g_value_equal (const GValue *a, const GValue *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2245s # switch (G_VALUE_TYPE (a)) 2245s # { 2245s # case G_TYPE_BOOLEAN: 2245s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2245s # break; 2245s # case G_TYPE_UCHAR: 2245s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2245s # break; 2245s # case G_TYPE_INT: 2245s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2245s # break; 2245s # case G_TYPE_UINT: 2245s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2245s # break; 2245s # case G_TYPE_INT64: 2245s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2245s # break; 2245s # case G_TYPE_UINT64: 2245s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2245s # break; 2245s # case G_TYPE_DOUBLE: 2245s # { 2245s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2245s # gdouble da = g_value_get_double (a); 2245s # gdouble db = g_value_get_double (b); 2245s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2245s # } 2245s # break; 2245s # case G_TYPE_STRING: 2245s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2245s # break; 2245s # case G_TYPE_VARIANT: 2245s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2245s # break; 2245s # default: 2245s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2245s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2245s # else 2245s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2245s # break; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ 2245s # * Code for interface org.project.SignalingIface 2245s # * ------------------------------------------------------------------------ 2245s # */ 2245s # 2245s # /** 2245s # * SECTION:OrgProjectSignalingIface 2245s # * @title: OrgProjectSignalingIface 2245s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2245s # * 2245s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2245s # */ 2245s # 2245s # enum 2245s # { 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2245s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 2245s # }; 2245s # 2245s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2245s # 2245s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SimpleSignal", 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "simple-signal" 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "arg_ay", 2245s # (gchar *) "ay", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SingleArgSignalAy", 2245s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 2245s # NULL 2245s # }, 2245s # "single-arg-signal-ay" 2245s # }; 2245s # 2245s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "org.project.SignalingIface", 2245s # NULL, 2245s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "org-project-signaling-iface", 2245s # }; 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_interface_info: 2245s # * 2245s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2245s # * 2245s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2245s # */ 2245s # GDBusInterfaceInfo * 2245s # org_project_signaling_iface_interface_info (void) 2245s # { 2245s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_override_properties: 2245s # * @klass: The class structure for a #GObject derived class. 2245s # * @property_id_begin: The property id to assign to the first overridden property. 2245s # * 2245s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2245s # * The properties are overridden in the order they are defined. 2245s # * 2245s # * Returns: The last property id. 2245s # */ 2245s # guint 2245s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2245s # { 2245s # return property_id_begin - 1; 2245s # } 2245s # 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_simple_signal ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # g_cclosure_marshal_VOID__VOID (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # g_cclosure_marshal_VOID__STRING (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface: 2245s # * 2245s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceIface: 2245s # * @parent_iface: The parent interface. 2245s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2245s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 2245s # * 2245s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2245s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2245s # 2245s # static void 2245s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # /* GObject signals for received D-Bus signals: */ 2245s # /** 2245s # * OrgProjectSignalingIface::simple-signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2245s # g_signal_new ("simple-signal", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_simple_signal, 2245s # G_TYPE_NONE, 2245s # 0); 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface::single-arg-signal-ay: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_arg_ay: Argument. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAy" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 2245s # g_signal_new ("single-arg-signal-ay", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 2245s # G_TYPE_NONE, 2245s # 1, G_TYPE_STRING); 2245s # 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_simple_signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * Emits the "SimpleSignal" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_single_arg_signal_ay: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_arg_ay: Argument to pass with the signal. 2245s # * 2245s # * Emits the "SingleArgSignalAy" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_single_arg_signal_ay ( 2245s # OrgProjectSignalingIface *object, 2245s # const gchar *arg_arg_ay) 2245s # { 2245s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_arg_ay); 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxy: 2245s # * 2245s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxyClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceProxy. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceProxyPrivate 2245s # { 2245s # GData *qdata; 2245s # }; 2245s # 2245s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_proxy_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2245s # g_datalist_clear (&proxy->priv->qdata); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # const GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2245s # const gchar *sender_name G_GNUC_UNUSED, 2245s # const gchar *signal_name, 2245s # GVariant *parameters) 2245s # { 2245s # _ExtendedGDBusSignalInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # gsize n; 2245s # guint signal_id; 2245s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2245s # if (info == NULL) 2245s # return; 2245s # num_params = g_variant_n_children (parameters); 2245s # paramv = g_new0 (GValue, num_params + 1); 2245s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[0], proxy); 2245s # g_variant_iter_init (&iter, parameters); 2245s # n = 1; 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_signal_emitv (paramv, signal_id, 0, NULL); 2245s # for (n = 0; n < num_params + 1; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2245s # GVariant *changed_properties, 2245s # const gchar *const *invalidated_properties) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2245s # guint n; 2245s # const gchar *key; 2245s # GVariantIter *iter; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # g_variant_get (changed_properties, "a{sv}", &iter); 2245s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2245s # g_datalist_remove_data (&proxy->priv->qdata, key); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # g_variant_iter_free (iter); 2245s # for (n = 0; invalidated_properties[n] != NULL; n++) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2245s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2245s # #else 2245s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2245s # #endif 2245s # 2245s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusProxyClass *proxy_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2245s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2245s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2245s # 2245s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2245s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2245s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_sync: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_sync ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new_for_bus ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeleton: 2245s # * 2245s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeletonClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2245s # { 2245s # GValue *properties; 2245s # GList *changed_properties; 2245s # GSource *changed_properties_idle_source; 2245s # GMainContext *context; 2245s # GMutex lock; 2245s # }; 2245s # 2245s # static void 2245s # _org_project_signaling_iface_skeleton_handle_method_call ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name, 2245s # const gchar *method_name, 2245s # GVariant *parameters, 2245s # GDBusMethodInvocation *invocation, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # _ExtendedGDBusMethodInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # guint num_extra; 2245s # gsize n; 2245s # guint signal_id; 2245s # GValue return_value = G_VALUE_INIT; 2245s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2245s # g_assert (info != NULL); 2245s # num_params = g_variant_n_children (parameters); 2245s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2245s # n = 0; 2245s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[n++], skeleton); 2245s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2245s # g_value_set_object (¶mv[n++], invocation); 2245s # if (info->pass_fdlist) 2245s # { 2245s # #ifdef G_OS_UNIX 2245s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2245s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2245s # #else 2245s # g_assert_not_reached (); 2245s # #endif 2245s # } 2245s # g_variant_iter_init (&iter, parameters); 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2245s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2245s # if (!g_value_get_boolean (&return_value)) 2245s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2245s # g_value_unset (&return_value); 2245s # for (n = 0; n < num_params + num_extra; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static GVariant * 2245s # _org_project_signaling_iface_skeleton_handle_get_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # GVariant *ret; 2245s # ret = NULL; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # g_value_init (&value, pspec->value_type); 2245s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2245s # g_value_unset (&value); 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _org_project_signaling_iface_skeleton_handle_set_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GVariant *variant, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # gboolean ret; 2245s # ret = FALSE; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # if (info->use_gvariant) 2245s # g_value_set_variant (&value, variant); 2245s # else 2245s # g_dbus_gvariant_to_gvalue (variant, &value); 2245s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # g_value_unset (&value); 2245s # ret = TRUE; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2245s # { 2245s # _org_project_signaling_iface_skeleton_handle_method_call, 2245s # _org_project_signaling_iface_skeleton_handle_get_property, 2245s # _org_project_signaling_iface_skeleton_handle_set_property, 2245s # {NULL} 2245s # }; 2245s # 2245s # static GDBusInterfaceInfo * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return org_project_signaling_iface_interface_info (); 2245s # } 2245s # 2245s # static GDBusInterfaceVTable * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2245s # } 2245s # 2245s # static GVariant * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2245s # 2245s # GVariantBuilder builder; 2245s # guint n; 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2245s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #else 2245s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #endif 2245s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2245s # goto out; 2245s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2245s # { 2245s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2245s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2245s # { 2245s # GVariant *value; 2245s # 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); 2245s # if (value != NULL) 2245s # { 2245s # g_variant_take_ref (value); 2245s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2245s # g_variant_unref (value); 2245s # } 2245s # } 2245s # } 2245s # out: 2245s # return g_variant_builder_end (&builder); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 2245s # OrgProjectSignalingIface *object, 2245s # const gchar *arg_arg_ay) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 2245s # arg_arg_ay)); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAy", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2245s # if (skeleton->priv->changed_properties_idle_source != NULL) 2245s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2245s # g_main_context_unref (skeleton->priv->context); 2245s # g_mutex_clear (&skeleton->priv->lock); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2245s # #else 2245s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2245s # #endif 2245s # 2245s # g_mutex_init (&skeleton->priv->lock); 2245s # skeleton->priv->context = g_main_context_ref_thread_default (); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusInterfaceSkeletonClass *skeleton_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2245s # 2245s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2245s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2245s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2245s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2245s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2245s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_skeleton_new: 2245s # * 2245s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_skeleton_new (void) 2245s # { 2245s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2245s # } 2245s # Error: 2245s # 2245s # /tmp/tmpcnzv9ghf/tmpacr6ih_z.xml: 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmpacr6ih_z.xml', '--output', '-', '--body'] 2245s # Return code: 0 2245s # Output: 2245s # /* 2245s # * This file is generated by gdbus-codegen, do not modify it. 2245s # * 2245s # * The license of this code is the same as for the D-Bus interface description 2245s # * it was derived from. Note that it links to GLib, so must comply with the 2245s # * LGPL linking clauses. 2245s # */ 2245s # 2245s # #ifdef HAVE_CONFIG_H 2245s # # include "config.h" 2245s # #endif 2245s # 2245s # #include 2245s # #ifdef G_OS_UNIX 2245s # # include 2245s # #endif 2245s # 2245s # #ifdef G_ENABLE_DEBUG 2245s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2245s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2245s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2245s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2245s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2245s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2245s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2245s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2245s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2245s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2245s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2245s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2245s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2245s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2245s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2245s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2245s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2245s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2245s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2245s # #else /* !G_ENABLE_DEBUG */ 2245s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2245s # * Do not access GValues directly in your code. Instead, use the 2245s # * g_value_get_*() functions 2245s # */ 2245s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2245s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2245s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2245s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2245s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2245s # #endif /* !G_ENABLE_DEBUG */ 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusArgInfo parent_struct; 2245s # gboolean use_gvariant; 2245s # } _ExtendedGDBusArgInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusMethodInfo parent_struct; 2245s # const gchar *signal_name; 2245s # gboolean pass_fdlist; 2245s # } _ExtendedGDBusMethodInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusSignalInfo parent_struct; 2245s # const gchar *signal_name; 2245s # } _ExtendedGDBusSignalInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusPropertyInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # guint use_gvariant : 1; 2245s # guint emits_changed_signal : 1; 2245s # } _ExtendedGDBusPropertyInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusInterfaceInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # } _ExtendedGDBusInterfaceInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # const _ExtendedGDBusPropertyInfo *info; 2245s # guint prop_id; 2245s # GValue orig_value; /* the value before the change */ 2245s # } ChangedProperty; 2245s # 2245s # static void 2245s # _changed_property_free (ChangedProperty *data) 2245s # { 2245s # g_value_unset (&data->orig_value); 2245s # g_free (data); 2245s # } 2245s # 2245s # static gboolean 2245s # _g_strv_equal0 (gchar **a, gchar **b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # guint n; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # if (g_strv_length (a) != g_strv_length (b)) 2245s # goto out; 2245s # for (n = 0; a[n] != NULL; n++) 2245s # if (g_strcmp0 (a[n], b[n]) != 0) 2245s # goto out; 2245s # ret = TRUE; 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _g_variant_equal0 (GVariant *a, GVariant *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # ret = g_variant_equal (a, b); 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # G_GNUC_UNUSED static gboolean 2245s # _g_value_equal (const GValue *a, const GValue *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2245s # switch (G_VALUE_TYPE (a)) 2245s # { 2245s # case G_TYPE_BOOLEAN: 2245s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2245s # break; 2245s # case G_TYPE_UCHAR: 2245s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2245s # break; 2245s # case G_TYPE_INT: 2245s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2245s # break; 2245s # case G_TYPE_UINT: 2245s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2245s # break; 2245s # case G_TYPE_INT64: 2245s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2245s # break; 2245s # case G_TYPE_UINT64: 2245s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2245s # break; 2245s # case G_TYPE_DOUBLE: 2245s # { 2245s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2245s # gdouble da = g_value_get_double (a); 2245s # gdouble db = g_value_get_double (b); 2245s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2245s # } 2245s # break; 2245s # case G_TYPE_STRING: 2245s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2245s # break; 2245s # case G_TYPE_VARIANT: 2245s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2245s # break; 2245s # default: 2245s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2245s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2245s # else 2245s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2245s # break; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ 2245s # * Code for interface org.project.SignalingIface 2245s # * ------------------------------------------------------------------------ 2245s # */ 2245s # 2245s # /** 2245s # * SECTION:OrgProjectSignalingIface 2245s # * @title: OrgProjectSignalingIface 2245s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2245s # * 2245s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2245s # */ 2245s # 2245s # enum 2245s # { 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2245s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 2245s # }; 2245s # 2245s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2245s # 2245s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SimpleSignal", 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "simple-signal" 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "arg_as", 2245s # (gchar *) "as", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SingleArgSignalAs", 2245s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 2245s # NULL 2245s # }, 2245s # "single-arg-signal-as" 2245s # }; 2245s # 2245s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "org.project.SignalingIface", 2245s # NULL, 2245s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "org-project-signaling-iface", 2245s # }; 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_interface_info: 2245s # * 2245s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2245s # * 2245s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2245s # */ 2245s # GDBusInterfaceInfo * 2245s # org_project_signaling_iface_interface_info (void) 2245s # { 2245s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_override_properties: 2245s # * @klass: The class structure for a #GObject derived class. 2245s # * @property_id_begin: The property id to assign to the first overridden property. 2245s # * 2245s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2245s # * The properties are overridden in the order they are defined. 2245s # * 2245s # * Returns: The last property id. 2245s # */ 2245s # guint 2245s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2245s # { 2245s # return property_id_begin - 1; 2245s # } 2245s # 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_simple_signal ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # g_cclosure_marshal_VOID__VOID (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # g_cclosure_marshal_VOID__BOXED (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface: 2245s # * 2245s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceIface: 2245s # * @parent_iface: The parent interface. 2245s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2245s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 2245s # * 2245s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2245s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2245s # 2245s # static void 2245s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # /* GObject signals for received D-Bus signals: */ 2245s # /** 2245s # * OrgProjectSignalingIface::simple-signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2245s # g_signal_new ("simple-signal", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_simple_signal, 2245s # G_TYPE_NONE, 2245s # 0); 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface::single-arg-signal-as: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_arg_as: Argument. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAs" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 2245s # g_signal_new ("single-arg-signal-as", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 2245s # G_TYPE_NONE, 2245s # 1, G_TYPE_STRV); 2245s # 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_simple_signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * Emits the "SimpleSignal" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_single_arg_signal_as: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_arg_as: Argument to pass with the signal. 2245s # * 2245s # * Emits the "SingleArgSignalAs" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_single_arg_signal_as ( 2245s # OrgProjectSignalingIface *object, 2245s # const gchar *const *arg_arg_as) 2245s # { 2245s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_arg_as); 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxy: 2245s # * 2245s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxyClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceProxy. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceProxyPrivate 2245s # { 2245s # GData *qdata; 2245s # }; 2245s # 2245s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_proxy_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2245s # g_datalist_clear (&proxy->priv->qdata); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # const GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2245s # const gchar *sender_name G_GNUC_UNUSED, 2245s # const gchar *signal_name, 2245s # GVariant *parameters) 2245s # { 2245s # _ExtendedGDBusSignalInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # gsize n; 2245s # guint signal_id; 2245s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2245s # if (info == NULL) 2245s # return; 2245s # num_params = g_variant_n_children (parameters); 2245s # paramv = g_new0 (GValue, num_params + 1); 2245s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[0], proxy); 2245s # g_variant_iter_init (&iter, parameters); 2245s # n = 1; 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_signal_emitv (paramv, signal_id, 0, NULL); 2245s # for (n = 0; n < num_params + 1; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2245s # GVariant *changed_properties, 2245s # const gchar *const *invalidated_properties) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2245s # guint n; 2245s # const gchar *key; 2245s # GVariantIter *iter; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # g_variant_get (changed_properties, "a{sv}", &iter); 2245s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2245s # g_datalist_remove_data (&proxy->priv->qdata, key); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # g_variant_iter_free (iter); 2245s # for (n = 0; invalidated_properties[n] != NULL; n++) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2245s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2245s # #else 2245s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2245s # #endif 2245s # 2245s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusProxyClass *proxy_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2245s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2245s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2245s # 2245s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2245s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2245s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_sync: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_sync ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new_for_bus ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeleton: 2245s # * 2245s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeletonClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2245s # { 2245s # GValue *properties; 2245s # GList *changed_properties; 2245s # GSource *changed_properties_idle_source; 2245s # GMainContext *context; 2245s # GMutex lock; 2245s # }; 2245s # 2245s # static void 2245s # _org_project_signaling_iface_skeleton_handle_method_call ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name, 2245s # const gchar *method_name, 2245s # GVariant *parameters, 2245s # GDBusMethodInvocation *invocation, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # _ExtendedGDBusMethodInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # guint num_extra; 2245s # gsize n; 2245s # guint signal_id; 2245s # GValue return_value = G_VALUE_INIT; 2245s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2245s # g_assert (info != NULL); 2245s # num_params = g_variant_n_children (parameters); 2245s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2245s # n = 0; 2245s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[n++], skeleton); 2245s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2245s # g_value_set_object (¶mv[n++], invocation); 2245s # if (info->pass_fdlist) 2245s # { 2245s # #ifdef G_OS_UNIX 2245s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2245s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2245s # #else 2245s # g_assert_not_reached (); 2245s # #endif 2245s # } 2245s # g_variant_iter_init (&iter, parameters); 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2245s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2245s # if (!g_value_get_boolean (&return_value)) 2245s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2245s # g_value_unset (&return_value); 2245s # for (n = 0; n < num_params + num_extra; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static GVariant * 2245s # _org_project_signaling_iface_skeleton_handle_get_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # GVariant *ret; 2245s # ret = NULL; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # g_value_init (&value, pspec->value_type); 2245s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2245s # g_value_unset (&value); 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _org_project_signaling_iface_skeleton_handle_set_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GVariant *variant, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # gboolean ret; 2245s # ret = FALSE; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # if (info->use_gvariant) 2245s # g_value_set_variant (&value, variant); 2245s # else 2245s # g_dbus_gvariant_to_gvalue (variant, &value); 2245s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # g_value_unset (&value); 2245s # ret = TRUE; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2245s # { 2245s # _org_project_signaling_iface_skeleton_handle_method_call, 2245s # _org_project_signaling_iface_skeleton_handle_get_property, 2245s # _org_project_signaling_iface_skeleton_handle_set_property, 2245s # {NULL} 2245s # }; 2245s # 2245s # static GDBusInterfaceInfo * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return org_project_signaling_iface_interface_info (); 2245s # } 2245s # 2245s # static GDBusInterfaceVTable * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2245s # } 2245s # 2245s # static GVariant * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2245s # 2245s # GVariantBuilder builder; 2245s # guint n; 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2245s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #else 2245s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #endif 2245s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2245s # goto out; 2245s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2245s # { 2245s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2245s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2245s # { 2245s # GVariant *value; 2245s # 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); 2245s # if (value != NULL) 2245s # { 2245s # g_variant_take_ref (value); 2245s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2245s # g_variant_unref (value); 2245s # } 2245s # } 2245s # } 2245s # out: 2245s # return g_variant_builder_end (&builder); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 2245s # OrgProjectSignalingIface *object, 2245s # const gchar *const *arg_arg_as) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 2245s # arg_arg_as)); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAs", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2245s # if (skeleton->priv->changed_properties_idle_source != NULL) 2245s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2245s # g_main_context_unref (skeleton->priv->context); 2245s # g_mutex_clear (&skeleton->priv->lock); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2245s # #else 2245s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2245s # #endif 2245s # 2245s # g_mutex_init (&skeleton->priv->lock); 2245s # skeleton->priv->context = g_main_context_ref_thread_default (); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusInterfaceSkeletonClass *skeleton_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2245s # 2245s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2245s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2245s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2245s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2245s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2245s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_skeleton_new: 2245s # * 2245s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_skeleton_new (void) 2245s # { 2245s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2245s # } 2245s # Error: 2245s # 2245s # /tmp/tmpcnzv9ghf/tmpsxxp7_38.xml: 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmpsxxp7_38.xml', '--output', '-', '--body'] 2245s # Return code: 0 2245s # Output: 2245s # /* 2245s # * This file is generated by gdbus-codegen, do not modify it. 2245s # * 2245s # * The license of this code is the same as for the D-Bus interface description 2245s # * it was derived from. Note that it links to GLib, so must comply with the 2245s # * LGPL linking clauses. 2245s # */ 2245s # 2245s # #ifdef HAVE_CONFIG_H 2245s # # include "config.h" 2245s # #endif 2245s # 2245s # #include 2245s # #ifdef G_OS_UNIX 2245s # # include 2245s # #endif 2245s # 2245s # #ifdef G_ENABLE_DEBUG 2245s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2245s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2245s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2245s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2245s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2245s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2245s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2245s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2245s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2245s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2245s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2245s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2245s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2245s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2245s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2245s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2245s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2245s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2245s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2245s # #else /* !G_ENABLE_DEBUG */ 2245s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2245s # * Do not access GValues directly in your code. Instead, use the 2245s # * g_value_get_*() functions 2245s # */ 2245s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2245s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2245s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2245s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2245s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2245s # #endif /* !G_ENABLE_DEBUG */ 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusArgInfo parent_struct; 2245s # gboolean use_gvariant; 2245s # } _ExtendedGDBusArgInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusMethodInfo parent_struct; 2245s # const gchar *signal_name; 2245s # gboolean pass_fdlist; 2245s # } _ExtendedGDBusMethodInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusSignalInfo parent_struct; 2245s # const gchar *signal_name; 2245s # } _ExtendedGDBusSignalInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusPropertyInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # guint use_gvariant : 1; 2245s # guint emits_changed_signal : 1; 2245s # } _ExtendedGDBusPropertyInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusInterfaceInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # } _ExtendedGDBusInterfaceInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # const _ExtendedGDBusPropertyInfo *info; 2245s # guint prop_id; 2245s # GValue orig_value; /* the value before the change */ 2245s # } ChangedProperty; 2245s # 2245s # static void 2245s # _changed_property_free (ChangedProperty *data) 2245s # { 2245s # g_value_unset (&data->orig_value); 2245s # g_free (data); 2245s # } 2245s # 2245s # static gboolean 2245s # _g_strv_equal0 (gchar **a, gchar **b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # guint n; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # if (g_strv_length (a) != g_strv_length (b)) 2245s # goto out; 2245s # for (n = 0; a[n] != NULL; n++) 2245s # if (g_strcmp0 (a[n], b[n]) != 0) 2245s # goto out; 2245s # ret = TRUE; 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _g_variant_equal0 (GVariant *a, GVariant *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # ret = g_variant_equal (a, b); 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # G_GNUC_UNUSED static gboolean 2245s # _g_value_equal (const GValue *a, const GValue *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2245s # switch (G_VALUE_TYPE (a)) 2245s # { 2245s # case G_TYPE_BOOLEAN: 2245s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2245s # break; 2245s # case G_TYPE_UCHAR: 2245s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2245s # break; 2245s # case G_TYPE_INT: 2245s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2245s # break; 2245s # case G_TYPE_UINT: 2245s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2245s # break; 2245s # case G_TYPE_INT64: 2245s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2245s # break; 2245s # case G_TYPE_UINT64: 2245s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2245s # break; 2245s # case G_TYPE_DOUBLE: 2245s # { 2245s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2245s # gdouble da = g_value_get_double (a); 2245s # gdouble db = g_value_get_double (b); 2245s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2245s # } 2245s # break; 2245s # case G_TYPE_STRING: 2245s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2245s # break; 2245s # case G_TYPE_VARIANT: 2245s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2245s # break; 2245s # default: 2245s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2245s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2245s # else 2245s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2245s # break; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ 2245s # * Code for interface org.project.SignalingIface 2245s # * ------------------------------------------------------------------------ 2245s # */ 2245s # 2245s # /** 2245s # * SECTION:OrgProjectSignalingIface 2245s # * @title: OrgProjectSignalingIface 2245s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2245s # * 2245s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2245s # */ 2245s # 2245s # enum 2245s # { 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2245s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 2245s # }; 2245s # 2245s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2245s # 2245s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SimpleSignal", 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "simple-signal" 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "arg_ao", 2245s # (gchar *) "ao", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SingleArgSignalAo", 2245s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 2245s # NULL 2245s # }, 2245s # "single-arg-signal-ao" 2245s # }; 2245s # 2245s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "org.project.SignalingIface", 2245s # NULL, 2245s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "org-project-signaling-iface", 2245s # }; 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_interface_info: 2245s # * 2245s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2245s # * 2245s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2245s # */ 2245s # GDBusInterfaceInfo * 2245s # org_project_signaling_iface_interface_info (void) 2245s # { 2245s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_override_properties: 2245s # * @klass: The class structure for a #GObject derived class. 2245s # * @property_id_begin: The property id to assign to the first overridden property. 2245s # * 2245s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2245s # * The properties are overridden in the order they are defined. 2245s # * 2245s # * Returns: The last property id. 2245s # */ 2245s # guint 2245s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2245s # { 2245s # return property_id_begin - 1; 2245s # } 2245s # 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_simple_signal ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # g_cclosure_marshal_VOID__VOID (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # g_cclosure_marshal_VOID__BOXED (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface: 2245s # * 2245s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceIface: 2245s # * @parent_iface: The parent interface. 2245s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2245s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 2245s # * 2245s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2245s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2245s # 2245s # static void 2245s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # /* GObject signals for received D-Bus signals: */ 2245s # /** 2245s # * OrgProjectSignalingIface::simple-signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2245s # g_signal_new ("simple-signal", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_simple_signal, 2245s # G_TYPE_NONE, 2245s # 0); 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface::single-arg-signal-ao: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_arg_ao: Argument. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAo" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 2245s # g_signal_new ("single-arg-signal-ao", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 2245s # G_TYPE_NONE, 2245s # 1, G_TYPE_STRV); 2245s # 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_simple_signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * Emits the "SimpleSignal" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_single_arg_signal_ao: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_arg_ao: Argument to pass with the signal. 2245s # * 2245s # * Emits the "SingleArgSignalAo" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_single_arg_signal_ao ( 2245s # OrgProjectSignalingIface *object, 2245s # const gchar *const *arg_arg_ao) 2245s # { 2245s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_arg_ao); 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxy: 2245s # * 2245s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxyClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceProxy. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceProxyPrivate 2245s # { 2245s # GData *qdata; 2245s # }; 2245s # 2245s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_proxy_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2245s # g_datalist_clear (&proxy->priv->qdata); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # const GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2245s # const gchar *sender_name G_GNUC_UNUSED, 2245s # const gchar *signal_name, 2245s # GVariant *parameters) 2245s # { 2245s # _ExtendedGDBusSignalInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # gsize n; 2245s # guint signal_id; 2245s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2245s # if (info == NULL) 2245s # return; 2245s # num_params = g_variant_n_children (parameters); 2245s # paramv = g_new0 (GValue, num_params + 1); 2245s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[0], proxy); 2245s # g_variant_iter_init (&iter, parameters); 2245s # n = 1; 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_signal_emitv (paramv, signal_id, 0, NULL); 2245s # for (n = 0; n < num_params + 1; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2245s # GVariant *changed_properties, 2245s # const gchar *const *invalidated_properties) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2245s # guint n; 2245s # const gchar *key; 2245s # GVariantIter *iter; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # g_variant_get (changed_properties, "a{sv}", &iter); 2245s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2245s # g_datalist_remove_data (&proxy->priv->qdata, key); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # g_variant_iter_free (iter); 2245s # for (n = 0; invalidated_properties[n] != NULL; n++) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2245s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2245s # #else 2245s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2245s # #endif 2245s # 2245s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusProxyClass *proxy_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2245s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2245s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2245s # 2245s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2245s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2245s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_sync: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_sync ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new_for_bus ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeleton: 2245s # * 2245s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeletonClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2245s # { 2245s # GValue *properties; 2245s # GList *changed_properties; 2245s # GSource *changed_properties_idle_source; 2245s # GMainContext *context; 2245s # GMutex lock; 2245s # }; 2245s # 2245s # static void 2245s # _org_project_signaling_iface_skeleton_handle_method_call ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name, 2245s # const gchar *method_name, 2245s # GVariant *parameters, 2245s # GDBusMethodInvocation *invocation, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # _ExtendedGDBusMethodInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # guint num_extra; 2245s # gsize n; 2245s # guint signal_id; 2245s # GValue return_value = G_VALUE_INIT; 2245s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2245s # g_assert (info != NULL); 2245s # num_params = g_variant_n_children (parameters); 2245s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2245s # n = 0; 2245s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[n++], skeleton); 2245s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2245s # g_value_set_object (¶mv[n++], invocation); 2245s # if (info->pass_fdlist) 2245s # { 2245s # #ifdef G_OS_UNIX 2245s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2245s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2245s # #else 2245s # g_assert_not_reached (); 2245s # #endif 2245s # } 2245s # g_variant_iter_init (&iter, parameters); 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2245s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2245s # if (!g_value_get_boolean (&return_value)) 2245s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2245s # g_value_unset (&return_value); 2245s # for (n = 0; n < num_params + num_extra; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static GVariant * 2245s # _org_project_signaling_iface_skeleton_handle_get_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # GVariant *ret; 2245s # ret = NULL; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # g_value_init (&value, pspec->value_type); 2245s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2245s # g_value_unset (&value); 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _org_project_signaling_iface_skeleton_handle_set_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GVariant *variant, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # gboolean ret; 2245s # ret = FALSE; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # if (info->use_gvariant) 2245s # g_value_set_variant (&value, variant); 2245s # else 2245s # g_dbus_gvariant_to_gvalue (variant, &value); 2245s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # g_value_unset (&value); 2245s # ret = TRUE; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2245s # { 2245s # _org_project_signaling_iface_skeleton_handle_method_call, 2245s # _org_project_signaling_iface_skeleton_handle_get_property, 2245s # _org_project_signaling_iface_skeleton_handle_set_property, 2245s # {NULL} 2245s # }; 2245s # 2245s # static GDBusInterfaceInfo * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return org_project_signaling_iface_interface_info (); 2245s # } 2245s # 2245s # static GDBusInterfaceVTable * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2245s # } 2245s # 2245s # static GVariant * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2245s # 2245s # GVariantBuilder builder; 2245s # guint n; 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2245s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #else 2245s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #endif 2245s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2245s # goto out; 2245s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2245s # { 2245s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2245s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2245s # { 2245s # GVariant *value; 2245s # 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); 2245s # if (value != NULL) 2245s # { 2245s # g_variant_take_ref (value); 2245s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2245s # g_variant_unref (value); 2245s # } 2245s # } 2245s # } 2245s # out: 2245s # return g_variant_builder_end (&builder); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 2245s # OrgProjectSignalingIface *object, 2245s # const gchar *const *arg_arg_ao) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 2245s # arg_arg_ao)); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAo", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2245s # if (skeleton->priv->changed_properties_idle_source != NULL) 2245s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2245s # g_main_context_unref (skeleton->priv->context); 2245s # g_mutex_clear (&skeleton->priv->lock); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2245s # #else 2245s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2245s # #endif 2245s # 2245s # g_mutex_init (&skeleton->priv->lock); 2245s # skeleton->priv->context = g_main_context_ref_thread_default (); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusInterfaceSkeletonClass *skeleton_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2245s # 2245s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2245s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2245s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2245s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2245s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2245s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_skeleton_new: 2245s # * 2245s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_skeleton_new (void) 2245s # { 2245s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2245s # } 2245s # Error: 2245s # 2245s # /tmp/tmpcnzv9ghf/tmpxk2un7or.xml: 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmpxk2un7or.xml', '--output', '-', '--body'] 2245s # Return code: 0 2245s # Output: 2245s # /* 2245s # * This file is generated by gdbus-codegen, do not modify it. 2245s # * 2245s # * The license of this code is the same as for the D-Bus interface description 2245s # * it was derived from. Note that it links to GLib, so must comply with the 2245s # * LGPL linking clauses. 2245s # */ 2245s # 2245s # #ifdef HAVE_CONFIG_H 2245s # # include "config.h" 2245s # #endif 2245s # 2245s # #include 2245s # #ifdef G_OS_UNIX 2245s # # include 2245s # #endif 2245s # 2245s # #ifdef G_ENABLE_DEBUG 2245s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2245s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2245s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2245s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2245s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2245s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2245s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2245s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2245s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2245s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2245s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2245s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2245s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2245s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2245s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2245s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2245s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2245s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2245s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2245s # #else /* !G_ENABLE_DEBUG */ 2245s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2245s # * Do not access GValues directly in your code. Instead, use the 2245s # * g_value_get_*() functions 2245s # */ 2245s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2245s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2245s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2245s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2245s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2245s # #endif /* !G_ENABLE_DEBUG */ 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusArgInfo parent_struct; 2245s # gboolean use_gvariant; 2245s # } _ExtendedGDBusArgInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusMethodInfo parent_struct; 2245s # const gchar *signal_name; 2245s # gboolean pass_fdlist; 2245s # } _ExtendedGDBusMethodInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusSignalInfo parent_struct; 2245s # const gchar *signal_name; 2245s # } _ExtendedGDBusSignalInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusPropertyInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # guint use_gvariant : 1; 2245s # guint emits_changed_signal : 1; 2245s # } _ExtendedGDBusPropertyInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusInterfaceInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # } _ExtendedGDBusInterfaceInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # const _ExtendedGDBusPropertyInfo *info; 2245s # guint prop_id; 2245s # GValue orig_value; /* the value before the change */ 2245s # } ChangedProperty; 2245s # 2245s # static void 2245s # _changed_property_free (ChangedProperty *data) 2245s # { 2245s # g_value_unset (&data->orig_value); 2245s # g_free (data); 2245s # } 2245s # 2245s # static gboolean 2245s # _g_strv_equal0 (gchar **a, gchar **b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # guint n; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # if (g_strv_length (a) != g_strv_length (b)) 2245s # goto out; 2245s # for (n = 0; a[n] != NULL; n++) 2245s # if (g_strcmp0 (a[n], b[n]) != 0) 2245s # goto out; 2245s # ret = TRUE; 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _g_variant_equal0 (GVariant *a, GVariant *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # ret = g_variant_equal (a, b); 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # G_GNUC_UNUSED static gboolean 2245s # _g_value_equal (const GValue *a, const GValue *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2245s # switch (G_VALUE_TYPE (a)) 2245s # { 2245s # case G_TYPE_BOOLEAN: 2245s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2245s # break; 2245s # case G_TYPE_UCHAR: 2245s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2245s # break; 2245s # case G_TYPE_INT: 2245s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2245s # break; 2245s # case G_TYPE_UINT: 2245s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2245s # break; 2245s # case G_TYPE_INT64: 2245s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2245s # break; 2245s # case G_TYPE_UINT64: 2245s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2245s # break; 2245s # case G_TYPE_DOUBLE: 2245s # { 2245s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2245s # gdouble da = g_value_get_double (a); 2245s # gdouble db = g_value_get_double (b); 2245s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2245s # } 2245s # break; 2245s # case G_TYPE_STRING: 2245s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2245s # break; 2245s # case G_TYPE_VARIANT: 2245s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2245s # break; 2245s # default: 2245s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2245s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2245s # else 2245s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2245s # break; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ 2245s # * Code for interface org.project.SignalingIface 2245s # * ------------------------------------------------------------------------ 2245s # */ 2245s # 2245s # /** 2245s # * SECTION:OrgProjectSignalingIface 2245s # * @title: OrgProjectSignalingIface 2245s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2245s # * 2245s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2245s # */ 2245s # 2245s # enum 2245s # { 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2245s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 2245s # }; 2245s # 2245s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2245s # 2245s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SimpleSignal", 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "simple-signal" 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "arg_aay", 2245s # (gchar *) "aay", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SingleArgSignalAay", 2245s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 2245s # NULL 2245s # }, 2245s # "single-arg-signal-aay" 2245s # }; 2245s # 2245s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "org.project.SignalingIface", 2245s # NULL, 2245s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "org-project-signaling-iface", 2245s # }; 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_interface_info: 2245s # * 2245s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2245s # * 2245s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2245s # */ 2245s # GDBusInterfaceInfo * 2245s # org_project_signaling_iface_interface_info (void) 2245s # { 2245s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_override_properties: 2245s # * @klass: The class structure for a #GObject derived class. 2245s # * @property_id_begin: The property id to assign to the first overridden property. 2245s # * 2245s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2245s # * The properties are overridden in the order they are defined. 2245s # * 2245s # * Returns: The last property id. 2245s # */ 2245s # guint 2245s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2245s # { 2245s # return property_id_begin - 1; 2245s # } 2245s # 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_simple_signal ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # g_cclosure_marshal_VOID__VOID (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # g_cclosure_marshal_VOID__BOXED (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface: 2245s # * 2245s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceIface: 2245s # * @parent_iface: The parent interface. 2245s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2245s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 2245s # * 2245s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2245s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2245s # 2245s # static void 2245s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # /* GObject signals for received D-Bus signals: */ 2245s # /** 2245s # * OrgProjectSignalingIface::simple-signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2245s # g_signal_new ("simple-signal", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_simple_signal, 2245s # G_TYPE_NONE, 2245s # 0); 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface::single-arg-signal-aay: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_arg_aay: Argument. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAay" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 2245s # g_signal_new ("single-arg-signal-aay", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 2245s # G_TYPE_NONE, 2245s # 1, G_TYPE_STRV); 2245s # 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_simple_signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * Emits the "SimpleSignal" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_single_arg_signal_aay: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_arg_aay: Argument to pass with the signal. 2245s # * 2245s # * Emits the "SingleArgSignalAay" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_single_arg_signal_aay ( 2245s # OrgProjectSignalingIface *object, 2245s # const gchar *const *arg_arg_aay) 2245s # { 2245s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_arg_aay); 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxy: 2245s # * 2245s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxyClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceProxy. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceProxyPrivate 2245s # { 2245s # GData *qdata; 2245s # }; 2245s # 2245s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_proxy_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2245s # g_datalist_clear (&proxy->priv->qdata); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # const GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2245s # const gchar *sender_name G_GNUC_UNUSED, 2245s # const gchar *signal_name, 2245s # GVariant *parameters) 2245s # { 2245s # _ExtendedGDBusSignalInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # gsize n; 2245s # guint signal_id; 2245s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2245s # if (info == NULL) 2245s # return; 2245s # num_params = g_variant_n_children (parameters); 2245s # paramv = g_new0 (GValue, num_params + 1); 2245s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[0], proxy); 2245s # g_variant_iter_init (&iter, parameters); 2245s # n = 1; 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_signal_emitv (paramv, signal_id, 0, NULL); 2245s # for (n = 0; n < num_params + 1; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2245s # GVariant *changed_properties, 2245s # const gchar *const *invalidated_properties) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2245s # guint n; 2245s # const gchar *key; 2245s # GVariantIter *iter; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # g_variant_get (changed_properties, "a{sv}", &iter); 2245s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2245s # g_datalist_remove_data (&proxy->priv->qdata, key); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # g_variant_iter_free (iter); 2245s # for (n = 0; invalidated_properties[n] != NULL; n++) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2245s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2245s # #else 2245s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2245s # #endif 2245s # 2245s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusProxyClass *proxy_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2245s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2245s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2245s # 2245s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2245s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2245s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_sync: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_sync ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new_for_bus ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeleton: 2245s # * 2245s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeletonClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2245s # { 2245s # GValue *properties; 2245s # GList *changed_properties; 2245s # GSource *changed_properties_idle_source; 2245s # GMainContext *context; 2245s # GMutex lock; 2245s # }; 2245s # 2245s # static void 2245s # _org_project_signaling_iface_skeleton_handle_method_call ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name, 2245s # const gchar *method_name, 2245s # GVariant *parameters, 2245s # GDBusMethodInvocation *invocation, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # _ExtendedGDBusMethodInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # guint num_extra; 2245s # gsize n; 2245s # guint signal_id; 2245s # GValue return_value = G_VALUE_INIT; 2245s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2245s # g_assert (info != NULL); 2245s # num_params = g_variant_n_children (parameters); 2245s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2245s # n = 0; 2245s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[n++], skeleton); 2245s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2245s # g_value_set_object (¶mv[n++], invocation); 2245s # if (info->pass_fdlist) 2245s # { 2245s # #ifdef G_OS_UNIX 2245s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2245s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2245s # #else 2245s # g_assert_not_reached (); 2245s # #endif 2245s # } 2245s # g_variant_iter_init (&iter, parameters); 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2245s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2245s # if (!g_value_get_boolean (&return_value)) 2245s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2245s # g_value_unset (&return_value); 2245s # for (n = 0; n < num_params + num_extra; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static GVariant * 2245s # _org_project_signaling_iface_skeleton_handle_get_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # GVariant *ret; 2245s # ret = NULL; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # g_value_init (&value, pspec->value_type); 2245s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2245s # g_value_unset (&value); 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _org_project_signaling_iface_skeleton_handle_set_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GVariant *variant, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # gboolean ret; 2245s # ret = FALSE; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # if (info->use_gvariant) 2245s # g_value_set_variant (&value, variant); 2245s # else 2245s # g_dbus_gvariant_to_gvalue (variant, &value); 2245s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # g_value_unset (&value); 2245s # ret = TRUE; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2245s # { 2245s # _org_project_signaling_iface_skeleton_handle_method_call, 2245s # _org_project_signaling_iface_skeleton_handle_get_property, 2245s # _org_project_signaling_iface_skeleton_handle_set_property, 2245s # {NULL} 2245s # }; 2245s # 2245s # static GDBusInterfaceInfo * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return org_project_signaling_iface_interface_info (); 2245s # } 2245s # 2245s # static GDBusInterfaceVTable * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2245s # } 2245s # 2245s # static GVariant * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2245s # 2245s # GVariantBuilder builder; 2245s # guint n; 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2245s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #else 2245s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #endif 2245s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2245s # goto out; 2245s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2245s # { 2245s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2245s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2245s # { 2245s # GVariant *value; 2245s # 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); 2245s # if (value != NULL) 2245s # { 2245s # g_variant_take_ref (value); 2245s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2245s # g_variant_unref (value); 2245s # } 2245s # } 2245s # } 2245s # out: 2245s # return g_variant_builder_end (&builder); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 2245s # OrgProjectSignalingIface *object, 2245s # const gchar *const *arg_arg_aay) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 2245s # arg_arg_aay)); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAay", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2245s # if (skeleton->priv->changed_properties_idle_source != NULL) 2245s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2245s # g_main_context_unref (skeleton->priv->context); 2245s # g_mutex_clear (&skeleton->priv->lock); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2245s # #else 2245s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2245s # #endif 2245s # 2245s # g_mutex_init (&skeleton->priv->lock); 2245s # skeleton->priv->context = g_main_context_ref_thread_default (); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusInterfaceSkeletonClass *skeleton_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2245s # 2245s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2245s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2245s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2245s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2245s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2245s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_skeleton_new: 2245s # * 2245s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_skeleton_new (void) 2245s # { 2245s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2245s # } 2245s # Error: 2245s # 2245s # /tmp/tmpcnzv9ghf/tmpq3zt1_es.xml: 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcnzv9ghf/tmpq3zt1_es.xml', '--output', '-', '--body'] 2245s # Return code: 0 2245s # Output: 2245s # /* 2245s # * This file is generated by gdbus-codegen, do not modify it. 2245s # * 2245s # * The license of this code is the same as for the D-Bus interface description 2245s # * it was derived from. Note that it links to GLib, so must comply with the 2245s # * LGPL linking clauses. 2245s # */ 2245s # 2245s # #ifdef HAVE_CONFIG_H 2245s # # include "config.h" 2245s # #endif 2245s # 2245s # #include 2245s # #ifdef G_OS_UNIX 2245s # # include 2245s # #endif 2245s # 2245s # #ifdef G_ENABLE_DEBUG 2245s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2245s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2245s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2245s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2245s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2245s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2245s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2245s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2245s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2245s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2245s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2245s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2245s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2245s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2245s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2245s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2245s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2245s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2245s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2245s # #else /* !G_ENABLE_DEBUG */ 2245s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2245s # * Do not access GValues directly in your code. Instead, use the 2245s # * g_value_get_*() functions 2245s # */ 2245s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2245s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2245s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2245s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2245s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2245s # #endif /* !G_ENABLE_DEBUG */ 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusArgInfo parent_struct; 2245s # gboolean use_gvariant; 2245s # } _ExtendedGDBusArgInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusMethodInfo parent_struct; 2245s # const gchar *signal_name; 2245s # gboolean pass_fdlist; 2245s # } _ExtendedGDBusMethodInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusSignalInfo parent_struct; 2245s # const gchar *signal_name; 2245s # } _ExtendedGDBusSignalInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusPropertyInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # guint use_gvariant : 1; 2245s # guint emits_changed_signal : 1; 2245s # } _ExtendedGDBusPropertyInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusInterfaceInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # } _ExtendedGDBusInterfaceInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # const _ExtendedGDBusPropertyInfo *info; 2245s # guint prop_id; 2245s # GValue orig_value; /* the value before the change */ 2245s # } ChangedProperty; 2245s # 2245s # static void 2245s # _changed_property_free (ChangedProperty *data) 2245s # { 2245s # g_value_unset (&data->orig_value); 2245s # g_free (data); 2245s # } 2245s # 2245s # static gboolean 2245s # _g_strv_equal0 (gchar **a, gchar **b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # guint n; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # if (g_strv_length (a) != g_strv_length (b)) 2245s # goto out; 2245s # for (n = 0; a[n] != NULL; n++) 2245s # if (g_strcmp0 (a[n], b[n]) != 0) 2245s # goto out; 2245s # ret = TRUE; 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _g_variant_equal0 (GVariant *a, GVariant *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # ret = g_variant_equal (a, b); 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # G_GNUC_UNUSED static gboolean 2245s # _g_value_equal (const GValue *a, const GValue *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2245s # switch (G_VALUE_TYPE (a)) 2245s # { 2245s # case G_TYPE_BOOLEAN: 2245s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2245s # break; 2245s # case G_TYPE_UCHAR: 2245s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2245s # break; 2245s # case G_TYPE_INT: 2245s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2245s # break; 2245s # case G_TYPE_UINT: 2245s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2245s # break; 2245s # case G_TYPE_INT64: 2245s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2245s # break; 2245s # case G_TYPE_UINT64: 2245s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2245s # break; 2245s # case G_TYPE_DOUBLE: 2245s # { 2245s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2245s # gdouble da = g_value_get_double (a); 2245s # gdouble db = g_value_get_double (b); 2245s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2245s # } 2245s # break; 2245s # case G_TYPE_STRING: 2245s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2245s # break; 2245s # case G_TYPE_VARIANT: 2245s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2245s # break; 2245s # default: 2245s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2245s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2245s # else 2245s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2245s # break; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ 2245s # * Code for interface org.project.SignalingIface 2245s # * ------------------------------------------------------------------------ 2245s # */ 2245s # 2245s # /** 2245s # * SECTION:OrgProjectSignalingIface 2245s # * @title: OrgProjectSignalingIface 2245s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2245s # * 2245s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2245s # */ 2245s # 2245s # enum 2245s # { 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2245s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 2245s # }; 2245s # 2245s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2245s # 2245s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SimpleSignal", 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "simple-signal" 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "arg_asv", 2245s # (gchar *) "a{sv}", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SingleArgSignalAsv", 2245s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 2245s # NULL 2245s # }, 2245s # "single-arg-signal-asv" 2245s # }; 2245s # 2245s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "org.project.SignalingIface", 2245s # NULL, 2245s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "org-project-signaling-iface", 2245s # }; 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_interface_info: 2245s # * 2245s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2245s # * 2245s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2245s # */ 2245s # GDBusInterfaceInfo * 2245s # org_project_signaling_iface_interface_info (void) 2245s # { 2245s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_override_properties: 2245s # * @klass: The class structure for a #GObject derived class. 2245s # * @property_id_begin: The property id to assign to the first overridden property. 2245s # * 2245s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2245s # * The properties are overridden in the order they are defined. 2245s # * 2245s # * Returns: The last property id. 2245s # */ 2245s # guint 2245s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2245s # { 2245s # return property_id_begin - 1; 2245s # } 2245s # 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_simple_signal ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # g_cclosure_marshal_VOID__VOID (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # g_cclosure_marshal_VOID__VARIANT (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface: 2245s # * 2245s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceIface: 2245s # * @parent_iface: The parent interface. 2245s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2245s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 2245s # * 2245s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2245s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2245s # 2245s # static void 2245s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # /* GObject signals for received D-Bus signals: */ 2245s # /** 2245s # * OrgProjectSignalingIface::simple-signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2245s # g_signal_new ("simple-signal", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_simple_signal, 2245s # G_TYPE_NONE, 2245s # 0); 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface::single-arg-signal-asv: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_arg_asv: Argument. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAsv" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 2245s # g_signal_new ("single-arg-signal-asv", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 2245s # G_TYPE_NONE, 2245s # 1, G_TYPE_VARIANT); 2245s # 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_simple_signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * Emits the "SimpleSignal" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_single_arg_signal_asv: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_arg_asv: Argument to pass with the signal. 2245s # * 2245s # * Emits the "SingleArgSignalAsv" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_single_arg_signal_asv ( 2245s # OrgProjectSignalingIface *object, 2245s # GVariant *arg_arg_asv) 2245s # { 2245s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_arg_asv); 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxy: 2245s # * 2245s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxyClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceProxy. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceProxyPrivate 2245s # { 2245s # GData *qdata; 2245s # }; 2245s # 2245s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_proxy_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2245s # g_datalist_clear (&proxy->priv->qdata); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # const GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2245s # const gchar *sender_name G_GNUC_UNUSED, 2245s # const gchar *signal_name, 2245s # GVariant *parameters) 2245s # { 2245s # _ExtendedGDBusSignalInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # gsize n; 2245s # guint signal_id; 2245s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2245s # if (info == NULL) 2245s # return; 2245s # num_params = g_variant_n_children (parameters); 2245s # paramv = g_new0 (GValue, num_params + 1); 2245s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[0], proxy); 2245s # g_variant_iter_init (&iter, parameters); 2245s # n = 1; 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_signal_emitv (paramv, signal_id, 0, NULL); 2245s # for (n = 0; n < num_params + 1; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2245s # GVariant *changed_properties, 2245s # const gchar *const *invalidated_properties) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2245s # guint n; 2245s # const gchar *key; 2245s # GVariantIter *iter; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # g_variant_get (changed_properties, "a{sv}", &iter); 2245s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2245s # g_datalist_remove_data (&proxy->priv->qdata, key); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # g_variant_iter_free (iter); 2245s # for (n = 0; invalidated_properties[n] != NULL; n++) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2245s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2245s # #else 2245s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2245s # #endif 2245s # 2245s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusProxyClass *proxy_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2245s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2245s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2245s # 2245s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2245s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2245s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_sync: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_sync ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new_for_bus ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeleton: 2245s # * 2245s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeletonClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2245s # { 2245s # GValue *properties; 2245s # GList *changed_properties; 2245s # GSource *changed_properties_idle_source; 2245s # GMainContext *context; 2245s # GMutex lock; 2245s # }; 2245s # 2245s # static void 2245s # _org_project_signaling_iface_skeleton_handle_method_call ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name, 2245s # const gchar *method_name, 2245s # GVariant *parameters, 2245s # GDBusMethodInvocation *invocation, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # _ExtendedGDBusMethodInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # guint num_extra; 2245s # gsize n; 2245s # guint signal_id; 2245s # GValue return_value = G_VALUE_INIT; 2245s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2245s # g_assert (info != NULL); 2245s # num_params = g_variant_n_children (parameters); 2245s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2245s # n = 0; 2245s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[n++], skeleton); 2245s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2245s # g_value_set_object (¶mv[n++], invocation); 2245s # if (info->pass_fdlist) 2245s # { 2245s # #ifdef G_OS_UNIX 2245s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2245s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2245s # #else 2245s # g_assert_not_reached (); 2245s # #endif 2245s # } 2245s # g_variant_iter_init (&iter, parameters); 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2245s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2245s # if (!g_value_get_boolean (&return_value)) 2245s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2245s # g_value_unset (&return_value); 2245s # for (n = 0; n < num_params + num_extra; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static GVariant * 2245s # _org_project_signaling_iface_skeleton_handle_get_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # GVariant *ret; 2245s # ret = NULL; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # g_value_init (&value, pspec->value_type); 2245s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2245s # g_value_unset (&value); 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _org_project_signaling_iface_skeleton_handle_set_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GVariant *variant, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # gboolean ret; 2245s # ret = FALSE; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # if (info->use_gvariant) 2245s # g_value_set_variant (&value, variant); 2245s # else 2245s # g_dbus_gvariant_to_gvalue (variant, &value); 2245s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # g_value_unset (&value); 2245s # ret = TRUE; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2245s # { 2245s # _org_project_signaling_iface_skeleton_handle_method_call, 2245s # _org_project_signaling_iface_skeleton_handle_get_property, 2245s # _org_project_signaling_iface_skeleton_handle_set_property, 2245s # {NULL} 2245s # }; 2245s # 2245s # static GDBusInterfaceInfo * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return org_project_signaling_iface_interface_info (); 2245s # } 2245s # 2245s # static GDBusInterfaceVTable * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2245s # } 2245s # 2245s # static GVariant * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2245s # 2245s # GVariantBuilder builder; 2245s # guint n; 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2245s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #else 2245s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #endif 2245s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2245s # goto out; 2245s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2245s # { 2245s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2245s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2245s # { 2245s # GVariant *value; 2245s # 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); 2245s # if (value != NULL) 2245s # { 2245s # g_variant_take_ref (value); 2245s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2245s # g_variant_unref (value); 2245s # } 2245s # } 2245s # } 2245s # out: 2245s # return g_variant_builder_end (&builder); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 2245s # OrgProjectSignalingIface *object, 2245s # GVariant *arg_arg_asv) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 2245s # arg_arg_asv)); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAsv", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2245s # if (skeleton->priv->changed_properties_idle_source != NULL) 2245s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2245s # g_main_context_unref (skeleton->priv->context); 2245s # g_mutex_clear (&skeleton->priv->lock); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2245s # #else 2245s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2245s # #endif 2245s # 2245s # g_mutex_init (&skeleton->priv->lock); 2245s # skeleton->priv->context = g_main_context_ref_thread_default (); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusInterfaceSkeletonClass *skeleton_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2245s # 2245s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2245s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2245s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2245s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2245s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2245s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_skeleton_new: 2245s # * 2245s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_skeleton_new (void) 2245s # { 2245s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2245s # } 2245s # Error: 2245s ok 24 __main__.TestCodegen.test_generate_signals_marshallers_multiple_args 2245s # gdbus-codegen: /usr/bin/gdbus-codegen 2245s # tmpdir: /tmp/tmpkxa0porj 2245s # /tmp/tmpkxa0porj/tmpj_4rb1p9.xml: 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpkxa0porj/tmpj_4rb1p9.xml', '--output', '-', '--body'] 2245s # Return code: 0 2245s # Output: 2245s # /* 2245s # * This file is generated by gdbus-codegen, do not modify it. 2245s # * 2245s # * The license of this code is the same as for the D-Bus interface description 2245s # * it was derived from. Note that it links to GLib, so must comply with the 2245s # * LGPL linking clauses. 2245s # */ 2245s # 2245s # #ifdef HAVE_CONFIG_H 2245s # # include "config.h" 2245s # #endif 2245s # 2245s # #include 2245s # #ifdef G_OS_UNIX 2245s # # include 2245s # #endif 2245s # 2245s # #ifdef G_ENABLE_DEBUG 2245s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2245s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2245s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2245s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2245s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2245s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2245s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2245s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2245s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2245s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2245s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2245s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2245s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2245s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2245s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2245s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2245s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2245s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2245s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2245s # #else /* !G_ENABLE_DEBUG */ 2245s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2245s # * Do not access GValues directly in your code. Instead, use the 2245s # * g_value_get_*() functions 2245s # */ 2245s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2245s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2245s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2245s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2245s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2245s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2245s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2245s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2245s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2245s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2245s # #endif /* !G_ENABLE_DEBUG */ 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusArgInfo parent_struct; 2245s # gboolean use_gvariant; 2245s # } _ExtendedGDBusArgInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusMethodInfo parent_struct; 2245s # const gchar *signal_name; 2245s # gboolean pass_fdlist; 2245s # } _ExtendedGDBusMethodInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusSignalInfo parent_struct; 2245s # const gchar *signal_name; 2245s # } _ExtendedGDBusSignalInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusPropertyInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # guint use_gvariant : 1; 2245s # guint emits_changed_signal : 1; 2245s # } _ExtendedGDBusPropertyInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # GDBusInterfaceInfo parent_struct; 2245s # const gchar *hyphen_name; 2245s # } _ExtendedGDBusInterfaceInfo; 2245s # 2245s # typedef struct 2245s # { 2245s # const _ExtendedGDBusPropertyInfo *info; 2245s # guint prop_id; 2245s # GValue orig_value; /* the value before the change */ 2245s # } ChangedProperty; 2245s # 2245s # static void 2245s # _changed_property_free (ChangedProperty *data) 2245s # { 2245s # g_value_unset (&data->orig_value); 2245s # g_free (data); 2245s # } 2245s # 2245s # static gboolean 2245s # _g_strv_equal0 (gchar **a, gchar **b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # guint n; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # if (g_strv_length (a) != g_strv_length (b)) 2245s # goto out; 2245s # for (n = 0; a[n] != NULL; n++) 2245s # if (g_strcmp0 (a[n], b[n]) != 0) 2245s # goto out; 2245s # ret = TRUE; 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _g_variant_equal0 (GVariant *a, GVariant *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # if (a == NULL && b == NULL) 2245s # { 2245s # ret = TRUE; 2245s # goto out; 2245s # } 2245s # if (a == NULL || b == NULL) 2245s # goto out; 2245s # ret = g_variant_equal (a, b); 2245s # out: 2245s # return ret; 2245s # } 2245s # 2245s # G_GNUC_UNUSED static gboolean 2245s # _g_value_equal (const GValue *a, const GValue *b) 2245s # { 2245s # gboolean ret = FALSE; 2245s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2245s # switch (G_VALUE_TYPE (a)) 2245s # { 2245s # case G_TYPE_BOOLEAN: 2245s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2245s # break; 2245s # case G_TYPE_UCHAR: 2245s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2245s # break; 2245s # case G_TYPE_INT: 2245s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2245s # break; 2245s # case G_TYPE_UINT: 2245s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2245s # break; 2245s # case G_TYPE_INT64: 2245s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2245s # break; 2245s # case G_TYPE_UINT64: 2245s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2245s # break; 2245s # case G_TYPE_DOUBLE: 2245s # { 2245s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2245s # gdouble da = g_value_get_double (a); 2245s # gdouble db = g_value_get_double (b); 2245s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2245s # } 2245s # break; 2245s # case G_TYPE_STRING: 2245s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2245s # break; 2245s # case G_TYPE_VARIANT: 2245s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2245s # break; 2245s # default: 2245s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2245s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2245s # else 2245s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2245s # break; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static void 2245s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 2245s # GClosure *closure, 2245s # GValue *return_value G_GNUC_UNUSED, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint G_GNUC_UNUSED, 2245s # void *marshal_data) 2245s # { 2245s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 2245s # (void *data1, 2245s # gboolean arg_an_b, 2245s # guchar arg_an_y, 2245s # gint16 arg_an_n, 2245s # guint16 arg_an_q, 2245s # gint arg_an_i, 2245s # guint arg_an_u, 2245s # gint64 arg_an_x, 2245s # guint64 arg_an_t, 2245s # gdouble arg_an_d, 2245s # const gchar *arg_an_s, 2245s # const gchar *arg_an_o, 2245s # const gchar *arg_an_g, 2245s # GVariant *arg_an_h, 2245s # const gchar *arg_an_ay, 2245s # const gchar *const *arg_an_as, 2245s # const gchar *const *arg_an_ao, 2245s # const gchar *const *arg_an_aay, 2245s # GVariant *arg_an_asv, 2245s # void *data2); 2245s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 2245s # GCClosure *cc = (GCClosure*) closure; 2245s # void *data1, *data2; 2245s # 2245s # g_return_if_fail (n_param_values == 19); 2245s # 2245s # if (G_CCLOSURE_SWAP_DATA (closure)) 2245s # { 2245s # data1 = closure->data; 2245s # data2 = g_value_peek_pointer (param_values + 0); 2245s # } 2245s # else 2245s # { 2245s # data1 = g_value_peek_pointer (param_values + 0); 2245s # data2 = closure->data; 2245s # } 2245s # 2245s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 2245s # (marshal_data ? marshal_data : cc->callback); 2245s # 2245s # callback (data1, 2245s # g_marshal_value_peek_boolean (param_values + 1), 2245s # g_marshal_value_peek_uchar (param_values + 2), 2245s # g_marshal_value_peek_int (param_values + 3), 2245s # g_marshal_value_peek_uint (param_values + 4), 2245s # g_marshal_value_peek_int (param_values + 5), 2245s # g_marshal_value_peek_uint (param_values + 6), 2245s # g_marshal_value_peek_int64 (param_values + 7), 2245s # g_marshal_value_peek_uint64 (param_values + 8), 2245s # g_marshal_value_peek_double (param_values + 9), 2245s # g_marshal_value_peek_string (param_values + 10), 2245s # g_marshal_value_peek_string (param_values + 11), 2245s # g_marshal_value_peek_string (param_values + 12), 2245s # g_marshal_value_peek_variant (param_values + 13), 2245s # g_marshal_value_peek_string (param_values + 14), 2245s # g_marshal_value_peek_boxed (param_values + 15), 2245s # g_marshal_value_peek_boxed (param_values + 16), 2245s # g_marshal_value_peek_boxed (param_values + 17), 2245s # g_marshal_value_peek_variant (param_values + 18), 2245s # data2); 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ 2245s # * Code for interface org.project.SignalingIface 2245s # * ------------------------------------------------------------------------ 2245s # */ 2245s # 2245s # /** 2245s # * SECTION:OrgProjectSignalingIface 2245s # * @title: OrgProjectSignalingIface 2245s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 2245s # * 2245s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 2245s # */ 2245s # 2245s # enum 2245s # { 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 2245s # }; 2245s # 2245s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 2245s # 2245s # /* ---- Introspection data for org.project.SignalingIface ---- */ 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SimpleSignal", 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "simple-signal" 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_b", 2245s # (gchar *) "b", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_y", 2245s # (gchar *) "y", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_n", 2245s # (gchar *) "n", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_q", 2245s # (gchar *) "q", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_i", 2245s # (gchar *) "i", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_u", 2245s # (gchar *) "u", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_x", 2245s # (gchar *) "x", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_t", 2245s # (gchar *) "t", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_d", 2245s # (gchar *) "d", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_s", 2245s # (gchar *) "s", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_o", 2245s # (gchar *) "o", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_g", 2245s # (gchar *) "g", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_h", 2245s # (gchar *) "h", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_ay", 2245s # (gchar *) "ay", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_as", 2245s # (gchar *) "as", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_ao", 2245s # (gchar *) "ao", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_aay", 2245s # (gchar *) "aay", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "an_asv", 2245s # (gchar *) "a{sv}", 2245s # NULL 2245s # }, 2245s # FALSE 2245s # }; 2245s # 2245s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "SignalWithManyArgs", 2245s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 2245s # NULL 2245s # }, 2245s # "signal-with-many-args" 2245s # }; 2245s # 2245s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 2245s # { 2245s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 2245s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 2245s # NULL 2245s # }; 2245s # 2245s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 2245s # { 2245s # { 2245s # -1, 2245s # (gchar *) "org.project.SignalingIface", 2245s # NULL, 2245s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 2245s # NULL, 2245s # NULL 2245s # }, 2245s # "org-project-signaling-iface", 2245s # }; 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_interface_info: 2245s # * 2245s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 2245s # * 2245s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2245s # */ 2245s # GDBusInterfaceInfo * 2245s # org_project_signaling_iface_interface_info (void) 2245s # { 2245s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_override_properties: 2245s # * @klass: The class structure for a #GObject derived class. 2245s # * @property_id_begin: The property id to assign to the first overridden property. 2245s # * 2245s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 2245s # * The properties are overridden in the order they are defined. 2245s # * 2245s # * Returns: The last property id. 2245s # */ 2245s # guint 2245s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2245s # { 2245s # return property_id_begin - 1; 2245s # } 2245s # 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_simple_signal ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # g_cclosure_marshal_VOID__VOID (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # inline static void 2245s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 2245s # GClosure *closure, 2245s # GValue *return_value, 2245s # unsigned int n_param_values, 2245s # const GValue *param_values, 2245s # void *invocation_hint, 2245s # void *marshal_data) 2245s # { 2245s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 2245s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2245s # } 2245s # 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface: 2245s # * 2245s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceIface: 2245s # * @parent_iface: The parent interface. 2245s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 2245s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 2245s # * 2245s # * Virtual table for the D-Bus interface org.project.SignalingIface. 2245s # */ 2245s # 2245s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 2245s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 2245s # 2245s # static void 2245s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # /* GObject signals for received D-Bus signals: */ 2245s # /** 2245s # * OrgProjectSignalingIface::simple-signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 2245s # g_signal_new ("simple-signal", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_simple_signal, 2245s # G_TYPE_NONE, 2245s # 0); 2245s # 2245s # /** 2245s # * OrgProjectSignalingIface::signal-with-many-args: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_an_b: Argument. 2245s # * @arg_an_y: Argument. 2245s # * @arg_an_n: Argument. 2245s # * @arg_an_q: Argument. 2245s # * @arg_an_i: Argument. 2245s # * @arg_an_u: Argument. 2245s # * @arg_an_x: Argument. 2245s # * @arg_an_t: Argument. 2245s # * @arg_an_d: Argument. 2245s # * @arg_an_s: Argument. 2245s # * @arg_an_o: Argument. 2245s # * @arg_an_g: Argument. 2245s # * @arg_an_h: Argument. 2245s # * @arg_an_ay: Argument. 2245s # * @arg_an_as: Argument. 2245s # * @arg_an_ao: Argument. 2245s # * @arg_an_aay: Argument. 2245s # * @arg_an_asv: Argument. 2245s # * 2245s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 2245s # * 2245s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2245s # */ 2245s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 2245s # g_signal_new ("signal-with-many-args", 2245s # G_TYPE_FROM_INTERFACE (iface), 2245s # G_SIGNAL_RUN_LAST, 2245s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 2245s # NULL, 2245s # NULL, 2245s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 2245s # G_TYPE_NONE, 2245s # 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); 2245s # 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_simple_signal: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * 2245s # * Emits the "SimpleSignal" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_emit_signal_with_many_args: 2245s # * @object: A #OrgProjectSignalingIface. 2245s # * @arg_an_b: Argument to pass with the signal. 2245s # * @arg_an_y: Argument to pass with the signal. 2245s # * @arg_an_n: Argument to pass with the signal. 2245s # * @arg_an_q: Argument to pass with the signal. 2245s # * @arg_an_i: Argument to pass with the signal. 2245s # * @arg_an_u: Argument to pass with the signal. 2245s # * @arg_an_x: Argument to pass with the signal. 2245s # * @arg_an_t: Argument to pass with the signal. 2245s # * @arg_an_d: Argument to pass with the signal. 2245s # * @arg_an_s: Argument to pass with the signal. 2245s # * @arg_an_o: Argument to pass with the signal. 2245s # * @arg_an_g: Argument to pass with the signal. 2245s # * @arg_an_h: Argument to pass with the signal. 2245s # * @arg_an_ay: Argument to pass with the signal. 2245s # * @arg_an_as: Argument to pass with the signal. 2245s # * @arg_an_ao: Argument to pass with the signal. 2245s # * @arg_an_aay: Argument to pass with the signal. 2245s # * @arg_an_asv: Argument to pass with the signal. 2245s # * 2245s # * Emits the "SignalWithManyArgs" D-Bus signal. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_emit_signal_with_many_args ( 2245s # OrgProjectSignalingIface *object, 2245s # gboolean arg_an_b, 2245s # guchar arg_an_y, 2245s # gint16 arg_an_n, 2245s # guint16 arg_an_q, 2245s # gint arg_an_i, 2245s # guint arg_an_u, 2245s # gint64 arg_an_x, 2245s # guint64 arg_an_t, 2245s # gdouble arg_an_d, 2245s # const gchar *arg_an_s, 2245s # const gchar *arg_an_o, 2245s # const gchar *arg_an_g, 2245s # GVariant *arg_an_h, 2245s # const gchar *arg_an_ay, 2245s # const gchar *const *arg_an_as, 2245s # const gchar *const *arg_an_ao, 2245s # const gchar *const *arg_an_aay, 2245s # GVariant *arg_an_asv) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxy: 2245s # * 2245s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceProxyClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceProxy. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceProxyPrivate 2245s # { 2245s # GData *qdata; 2245s # }; 2245s # 2245s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_proxy_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 2245s # g_datalist_clear (&proxy->priv->qdata); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 2245s # guint prop_id G_GNUC_UNUSED, 2245s # const GValue *value G_GNUC_UNUSED, 2245s # GParamSpec *pspec G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 2245s # const gchar *sender_name G_GNUC_UNUSED, 2245s # const gchar *signal_name, 2245s # GVariant *parameters) 2245s # { 2245s # _ExtendedGDBusSignalInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # gsize n; 2245s # guint signal_id; 2245s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 2245s # if (info == NULL) 2245s # return; 2245s # num_params = g_variant_n_children (parameters); 2245s # paramv = g_new0 (GValue, num_params + 1); 2245s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[0], proxy); 2245s # g_variant_iter_init (&iter, parameters); 2245s # n = 1; 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_signal_emitv (paramv, signal_id, 0, NULL); 2245s # for (n = 0; n < num_params + 1; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 2245s # GVariant *changed_properties, 2245s # const gchar *const *invalidated_properties) 2245s # { 2245s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 2245s # guint n; 2245s # const gchar *key; 2245s # GVariantIter *iter; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # g_variant_get (changed_properties, "a{sv}", &iter); 2245s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 2245s # g_datalist_remove_data (&proxy->priv->qdata, key); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # g_variant_iter_free (iter); 2245s # for (n = 0; invalidated_properties[n] != NULL; n++) 2245s # { 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 2245s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2245s # if (info != NULL) 2245s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2245s # } 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 2245s # #else 2245s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 2245s # #endif 2245s # 2245s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusProxyClass *proxy_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 2245s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 2245s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 2245s # 2245s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2245s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 2245s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_sync: 2245s # * @connection: A #GDBusConnection. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_sync ( 2245s # GDBusConnection *connection, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2245s # * @user_data: User data to pass to @callback. 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2245s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2245s # */ 2245s # void 2245s # org_project_signaling_iface_proxy_new_for_bus ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GAsyncReadyCallback callback, 2245s # gpointer user_data) 2245s # { 2245s # 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); 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_finish: 2245s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_finish ( 2245s # GAsyncResult *res, 2245s # GError **error) 2245s # { 2245s # GObject *ret; 2245s # GObject *source_object; 2245s # source_object = g_async_result_get_source_object (res); 2245s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2245s # g_object_unref (source_object); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_proxy_new_for_bus_sync: 2245s # * @bus_type: A #GBusType. 2245s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2245s # * @name: A bus name (well-known or unique). 2245s # * @object_path: An object path. 2245s # * @cancellable: (nullable): A #GCancellable or %NULL. 2245s # * @error: Return location for error or %NULL 2245s # * 2245s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2245s # * 2245s # * The calling thread is blocked until a reply is received. 2245s # * 2245s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_proxy_new_for_bus_sync ( 2245s # GBusType bus_type, 2245s # GDBusProxyFlags flags, 2245s # const gchar *name, 2245s # const gchar *object_path, 2245s # GCancellable *cancellable, 2245s # GError **error) 2245s # { 2245s # GInitable *ret; 2245s # 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); 2245s # if (ret != NULL) 2245s # return ORG_PROJECT_SIGNALING_IFACE (ret); 2245s # else 2245s # return NULL; 2245s # } 2245s # 2245s # 2245s # /* ------------------------------------------------------------------------ */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeleton: 2245s # * 2245s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 2245s # */ 2245s # 2245s # /** 2245s # * OrgProjectSignalingIfaceSkeletonClass: 2245s # * @parent_class: The parent class. 2245s # * 2245s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 2245s # */ 2245s # 2245s # struct _OrgProjectSignalingIfaceSkeletonPrivate 2245s # { 2245s # GValue *properties; 2245s # GList *changed_properties; 2245s # GSource *changed_properties_idle_source; 2245s # GMainContext *context; 2245s # GMutex lock; 2245s # }; 2245s # 2245s # static void 2245s # _org_project_signaling_iface_skeleton_handle_method_call ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name, 2245s # const gchar *method_name, 2245s # GVariant *parameters, 2245s # GDBusMethodInvocation *invocation, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # _ExtendedGDBusMethodInfo *info; 2245s # GVariantIter iter; 2245s # GVariant *child; 2245s # GValue *paramv; 2245s # gsize num_params; 2245s # guint num_extra; 2245s # gsize n; 2245s # guint signal_id; 2245s # GValue return_value = G_VALUE_INIT; 2245s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2245s # g_assert (info != NULL); 2245s # num_params = g_variant_n_children (parameters); 2245s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2245s # n = 0; 2245s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_set_object (¶mv[n++], skeleton); 2245s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2245s # g_value_set_object (¶mv[n++], invocation); 2245s # if (info->pass_fdlist) 2245s # { 2245s # #ifdef G_OS_UNIX 2245s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2245s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2245s # #else 2245s # g_assert_not_reached (); 2245s # #endif 2245s # } 2245s # g_variant_iter_init (&iter, parameters); 2245s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2245s # { 2245s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2245s # if (arg_info->use_gvariant) 2245s # { 2245s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2245s # g_value_set_variant (¶mv[n], child); 2245s # n++; 2245s # } 2245s # else 2245s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2245s # g_variant_unref (child); 2245s # } 2245s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 2245s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2245s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2245s # if (!g_value_get_boolean (&return_value)) 2245s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2245s # g_value_unset (&return_value); 2245s # for (n = 0; n < num_params + num_extra; n++) 2245s # g_value_unset (¶mv[n]); 2245s # g_free (paramv); 2245s # } 2245s # 2245s # static GVariant * 2245s # _org_project_signaling_iface_skeleton_handle_get_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # GVariant *ret; 2245s # ret = NULL; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # g_value_init (&value, pspec->value_type); 2245s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2245s # g_value_unset (&value); 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static gboolean 2245s # _org_project_signaling_iface_skeleton_handle_set_property ( 2245s # GDBusConnection *connection G_GNUC_UNUSED, 2245s # const gchar *sender G_GNUC_UNUSED, 2245s # const gchar *object_path G_GNUC_UNUSED, 2245s # const gchar *interface_name G_GNUC_UNUSED, 2245s # const gchar *property_name, 2245s # GVariant *variant, 2245s # GError **error, 2245s # gpointer user_data) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 2245s # GValue value = G_VALUE_INIT; 2245s # GParamSpec *pspec; 2245s # _ExtendedGDBusPropertyInfo *info; 2245s # gboolean ret; 2245s # ret = FALSE; 2245s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 2245s # g_assert (info != NULL); 2245s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2245s # if (pspec == NULL) 2245s # { 2245s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2245s # } 2245s # else 2245s # { 2245s # if (info->use_gvariant) 2245s # g_value_set_variant (&value, variant); 2245s # else 2245s # g_dbus_gvariant_to_gvalue (variant, &value); 2245s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2245s # g_value_unset (&value); 2245s # ret = TRUE; 2245s # } 2245s # return ret; 2245s # } 2245s # 2245s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 2245s # { 2245s # _org_project_signaling_iface_skeleton_handle_method_call, 2245s # _org_project_signaling_iface_skeleton_handle_get_property, 2245s # _org_project_signaling_iface_skeleton_handle_set_property, 2245s # {NULL} 2245s # }; 2245s # 2245s # static GDBusInterfaceInfo * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return org_project_signaling_iface_interface_info (); 2245s # } 2245s # 2245s # static GDBusInterfaceVTable * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2245s # { 2245s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 2245s # } 2245s # 2245s # static GVariant * 2245s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 2245s # 2245s # GVariantBuilder builder; 2245s # guint n; 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2245s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #else 2245s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2245s # #endif 2245s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 2245s # goto out; 2245s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 2245s # { 2245s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 2245s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2245s # { 2245s # GVariant *value; 2245s # 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); 2245s # if (value != NULL) 2245s # { 2245s # g_variant_take_ref (value); 2245s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2245s # g_variant_unref (value); 2245s # } 2245s # } 2245s # } 2245s # out: 2245s # return g_variant_builder_end (&builder); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2245s # { 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_simple_signal ( 2245s # OrgProjectSignalingIface *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void 2245s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 2245s # OrgProjectSignalingIface *object, 2245s # gboolean arg_an_b, 2245s # guchar arg_an_y, 2245s # gint16 arg_an_n, 2245s # guint16 arg_an_q, 2245s # gint arg_an_i, 2245s # guint arg_an_u, 2245s # gint64 arg_an_x, 2245s # guint64 arg_an_t, 2245s # gdouble arg_an_d, 2245s # const gchar *arg_an_s, 2245s # const gchar *arg_an_o, 2245s # const gchar *arg_an_g, 2245s # GVariant *arg_an_h, 2245s # const gchar *arg_an_ay, 2245s # const gchar *const *arg_an_as, 2245s # const gchar *const *arg_an_ao, 2245s # const gchar *const *arg_an_aay, 2245s # GVariant *arg_an_asv) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # 2245s # GList *connections, *l; 2245s # GVariant *signal_variant; 2245s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2245s # 2245s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 2245s # arg_an_b, 2245s # arg_an_y, 2245s # arg_an_n, 2245s # arg_an_q, 2245s # arg_an_i, 2245s # arg_an_u, 2245s # arg_an_x, 2245s # arg_an_t, 2245s # arg_an_d, 2245s # arg_an_s, 2245s # arg_an_o, 2245s # arg_an_g, 2245s # arg_an_h, 2245s # arg_an_ay, 2245s # arg_an_as, 2245s # arg_an_ao, 2245s # arg_an_aay, 2245s # arg_an_asv)); 2245s # for (l = connections; l != NULL; l = l->next) 2245s # { 2245s # GDBusConnection *connection = l->data; 2245s # g_dbus_connection_emit_signal (connection, 2245s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 2245s # signal_variant, NULL); 2245s # } 2245s # g_variant_unref (signal_variant); 2245s # g_list_free_full (connections, g_object_unref); 2245s # } 2245s # 2245s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #else 2245s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2245s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 2245s # 2245s # #endif 2245s # static void 2245s # org_project_signaling_iface_skeleton_finalize (GObject *object) 2245s # { 2245s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 2245s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2245s # if (skeleton->priv->changed_properties_idle_source != NULL) 2245s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2245s # g_main_context_unref (skeleton->priv->context); 2245s # g_mutex_clear (&skeleton->priv->lock); 2245s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 2245s # { 2245s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2245s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 2245s # #else 2245s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 2245s # #endif 2245s # 2245s # g_mutex_init (&skeleton->priv->lock); 2245s # skeleton->priv->context = g_main_context_ref_thread_default (); 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 2245s # { 2245s # GObjectClass *gobject_class; 2245s # GDBusInterfaceSkeletonClass *skeleton_class; 2245s # 2245s # gobject_class = G_OBJECT_CLASS (klass); 2245s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 2245s # 2245s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2245s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 2245s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 2245s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 2245s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 2245s # 2245s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2245s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 2245s # #endif 2245s # } 2245s # 2245s # static void 2245s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 2245s # { 2245s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 2245s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 2245s # } 2245s # 2245s # /** 2245s # * org_project_signaling_iface_skeleton_new: 2245s # * 2245s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 2245s # * 2245s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 2245s # */ 2245s # OrgProjectSignalingIface * 2245s # org_project_signaling_iface_skeleton_new (void) 2245s # { 2245s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 2245s # } 2245s # Error: 2245s ok 25 __main__.TestCodegen.test_generate_valid_docbook 2245s # gdbus-codegen: /usr/bin/gdbus-codegen 2245s # tmpdir: /tmp/tmphj3bklst 2245s # /tmp/tmphj3bklst/tmpnq3dhvg_.xml: 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # 2245s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphj3bklst/tmpnq3dhvg_.xml', '--generate-docbook', 'test'] 2245s # Return code: 0 2245s # Output: 2245s # 2245s # Error: 2246s ok 26 __main__.TestCodegen.test_glib_max_allowed_less_than_min_required 2246s # gdbus-codegen: /usr/bin/gdbus-codegen 2246s # tmpdir: /tmp/tmpcy1i5jag 2246s # /tmp/tmpcy1i5jag/tmpaqd__mpc.xml: 2246s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcy1i5jag/tmpaqd__mpc.xml', '--output', '-', '--body', '--glib-max-allowed', '2.62', '--glib-min-required', '2.64'] 2246s # Return code: 1 2246s # Output: 2246s # 2246s # Error: 2246s # ERROR: Invalid versions: --glib-min-required ((2, 64)) must be less than or equal to --glib-max-allowed ((2, 62)) 2246s ok 27 __main__.TestCodegen.test_glib_max_allowed_major_only 2246s # gdbus-codegen: /usr/bin/gdbus-codegen 2246s # tmpdir: /tmp/tmph_wb7bnm 2246s # /tmp/tmph_wb7bnm/tmpv1a4k3pm.xml: 2246s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmph_wb7bnm/tmpv1a4k3pm.xml', '--output', '-', '--header', '--glib-max-allowed', '3'] 2246s # Return code: 0 2246s # Output: 2246s # /* 2246s # * This file is generated by gdbus-codegen, do not modify it. 2246s # * 2246s # * The license of this code is the same as for the D-Bus interface description 2246s # * it was derived from. Note that it links to GLib, so must comply with the 2246s # * LGPL linking clauses. 2246s # */ 2246s # 2246s # #ifndef __STDOUT__ 2246s # #define __STDOUT__ 2246s # 2246s # #include 2246s # 2246s # G_BEGIN_DECLS 2246s # 2246s # 2246s # G_END_DECLS 2246s # 2246s # #endif /* __STDOUT__ */ 2246s # Error: 2246s ok 28 __main__.TestCodegen.test_glib_max_allowed_too_low 2246s # gdbus-codegen: /usr/bin/gdbus-codegen 2246s # tmpdir: /tmp/tmplkhkbn7d 2246s # /tmp/tmplkhkbn7d/tmpvwsasejt.xml: 2246s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplkhkbn7d/tmpvwsasejt.xml', '--output', '-', '--body', '--glib-max-allowed', '2.6'] 2246s # Return code: 1 2246s # Output: 2246s # 2246s # Error: 2246s # ERROR: Invalid versions: --glib-min-required ((2, 30)) must be less than or equal to --glib-max-allowed ((2, 6)) 2246s ok 29 __main__.TestCodegen.test_glib_max_allowed_unstable 2246s # gdbus-codegen: /usr/bin/gdbus-codegen 2246s # tmpdir: /tmp/tmpz5w9qilj 2246s # /tmp/tmpz5w9qilj/tmpn2ge6x_a.xml: 2246s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpz5w9qilj/tmpn2ge6x_a.xml', '--output', '-', '--header', '--glib-max-allowed', '2.63', '--glib-min-required', '2.64'] 2246s # Return code: 0 2246s # Output: 2246s # /* 2246s # * This file is generated by gdbus-codegen, do not modify it. 2246s # * 2246s # * The license of this code is the same as for the D-Bus interface description 2246s # * it was derived from. Note that it links to GLib, so must comply with the 2246s # * LGPL linking clauses. 2246s # */ 2246s # 2246s # #ifndef __STDOUT__ 2246s # #define __STDOUT__ 2246s # 2246s # #include 2246s # 2246s # G_BEGIN_DECLS 2246s # 2246s # 2246s # G_END_DECLS 2246s # 2246s # #endif /* __STDOUT__ */ 2246s # Error: 2247s ok 30 __main__.TestCodegen.test_glib_max_allowed_with_micro 2247s # gdbus-codegen: /usr/bin/gdbus-codegen 2247s # tmpdir: /tmp/tmpgvw_r3el 2247s # /tmp/tmpgvw_r3el/tmpo_wjptcz.xml: 2247s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgvw_r3el/tmpo_wjptcz.xml', '--output', '-', '--header', '--glib-max-allowed', '2.46.2'] 2247s # Return code: 0 2247s # Output: 2247s # /* 2247s # * This file is generated by gdbus-codegen, do not modify it. 2247s # * 2247s # * The license of this code is the same as for the D-Bus interface description 2247s # * it was derived from. Note that it links to GLib, so must comply with the 2247s # * LGPL linking clauses. 2247s # */ 2247s # 2247s # #ifndef __STDOUT__ 2247s # #define __STDOUT__ 2247s # 2247s # #include 2247s # 2247s # G_BEGIN_DECLS 2247s # 2247s # 2247s # G_END_DECLS 2247s # 2247s # #endif /* __STDOUT__ */ 2247s # Error: 2247s ok 31 __main__.TestCodegen.test_glib_min_required_invalid 2247s # gdbus-codegen: /usr/bin/gdbus-codegen 2247s # tmpdir: /tmp/tmpv5y61gs6 2247s # /tmp/tmpv5y61gs6/tmp75g6w2wl.xml: 2247s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv5y61gs6/tmp75g6w2wl.xml', '--output', '-', '--body', '--glib-min-required', 'hello mum'] 2247s # Return code: 1 2247s # Output: 2247s # 2247s # Error: 2247s # ERROR: Unrecognized --glib-min-required string ‘hello mum’ 2247s ok 32 __main__.TestCodegen.test_glib_min_required_major_only 2247s # gdbus-codegen: /usr/bin/gdbus-codegen 2247s # tmpdir: /tmp/tmp57vmzy29 2247s # /tmp/tmp57vmzy29/tmp_9e9qkuf.xml: 2247s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp57vmzy29/tmp_9e9qkuf.xml', '--output', '-', '--header', '--glib-min-required', '3', '--glib-max-allowed', '3.2'] 2247s # Return code: 0 2247s # Output: 2247s # /* 2247s # * This file is generated by gdbus-codegen, do not modify it. 2247s # * 2247s # * The license of this code is the same as for the D-Bus interface description 2247s # * it was derived from. Note that it links to GLib, so must comply with the 2247s # * LGPL linking clauses. 2247s # */ 2247s # 2247s # #ifndef __STDOUT__ 2247s # #define __STDOUT__ 2247s # 2247s # #include 2247s # 2247s # G_BEGIN_DECLS 2247s # 2247s # 2247s # G_END_DECLS 2247s # 2247s # #endif /* __STDOUT__ */ 2247s # Error: 2247s ok 33 __main__.TestCodegen.test_glib_min_required_too_low 2247s # gdbus-codegen: /usr/bin/gdbus-codegen 2247s # tmpdir: /tmp/tmp_o_6xv19 2247s # /tmp/tmp_o_6xv19/tmpzj2oe6wa.xml: 2247s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp_o_6xv19/tmpzj2oe6wa.xml', '--output', '-', '--body', '--glib-min-required', '2.6'] 2247s # Return code: 1 2247s # Output: 2247s # 2247s # Error: 2247s # ERROR: Invalid --glib-min-required string ‘2.6’: minimum version is 2.30 2248s ok 34 __main__.TestCodegen.test_glib_min_required_with_micro 2248s # gdbus-codegen: /usr/bin/gdbus-codegen 2248s # tmpdir: /tmp/tmpp2174yed 2248s # /tmp/tmpp2174yed/tmp0aeka7rn.xml: 2248s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpp2174yed/tmp0aeka7rn.xml', '--output', '-', '--header', '--glib-min-required', '2.46.2'] 2248s # Return code: 0 2248s # Output: 2248s # /* 2248s # * This file is generated by gdbus-codegen, do not modify it. 2248s # * 2248s # * The license of this code is the same as for the D-Bus interface description 2248s # * it was derived from. Note that it links to GLib, so must comply with the 2248s # * LGPL linking clauses. 2248s # */ 2248s # 2248s # #ifndef __STDOUT__ 2248s # #define __STDOUT__ 2248s # 2248s # #include 2248s # 2248s # G_BEGIN_DECLS 2248s # 2248s # 2248s # G_END_DECLS 2248s # 2248s # #endif /* __STDOUT__ */ 2248s # Error: 2248s ok 35 __main__.TestCodegen.test_help 2248s # gdbus-codegen: /usr/bin/gdbus-codegen 2248s # tmpdir: /tmp/tmpwfeh1dky 2248s # Running: ['/usr/bin/gdbus-codegen', '--help'] 2248s # Return code: 0 2248s # Output: 2248s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 2248s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 2248s # [--c-generate-autocleanup {none,objects,all}] 2248s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 2248s # [--generate-rst OUTFILES] [--pragma-once] 2248s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 2248s # [--glib-min-required VERSION] 2248s # [--glib-max-allowed VERSION] 2248s # [--symbol-decorator SYMBOL_DECORATOR] 2248s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 2248s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 2248s # [--generate-c-code OUTFILES | --header | --body | 2248s # --interface-info-header | --interface-info-body] 2248s # [--output FILE | --output-directory OUTDIR] 2248s # FILE [FILE ...] 2248s # 2248s # D-Bus code and documentation generator 2248s # 2248s # positional arguments: 2248s # FILE D-Bus introspection XML file 2248s # 2248s # options: 2248s # -h, --help show this help message and exit 2248s # --interface-prefix PREFIX 2248s # String to strip from D-Bus interface names for code 2248s # and docs 2248s # --c-namespace NAMESPACE 2248s # The namespace to use for generated C code 2248s # --c-generate-object-manager 2248s # Generate a GDBusObjectManagerClient subclass when 2248s # generating C code 2248s # --c-generate-autocleanup {none,objects,all} 2248s # Generate autocleanup support 2248s # --generate-docbook OUTFILES 2248s # Generate Docbook in OUTFILES-org.Project.IFace.xml 2248s # --generate-md OUTFILES 2248s # Generate Markdown in OUTFILES-org.Project.IFace.md 2248s # --generate-rst OUTFILES 2248s # Generate reStructuredText in OUTFILES- 2248s # org.Project.IFace.rst 2248s # --pragma-once Use "pragma once" as the inclusion guard 2248s # --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 2248s # Add annotation (may be used several times) 2248s # --glib-min-required VERSION 2248s # Minimum version of GLib to be supported by the 2248s # outputted code (default: 2.30) 2248s # --glib-max-allowed VERSION 2248s # Maximum version of GLib to be used by the outputted 2248s # code (default: current GLib version) 2248s # --symbol-decorator SYMBOL_DECORATOR 2248s # Macro used to decorate a symbol in the outputted 2248s # header, possibly to export symbols 2248s # --symbol-decorator-header SYMBOL_DECORATOR_HEADER 2248s # Additional header required for decorator specified by 2248s # --symbol-decorator 2248s # --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 2248s # Additional define required for decorator specified by 2248s # --symbol-decorator 2248s # --generate-c-code OUTFILES 2248s # Generate C code in OUTFILES.[ch] 2248s # --header Generate C headers 2248s # --body Generate C code 2248s # --interface-info-header 2248s # Generate GDBusInterfaceInfo C header 2248s # --interface-info-body 2248s # Generate GDBusInterfaceInfo C code 2248s # --output FILE Write output into the specified file 2248s # --output-directory OUTDIR 2248s # Location to output generated files 2248s # Error: 2248s # Executing: glib/codegen.py.test 2248s ok 36 __main__.TestCodegen.test_indentation_preservation_in_comments 2248s # gdbus-codegen: /usr/bin/gdbus-codegen 2248s # tmpdir: /tmp/tmpxwu65hc9 2248s # /tmp/tmpxwu65hc9/tmp97dieqpd.xml: 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxwu65hc9/tmp97dieqpd.xml', '--generate-rst', 'test'] 2248s # Return code: 0 2248s # Output: 2248s # 2248s # Error: 2248s # 2248s # /tmp/tmpxwu65hc9/tmpey_494rt.xml: 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxwu65hc9/tmpey_494rt.xml', '--generate-md', 'test'] 2248s # Return code: 0 2248s # Output: 2248s # 2248s # Error: 2248s # 2248s # /tmp/tmpxwu65hc9/tmpz_9xa4fx.xml: 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # 2248s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxwu65hc9/tmpz_9xa4fx.xml', '--generate-docbook', 'test'] 2248s # Return code: 0 2248s # Output: 2248s # 2248s # Error: 2249s ok 37 __main__.TestCodegen.test_no_args 2249s # gdbus-codegen: /usr/bin/gdbus-codegen 2249s # tmpdir: /tmp/tmpxrn1a6_j 2249s # Running: ['/usr/bin/gdbus-codegen'] 2249s # Return code: 2 2249s # Output: 2249s # 2249s # Error: 2249s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 2249s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 2249s # [--c-generate-autocleanup {none,objects,all}] 2249s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 2249s # [--generate-rst OUTFILES] [--pragma-once] 2249s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 2249s # [--glib-min-required VERSION] 2249s # [--glib-max-allowed VERSION] 2249s # [--symbol-decorator SYMBOL_DECORATOR] 2249s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 2249s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 2249s # [--generate-c-code OUTFILES | --header | --body | 2249s # --interface-info-header | --interface-info-body] 2249s # [--output FILE | --output-directory OUTDIR] 2249s # FILE [FILE ...] 2249s # gdbus-codegen: error: the following arguments are required: FILE 2250s ok 38 __main__.TestCodegen.test_reproducible 2250s # gdbus-codegen: /usr/bin/gdbus-codegen 2250s # tmpdir: /tmp/tmpnov6idu8 2250s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpnov6idu8/tmpsv_fc6ww1.xml', '/tmp/tmpnov6idu8/tmpksv4covj2.xml', '--output', '-', '--header'] 2250s # Return code: 0 2250s # Output: 2250s # /* 2250s # * This file is generated by gdbus-codegen, do not modify it. 2250s # * 2250s # * The license of this code is the same as for the D-Bus interface description 2250s # * it was derived from. Note that it links to GLib, so must comply with the 2250s # * LGPL linking clauses. 2250s # */ 2250s # 2250s # #ifndef __STDOUT__ 2250s # #define __STDOUT__ 2250s # 2250s # #include 2250s # 2250s # G_BEGIN_DECLS 2250s # 2250s # 2250s # /* ------------------------------------------------------------------------ */ 2250s # /* Declarations for org.project.Bar.Frobnicator */ 2250s # 2250s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 2250s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 2250s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 2250s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 2250s # 2250s # struct _OrgProjectBarFrobnicator; 2250s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 2250s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 2250s # 2250s # struct _OrgProjectBarFrobnicatorIface 2250s # { 2250s # GTypeInterface parent_iface; 2250s # 2250s # gboolean (*handle_random_method) ( 2250s # OrgProjectBarFrobnicator *object, 2250s # GDBusMethodInvocation *invocation); 2250s # 2250s # }; 2250s # 2250s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 2250s # 2250s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 2250s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 2250s # 2250s # 2250s # /* D-Bus method call completion functions: */ 2250s # void org_project_bar_frobnicator_complete_random_method ( 2250s # OrgProjectBarFrobnicator *object, 2250s # GDBusMethodInvocation *invocation); 2250s # 2250s # 2250s # 2250s # /* D-Bus method calls: */ 2250s # void org_project_bar_frobnicator_call_random_method ( 2250s # OrgProjectBarFrobnicator *proxy, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data); 2250s # 2250s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 2250s # OrgProjectBarFrobnicator *proxy, 2250s # GAsyncResult *res, 2250s # GError **error); 2250s # 2250s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 2250s # OrgProjectBarFrobnicator *proxy, 2250s # GCancellable *cancellable, 2250s # GError **error); 2250s # 2250s # 2250s # 2250s # /* ---- */ 2250s # 2250s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 2250s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 2250s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 2250s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 2250s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 2250s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 2250s # 2250s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 2250s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 2250s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 2250s # 2250s # struct _OrgProjectBarFrobnicatorProxy 2250s # { 2250s # /*< private >*/ 2250s # GDBusProxy parent_instance; 2250s # OrgProjectBarFrobnicatorProxyPrivate *priv; 2250s # }; 2250s # 2250s # struct _OrgProjectBarFrobnicatorProxyClass 2250s # { 2250s # GDBusProxyClass parent_class; 2250s # }; 2250s # 2250s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 2250s # 2250s # #if GLIB_CHECK_VERSION(2, 44, 0) 2250s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 2250s # #endif 2250s # 2250s # void org_project_bar_frobnicator_proxy_new ( 2250s # GDBusConnection *connection, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data); 2250s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 2250s # GAsyncResult *res, 2250s # GError **error); 2250s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 2250s # GDBusConnection *connection, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GError **error); 2250s # 2250s # void org_project_bar_frobnicator_proxy_new_for_bus ( 2250s # GBusType bus_type, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data); 2250s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 2250s # GAsyncResult *res, 2250s # GError **error); 2250s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 2250s # GBusType bus_type, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GError **error); 2250s # 2250s # 2250s # /* ---- */ 2250s # 2250s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 2250s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 2250s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 2250s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 2250s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 2250s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 2250s # 2250s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 2250s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 2250s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 2250s # 2250s # struct _OrgProjectBarFrobnicatorSkeleton 2250s # { 2250s # /*< private >*/ 2250s # GDBusInterfaceSkeleton parent_instance; 2250s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 2250s # }; 2250s # 2250s # struct _OrgProjectBarFrobnicatorSkeletonClass 2250s # { 2250s # GDBusInterfaceSkeletonClass parent_class; 2250s # }; 2250s # 2250s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 2250s # 2250s # #if GLIB_CHECK_VERSION(2, 44, 0) 2250s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 2250s # #endif 2250s # 2250s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 2250s # 2250s # 2250s # /* ------------------------------------------------------------------------ */ 2250s # /* Declarations for com.acme.Coyote */ 2250s # 2250s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 2250s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 2250s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 2250s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 2250s # 2250s # struct _ComAcmeCoyote; 2250s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 2250s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 2250s # 2250s # struct _ComAcmeCoyoteIface 2250s # { 2250s # GTypeInterface parent_iface; 2250s # 2250s # 2250s # 2250s # gboolean (*handle_attack) ( 2250s # ComAcmeCoyote *object, 2250s # GDBusMethodInvocation *invocation); 2250s # 2250s # gboolean (*handle_run) ( 2250s # ComAcmeCoyote *object, 2250s # GDBusMethodInvocation *invocation); 2250s # 2250s # gboolean (*handle_sleep) ( 2250s # ComAcmeCoyote *object, 2250s # GDBusMethodInvocation *invocation); 2250s # 2250s # const gchar * (*get_mood) (ComAcmeCoyote *object); 2250s # 2250s # void (*surprised) ( 2250s # ComAcmeCoyote *object); 2250s # 2250s # }; 2250s # 2250s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 2250s # 2250s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 2250s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 2250s # 2250s # 2250s # /* D-Bus method call completion functions: */ 2250s # void com_acme_coyote_complete_run ( 2250s # ComAcmeCoyote *object, 2250s # GDBusMethodInvocation *invocation); 2250s # 2250s # void com_acme_coyote_complete_sleep ( 2250s # ComAcmeCoyote *object, 2250s # GDBusMethodInvocation *invocation); 2250s # 2250s # void com_acme_coyote_complete_attack ( 2250s # ComAcmeCoyote *object, 2250s # GDBusMethodInvocation *invocation); 2250s # 2250s # 2250s # 2250s # /* D-Bus signal emissions functions: */ 2250s # void com_acme_coyote_emit_surprised ( 2250s # ComAcmeCoyote *object); 2250s # 2250s # 2250s # 2250s # /* D-Bus method calls: */ 2250s # void com_acme_coyote_call_run ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data); 2250s # 2250s # gboolean com_acme_coyote_call_run_finish ( 2250s # ComAcmeCoyote *proxy, 2250s # GAsyncResult *res, 2250s # GError **error); 2250s # 2250s # gboolean com_acme_coyote_call_run_sync ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GError **error); 2250s # 2250s # void com_acme_coyote_call_sleep ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data); 2250s # 2250s # gboolean com_acme_coyote_call_sleep_finish ( 2250s # ComAcmeCoyote *proxy, 2250s # GAsyncResult *res, 2250s # GError **error); 2250s # 2250s # gboolean com_acme_coyote_call_sleep_sync ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GError **error); 2250s # 2250s # void com_acme_coyote_call_attack ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data); 2250s # 2250s # gboolean com_acme_coyote_call_attack_finish ( 2250s # ComAcmeCoyote *proxy, 2250s # GAsyncResult *res, 2250s # GError **error); 2250s # 2250s # gboolean com_acme_coyote_call_attack_sync ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GError **error); 2250s # 2250s # 2250s # 2250s # /* D-Bus property accessors: */ 2250s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 2250s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 2250s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 2250s # 2250s # 2250s # /* ---- */ 2250s # 2250s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 2250s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 2250s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 2250s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 2250s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 2250s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 2250s # 2250s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 2250s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 2250s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 2250s # 2250s # struct _ComAcmeCoyoteProxy 2250s # { 2250s # /*< private >*/ 2250s # GDBusProxy parent_instance; 2250s # ComAcmeCoyoteProxyPrivate *priv; 2250s # }; 2250s # 2250s # struct _ComAcmeCoyoteProxyClass 2250s # { 2250s # GDBusProxyClass parent_class; 2250s # }; 2250s # 2250s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 2250s # 2250s # #if GLIB_CHECK_VERSION(2, 44, 0) 2250s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 2250s # #endif 2250s # 2250s # void com_acme_coyote_proxy_new ( 2250s # GDBusConnection *connection, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data); 2250s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 2250s # GAsyncResult *res, 2250s # GError **error); 2250s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 2250s # GDBusConnection *connection, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GError **error); 2250s # 2250s # void com_acme_coyote_proxy_new_for_bus ( 2250s # GBusType bus_type, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data); 2250s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 2250s # GAsyncResult *res, 2250s # GError **error); 2250s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 2250s # GBusType bus_type, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GError **error); 2250s # 2250s # 2250s # /* ---- */ 2250s # 2250s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 2250s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 2250s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 2250s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 2250s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 2250s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 2250s # 2250s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 2250s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 2250s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 2250s # 2250s # struct _ComAcmeCoyoteSkeleton 2250s # { 2250s # /*< private >*/ 2250s # GDBusInterfaceSkeleton parent_instance; 2250s # ComAcmeCoyoteSkeletonPrivate *priv; 2250s # }; 2250s # 2250s # struct _ComAcmeCoyoteSkeletonClass 2250s # { 2250s # GDBusInterfaceSkeletonClass parent_class; 2250s # }; 2250s # 2250s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 2250s # 2250s # #if GLIB_CHECK_VERSION(2, 44, 0) 2250s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 2250s # #endif 2250s # 2250s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 2250s # 2250s # 2250s # G_END_DECLS 2250s # 2250s # #endif /* __STDOUT__ */ 2250s # Error: 2250s # 2250s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpnov6idu8/tmpksv4covj2.xml', '/tmp/tmpnov6idu8/tmpsv_fc6ww1.xml', '--output', '-', '--header'] 2250s # Return code: 0 2250s # Output: 2250s # /* 2250s # * This file is generated by gdbus-codegen, do not modify it. 2250s # * 2250s # * The license of this code is the same as for the D-Bus interface description 2250s # * it was derived from. Note that it links to GLib, so must comply with the 2250s # * LGPL linking clauses. 2250s # */ 2250s # 2250s # #ifndef __STDOUT__ 2250s # #define __STDOUT__ 2250s # 2250s # #include 2250s # 2250s # G_BEGIN_DECLS 2250s # 2250s # 2250s # /* ------------------------------------------------------------------------ */ 2250s # /* Declarations for org.project.Bar.Frobnicator */ 2250s # 2250s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 2250s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 2250s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 2250s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 2250s # 2250s # struct _OrgProjectBarFrobnicator; 2250s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 2250s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 2250s # 2250s # struct _OrgProjectBarFrobnicatorIface 2250s # { 2250s # GTypeInterface parent_iface; 2250s # 2250s # gboolean (*handle_random_method) ( 2250s # OrgProjectBarFrobnicator *object, 2250s # GDBusMethodInvocation *invocation); 2250s # 2250s # }; 2250s # 2250s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 2250s # 2250s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 2250s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 2250s # 2250s # 2250s # /* D-Bus method call completion functions: */ 2250s # void org_project_bar_frobnicator_complete_random_method ( 2250s # OrgProjectBarFrobnicator *object, 2250s # GDBusMethodInvocation *invocation); 2250s # 2250s # 2250s # 2250s # /* D-Bus method calls: */ 2250s # void org_project_bar_frobnicator_call_random_method ( 2250s # OrgProjectBarFrobnicator *proxy, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data); 2250s # 2250s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 2250s # OrgProjectBarFrobnicator *proxy, 2250s # GAsyncResult *res, 2250s # GError **error); 2250s # 2250s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 2250s # OrgProjectBarFrobnicator *proxy, 2250s # GCancellable *cancellable, 2250s # GError **error); 2250s # 2250s # 2250s # 2250s # /* ---- */ 2250s # 2250s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 2250s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 2250s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 2250s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 2250s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 2250s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 2250s # 2250s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 2250s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 2250s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 2250s # 2250s # struct _OrgProjectBarFrobnicatorProxy 2250s # { 2250s # /*< private >*/ 2250s # GDBusProxy parent_instance; 2250s # OrgProjectBarFrobnicatorProxyPrivate *priv; 2250s # }; 2250s # 2250s # struct _OrgProjectBarFrobnicatorProxyClass 2250s # { 2250s # GDBusProxyClass parent_class; 2250s # }; 2250s # 2250s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 2250s # 2250s # #if GLIB_CHECK_VERSION(2, 44, 0) 2250s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 2250s # #endif 2250s # 2250s # void org_project_bar_frobnicator_proxy_new ( 2250s # GDBusConnection *connection, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data); 2250s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 2250s # GAsyncResult *res, 2250s # GError **error); 2250s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 2250s # GDBusConnection *connection, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GError **error); 2250s # 2250s # void org_project_bar_frobnicator_proxy_new_for_bus ( 2250s # GBusType bus_type, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data); 2250s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 2250s # GAsyncResult *res, 2250s # GError **error); 2250s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 2250s # GBusType bus_type, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GError **error); 2250s # 2250s # 2250s # /* ---- */ 2250s # 2250s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 2250s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 2250s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 2250s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 2250s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 2250s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 2250s # 2250s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 2250s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 2250s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 2250s # 2250s # struct _OrgProjectBarFrobnicatorSkeleton 2250s # { 2250s # /*< private >*/ 2250s # GDBusInterfaceSkeleton parent_instance; 2250s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 2250s # }; 2250s # 2250s # struct _OrgProjectBarFrobnicatorSkeletonClass 2250s # { 2250s # GDBusInterfaceSkeletonClass parent_class; 2250s # }; 2250s # 2250s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 2250s # 2250s # #if GLIB_CHECK_VERSION(2, 44, 0) 2250s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 2250s # #endif 2250s # 2250s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 2250s # 2250s # 2250s # /* ------------------------------------------------------------------------ */ 2250s # /* Declarations for com.acme.Coyote */ 2250s # 2250s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 2250s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 2250s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 2250s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 2250s # 2250s # struct _ComAcmeCoyote; 2250s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 2250s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 2250s # 2250s # struct _ComAcmeCoyoteIface 2250s # { 2250s # GTypeInterface parent_iface; 2250s # 2250s # 2250s # 2250s # gboolean (*handle_attack) ( 2250s # ComAcmeCoyote *object, 2250s # GDBusMethodInvocation *invocation); 2250s # 2250s # gboolean (*handle_run) ( 2250s # ComAcmeCoyote *object, 2250s # GDBusMethodInvocation *invocation); 2250s # 2250s # gboolean (*handle_sleep) ( 2250s # ComAcmeCoyote *object, 2250s # GDBusMethodInvocation *invocation); 2250s # 2250s # const gchar * (*get_mood) (ComAcmeCoyote *object); 2250s # 2250s # void (*surprised) ( 2250s # ComAcmeCoyote *object); 2250s # 2250s # }; 2250s # 2250s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 2250s # 2250s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 2250s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 2250s # 2250s # 2250s # /* D-Bus method call completion functions: */ 2250s # void com_acme_coyote_complete_run ( 2250s # ComAcmeCoyote *object, 2250s # GDBusMethodInvocation *invocation); 2250s # 2250s # void com_acme_coyote_complete_sleep ( 2250s # ComAcmeCoyote *object, 2250s # GDBusMethodInvocation *invocation); 2250s # 2250s # void com_acme_coyote_complete_attack ( 2250s # ComAcmeCoyote *object, 2250s # GDBusMethodInvocation *invocation); 2250s # 2250s # 2250s # 2250s # /* D-Bus signal emissions functions: */ 2250s # void com_acme_coyote_emit_surprised ( 2250s # ComAcmeCoyote *object); 2250s # 2250s # 2250s # 2250s # /* D-Bus method calls: */ 2250s # void com_acme_coyote_call_run ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data); 2250s # 2250s # gboolean com_acme_coyote_call_run_finish ( 2250s # ComAcmeCoyote *proxy, 2250s # GAsyncResult *res, 2250s # GError **error); 2250s # 2250s # gboolean com_acme_coyote_call_run_sync ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GError **error); 2250s # 2250s # void com_acme_coyote_call_sleep ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data); 2250s # 2250s # gboolean com_acme_coyote_call_sleep_finish ( 2250s # ComAcmeCoyote *proxy, 2250s # GAsyncResult *res, 2250s # GError **error); 2250s # 2250s # gboolean com_acme_coyote_call_sleep_sync ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GError **error); 2250s # 2250s # void com_acme_coyote_call_attack ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data); 2250s # 2250s # gboolean com_acme_coyote_call_attack_finish ( 2250s # ComAcmeCoyote *proxy, 2250s # GAsyncResult *res, 2250s # GError **error); 2250s # 2250s # gboolean com_acme_coyote_call_attack_sync ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GError **error); 2250s # 2250s # 2250s # 2250s # /* D-Bus property accessors: */ 2250s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 2250s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 2250s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 2250s # 2250s # 2250s # /* ---- */ 2250s # 2250s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 2250s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 2250s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 2250s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 2250s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 2250s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 2250s # 2250s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 2250s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 2250s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 2250s # 2250s # struct _ComAcmeCoyoteProxy 2250s # { 2250s # /*< private >*/ 2250s # GDBusProxy parent_instance; 2250s # ComAcmeCoyoteProxyPrivate *priv; 2250s # }; 2250s # 2250s # struct _ComAcmeCoyoteProxyClass 2250s # { 2250s # GDBusProxyClass parent_class; 2250s # }; 2250s # 2250s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 2250s # 2250s # #if GLIB_CHECK_VERSION(2, 44, 0) 2250s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 2250s # #endif 2250s # 2250s # void com_acme_coyote_proxy_new ( 2250s # GDBusConnection *connection, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data); 2250s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 2250s # GAsyncResult *res, 2250s # GError **error); 2250s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 2250s # GDBusConnection *connection, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GError **error); 2250s # 2250s # void com_acme_coyote_proxy_new_for_bus ( 2250s # GBusType bus_type, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data); 2250s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 2250s # GAsyncResult *res, 2250s # GError **error); 2250s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 2250s # GBusType bus_type, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GError **error); 2250s # 2250s # 2250s # /* ---- */ 2250s # 2250s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 2250s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 2250s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 2250s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 2250s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 2250s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 2250s # 2250s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 2250s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 2250s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 2250s # 2250s # struct _ComAcmeCoyoteSkeleton 2250s # { 2250s # /*< private >*/ 2250s # GDBusInterfaceSkeleton parent_instance; 2250s # ComAcmeCoyoteSkeletonPrivate *priv; 2250s # }; 2250s # 2250s # struct _ComAcmeCoyoteSkeletonClass 2250s # { 2250s # GDBusInterfaceSkeletonClass parent_class; 2250s # }; 2250s # 2250s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 2250s # 2250s # #if GLIB_CHECK_VERSION(2, 44, 0) 2250s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 2250s # #endif 2250s # 2250s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 2250s # 2250s # 2250s # G_END_DECLS 2250s # 2250s # #endif /* __STDOUT__ */ 2250s # Error: 2250s # 2250s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpnov6idu8/tmpsv_fc6ww1.xml', '/tmp/tmpnov6idu8/tmpksv4covj2.xml', '--output', '-', '--body'] 2250s # Return code: 0 2250s # Output: 2250s # /* 2250s # * This file is generated by gdbus-codegen, do not modify it. 2250s # * 2250s # * The license of this code is the same as for the D-Bus interface description 2250s # * it was derived from. Note that it links to GLib, so must comply with the 2250s # * LGPL linking clauses. 2250s # */ 2250s # 2250s # #ifdef HAVE_CONFIG_H 2250s # # include "config.h" 2250s # #endif 2250s # 2250s # #include 2250s # #ifdef G_OS_UNIX 2250s # # include 2250s # #endif 2250s # 2250s # #ifdef G_ENABLE_DEBUG 2250s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2250s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2250s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2250s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2250s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2250s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2250s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2250s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2250s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2250s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2250s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2250s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2250s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2250s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2250s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2250s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2250s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2250s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2250s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2250s # #else /* !G_ENABLE_DEBUG */ 2250s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2250s # * Do not access GValues directly in your code. Instead, use the 2250s # * g_value_get_*() functions 2250s # */ 2250s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2250s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2250s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2250s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2250s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2250s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2250s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2250s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2250s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2250s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2250s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2250s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2250s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2250s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2250s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2250s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2250s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2250s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2250s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2250s # #endif /* !G_ENABLE_DEBUG */ 2250s # 2250s # typedef struct 2250s # { 2250s # GDBusArgInfo parent_struct; 2250s # gboolean use_gvariant; 2250s # } _ExtendedGDBusArgInfo; 2250s # 2250s # typedef struct 2250s # { 2250s # GDBusMethodInfo parent_struct; 2250s # const gchar *signal_name; 2250s # gboolean pass_fdlist; 2250s # } _ExtendedGDBusMethodInfo; 2250s # 2250s # typedef struct 2250s # { 2250s # GDBusSignalInfo parent_struct; 2250s # const gchar *signal_name; 2250s # } _ExtendedGDBusSignalInfo; 2250s # 2250s # typedef struct 2250s # { 2250s # GDBusPropertyInfo parent_struct; 2250s # const gchar *hyphen_name; 2250s # guint use_gvariant : 1; 2250s # guint emits_changed_signal : 1; 2250s # } _ExtendedGDBusPropertyInfo; 2250s # 2250s # typedef struct 2250s # { 2250s # GDBusInterfaceInfo parent_struct; 2250s # const gchar *hyphen_name; 2250s # } _ExtendedGDBusInterfaceInfo; 2250s # 2250s # typedef struct 2250s # { 2250s # const _ExtendedGDBusPropertyInfo *info; 2250s # guint prop_id; 2250s # GValue orig_value; /* the value before the change */ 2250s # } ChangedProperty; 2250s # 2250s # static void 2250s # _changed_property_free (ChangedProperty *data) 2250s # { 2250s # g_value_unset (&data->orig_value); 2250s # g_free (data); 2250s # } 2250s # 2250s # static gboolean 2250s # _g_strv_equal0 (gchar **a, gchar **b) 2250s # { 2250s # gboolean ret = FALSE; 2250s # guint n; 2250s # if (a == NULL && b == NULL) 2250s # { 2250s # ret = TRUE; 2250s # goto out; 2250s # } 2250s # if (a == NULL || b == NULL) 2250s # goto out; 2250s # if (g_strv_length (a) != g_strv_length (b)) 2250s # goto out; 2250s # for (n = 0; a[n] != NULL; n++) 2250s # if (g_strcmp0 (a[n], b[n]) != 0) 2250s # goto out; 2250s # ret = TRUE; 2250s # out: 2250s # return ret; 2250s # } 2250s # 2250s # static gboolean 2250s # _g_variant_equal0 (GVariant *a, GVariant *b) 2250s # { 2250s # gboolean ret = FALSE; 2250s # if (a == NULL && b == NULL) 2250s # { 2250s # ret = TRUE; 2250s # goto out; 2250s # } 2250s # if (a == NULL || b == NULL) 2250s # goto out; 2250s # ret = g_variant_equal (a, b); 2250s # out: 2250s # return ret; 2250s # } 2250s # 2250s # G_GNUC_UNUSED static gboolean 2250s # _g_value_equal (const GValue *a, const GValue *b) 2250s # { 2250s # gboolean ret = FALSE; 2250s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2250s # switch (G_VALUE_TYPE (a)) 2250s # { 2250s # case G_TYPE_BOOLEAN: 2250s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2250s # break; 2250s # case G_TYPE_UCHAR: 2250s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2250s # break; 2250s # case G_TYPE_INT: 2250s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2250s # break; 2250s # case G_TYPE_UINT: 2250s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2250s # break; 2250s # case G_TYPE_INT64: 2250s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2250s # break; 2250s # case G_TYPE_UINT64: 2250s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2250s # break; 2250s # case G_TYPE_DOUBLE: 2250s # { 2250s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2250s # gdouble da = g_value_get_double (a); 2250s # gdouble db = g_value_get_double (b); 2250s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2250s # } 2250s # break; 2250s # case G_TYPE_STRING: 2250s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2250s # break; 2250s # case G_TYPE_VARIANT: 2250s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2250s # break; 2250s # default: 2250s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2250s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2250s # else 2250s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2250s # break; 2250s # } 2250s # return ret; 2250s # } 2250s # 2250s # static void 2250s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2250s # GClosure *closure, 2250s # GValue *return_value, 2250s # unsigned int n_param_values, 2250s # const GValue *param_values, 2250s # void *invocation_hint G_GNUC_UNUSED, 2250s # void *marshal_data) 2250s # { 2250s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2250s # (void *data1, 2250s # GDBusMethodInvocation *arg_method_invocation, 2250s # void *data2); 2250s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2250s # GCClosure *cc = (GCClosure*) closure; 2250s # void *data1, *data2; 2250s # gboolean v_return; 2250s # 2250s # g_return_if_fail (return_value != NULL); 2250s # g_return_if_fail (n_param_values == 2); 2250s # 2250s # if (G_CCLOSURE_SWAP_DATA (closure)) 2250s # { 2250s # data1 = closure->data; 2250s # data2 = g_value_peek_pointer (param_values + 0); 2250s # } 2250s # else 2250s # { 2250s # data1 = g_value_peek_pointer (param_values + 0); 2250s # data2 = closure->data; 2250s # } 2250s # 2250s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2250s # (marshal_data ? marshal_data : cc->callback); 2250s # 2250s # v_return = 2250s # callback (data1, 2250s # g_marshal_value_peek_object (param_values + 1), 2250s # data2); 2250s # 2250s # g_value_set_boolean (return_value, v_return); 2250s # } 2250s # 2250s # /* ------------------------------------------------------------------------ 2250s # * Code for interface org.project.Bar.Frobnicator 2250s # * ------------------------------------------------------------------------ 2250s # */ 2250s # 2250s # /** 2250s # * SECTION:OrgProjectBarFrobnicator 2250s # * @title: OrgProjectBarFrobnicator 2250s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 2250s # * 2250s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 2250s # */ 2250s # 2250s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 2250s # 2250s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 2250s # { 2250s # { 2250s # -1, 2250s # (gchar *) "RandomMethod", 2250s # NULL, 2250s # NULL, 2250s # NULL 2250s # }, 2250s # "handle-random-method", 2250s # FALSE 2250s # }; 2250s # 2250s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 2250s # { 2250s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 2250s # NULL 2250s # }; 2250s # 2250s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 2250s # { 2250s # { 2250s # -1, 2250s # (gchar *) "org.project.Bar.Frobnicator", 2250s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 2250s # NULL, 2250s # NULL, 2250s # NULL 2250s # }, 2250s # "org-project-bar-frobnicator", 2250s # }; 2250s # 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_interface_info: 2250s # * 2250s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 2250s # * 2250s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2250s # */ 2250s # GDBusInterfaceInfo * 2250s # org_project_bar_frobnicator_interface_info (void) 2250s # { 2250s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 2250s # } 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_override_properties: 2250s # * @klass: The class structure for a #GObject derived class. 2250s # * @property_id_begin: The property id to assign to the first overridden property. 2250s # * 2250s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 2250s # * The properties are overridden in the order they are defined. 2250s # * 2250s # * Returns: The last property id. 2250s # */ 2250s # guint 2250s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2250s # { 2250s # return property_id_begin - 1; 2250s # } 2250s # 2250s # 2250s # inline static void 2250s # org_project_bar_frobnicator_method_marshal_random_method ( 2250s # GClosure *closure, 2250s # GValue *return_value, 2250s # unsigned int n_param_values, 2250s # const GValue *param_values, 2250s # void *invocation_hint, 2250s # void *marshal_data) 2250s # { 2250s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2250s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2250s # } 2250s # 2250s # 2250s # /** 2250s # * OrgProjectBarFrobnicator: 2250s # * 2250s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 2250s # */ 2250s # 2250s # /** 2250s # * OrgProjectBarFrobnicatorIface: 2250s # * @parent_iface: The parent interface. 2250s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 2250s # * 2250s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 2250s # */ 2250s # 2250s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 2250s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 2250s # 2250s # static void 2250s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 2250s # { 2250s # /* GObject signals for incoming D-Bus method calls: */ 2250s # /** 2250s # * OrgProjectBarFrobnicator::handle-random-method: 2250s # * @object: A #OrgProjectBarFrobnicator. 2250s # * @invocation: A #GDBusMethodInvocation. 2250s # * 2250s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 2250s # * 2250s # * 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. 2250s # * 2250s # * 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. 2250s # */ 2250s # g_signal_new ("handle-random-method", 2250s # G_TYPE_FROM_INTERFACE (iface), 2250s # G_SIGNAL_RUN_LAST, 2250s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 2250s # g_signal_accumulator_true_handled, 2250s # NULL, 2250s # org_project_bar_frobnicator_method_marshal_random_method, 2250s # G_TYPE_BOOLEAN, 2250s # 1, 2250s # G_TYPE_DBUS_METHOD_INVOCATION); 2250s # 2250s # } 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_call_random_method: 2250s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2250s # * @user_data: User data to pass to @callback. 2250s # * 2250s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 2250s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2250s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 2250s # * 2250s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 2250s # */ 2250s # void 2250s # org_project_bar_frobnicator_call_random_method ( 2250s # OrgProjectBarFrobnicator *proxy, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data) 2250s # { 2250s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2250s # "RandomMethod", 2250s # g_variant_new ("()"), 2250s # G_DBUS_CALL_FLAGS_NONE, 2250s # -1, 2250s # cancellable, 2250s # callback, 2250s # user_data); 2250s # } 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_call_random_method_finish: 2250s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 2250s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 2250s # * @error: Return location for error or %NULL. 2250s # * 2250s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 2250s # * 2250s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2250s # */ 2250s # gboolean 2250s # org_project_bar_frobnicator_call_random_method_finish ( 2250s # OrgProjectBarFrobnicator *proxy, 2250s # GAsyncResult *res, 2250s # GError **error) 2250s # { 2250s # GVariant *_ret; 2250s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2250s # if (_ret == NULL) 2250s # goto _out; 2250s # g_variant_get (_ret, 2250s # "()"); 2250s # g_variant_unref (_ret); 2250s # _out: 2250s # return _ret != NULL; 2250s # } 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_call_random_method_sync: 2250s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @error: Return location for error or %NULL. 2250s # * 2250s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2250s # * 2250s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 2250s # * 2250s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2250s # */ 2250s # gboolean 2250s # org_project_bar_frobnicator_call_random_method_sync ( 2250s # OrgProjectBarFrobnicator *proxy, 2250s # GCancellable *cancellable, 2250s # GError **error) 2250s # { 2250s # GVariant *_ret; 2250s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2250s # "RandomMethod", 2250s # g_variant_new ("()"), 2250s # G_DBUS_CALL_FLAGS_NONE, 2250s # -1, 2250s # cancellable, 2250s # error); 2250s # if (_ret == NULL) 2250s # goto _out; 2250s # g_variant_get (_ret, 2250s # "()"); 2250s # g_variant_unref (_ret); 2250s # _out: 2250s # return _ret != NULL; 2250s # } 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_complete_random_method: 2250s # * @object: A #OrgProjectBarFrobnicator. 2250s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2250s # * 2250s # * 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. 2250s # * 2250s # * This method will free @invocation, you cannot use it afterwards. 2250s # */ 2250s # void 2250s # org_project_bar_frobnicator_complete_random_method ( 2250s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 2250s # GDBusMethodInvocation *invocation) 2250s # { 2250s # g_dbus_method_invocation_return_value (invocation, 2250s # g_variant_new ("()")); 2250s # } 2250s # 2250s # /* ------------------------------------------------------------------------ */ 2250s # 2250s # /** 2250s # * OrgProjectBarFrobnicatorProxy: 2250s # * 2250s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 2250s # */ 2250s # 2250s # /** 2250s # * OrgProjectBarFrobnicatorProxyClass: 2250s # * @parent_class: The parent class. 2250s # * 2250s # * Class structure for #OrgProjectBarFrobnicatorProxy. 2250s # */ 2250s # 2250s # struct _OrgProjectBarFrobnicatorProxyPrivate 2250s # { 2250s # GData *qdata; 2250s # }; 2250s # 2250s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 2250s # 2250s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2250s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 2250s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 2250s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 2250s # 2250s # #else 2250s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 2250s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 2250s # 2250s # #endif 2250s # static void 2250s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 2250s # { 2250s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 2250s # g_datalist_clear (&proxy->priv->qdata); 2250s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 2250s # } 2250s # 2250s # static void 2250s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 2250s # guint prop_id G_GNUC_UNUSED, 2250s # GValue *value G_GNUC_UNUSED, 2250s # GParamSpec *pspec G_GNUC_UNUSED) 2250s # { 2250s # } 2250s # 2250s # static void 2250s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 2250s # guint prop_id G_GNUC_UNUSED, 2250s # const GValue *value G_GNUC_UNUSED, 2250s # GParamSpec *pspec G_GNUC_UNUSED) 2250s # { 2250s # } 2250s # 2250s # static void 2250s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 2250s # const gchar *sender_name G_GNUC_UNUSED, 2250s # const gchar *signal_name, 2250s # GVariant *parameters) 2250s # { 2250s # _ExtendedGDBusSignalInfo *info; 2250s # GVariantIter iter; 2250s # GVariant *child; 2250s # GValue *paramv; 2250s # gsize num_params; 2250s # gsize n; 2250s # guint signal_id; 2250s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 2250s # if (info == NULL) 2250s # return; 2250s # num_params = g_variant_n_children (parameters); 2250s # paramv = g_new0 (GValue, num_params + 1); 2250s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 2250s # g_value_set_object (¶mv[0], proxy); 2250s # g_variant_iter_init (&iter, parameters); 2250s # n = 1; 2250s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2250s # { 2250s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2250s # if (arg_info->use_gvariant) 2250s # { 2250s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2250s # g_value_set_variant (¶mv[n], child); 2250s # n++; 2250s # } 2250s # else 2250s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2250s # g_variant_unref (child); 2250s # } 2250s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 2250s # g_signal_emitv (paramv, signal_id, 0, NULL); 2250s # for (n = 0; n < num_params + 1; n++) 2250s # g_value_unset (¶mv[n]); 2250s # g_free (paramv); 2250s # } 2250s # 2250s # static void 2250s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 2250s # GVariant *changed_properties, 2250s # const gchar *const *invalidated_properties) 2250s # { 2250s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 2250s # guint n; 2250s # const gchar *key; 2250s # GVariantIter *iter; 2250s # _ExtendedGDBusPropertyInfo *info; 2250s # g_variant_get (changed_properties, "a{sv}", &iter); 2250s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2250s # { 2250s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 2250s # g_datalist_remove_data (&proxy->priv->qdata, key); 2250s # if (info != NULL) 2250s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2250s # } 2250s # g_variant_iter_free (iter); 2250s # for (n = 0; invalidated_properties[n] != NULL; n++) 2250s # { 2250s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 2250s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2250s # if (info != NULL) 2250s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2250s # } 2250s # } 2250s # 2250s # static void 2250s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 2250s # { 2250s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2250s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 2250s # #else 2250s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 2250s # #endif 2250s # 2250s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 2250s # } 2250s # 2250s # static void 2250s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 2250s # { 2250s # GObjectClass *gobject_class; 2250s # GDBusProxyClass *proxy_class; 2250s # 2250s # gobject_class = G_OBJECT_CLASS (klass); 2250s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 2250s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 2250s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 2250s # 2250s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2250s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 2250s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 2250s # 2250s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2250s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 2250s # #endif 2250s # } 2250s # 2250s # static void 2250s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 2250s # { 2250s # } 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_proxy_new: 2250s # * @connection: A #GDBusConnection. 2250s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2250s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2250s # * @object_path: An object path. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2250s # * @user_data: User data to pass to @callback. 2250s # * 2250s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 2250s # * 2250s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2250s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 2250s # * 2250s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 2250s # */ 2250s # void 2250s # org_project_bar_frobnicator_proxy_new ( 2250s # GDBusConnection *connection, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data) 2250s # { 2250s # 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); 2250s # } 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_proxy_new_finish: 2250s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 2250s # * @error: Return location for error or %NULL 2250s # * 2250s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 2250s # * 2250s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 2250s # */ 2250s # OrgProjectBarFrobnicator * 2250s # org_project_bar_frobnicator_proxy_new_finish ( 2250s # GAsyncResult *res, 2250s # GError **error) 2250s # { 2250s # GObject *ret; 2250s # GObject *source_object; 2250s # source_object = g_async_result_get_source_object (res); 2250s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2250s # g_object_unref (source_object); 2250s # if (ret != NULL) 2250s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 2250s # else 2250s # return NULL; 2250s # } 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_proxy_new_sync: 2250s # * @connection: A #GDBusConnection. 2250s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2250s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2250s # * @object_path: An object path. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @error: Return location for error or %NULL 2250s # * 2250s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 2250s # * 2250s # * The calling thread is blocked until a reply is received. 2250s # * 2250s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 2250s # * 2250s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 2250s # */ 2250s # OrgProjectBarFrobnicator * 2250s # org_project_bar_frobnicator_proxy_new_sync ( 2250s # GDBusConnection *connection, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GError **error) 2250s # { 2250s # GInitable *ret; 2250s # 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); 2250s # if (ret != NULL) 2250s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 2250s # else 2250s # return NULL; 2250s # } 2250s # 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_proxy_new_for_bus: 2250s # * @bus_type: A #GBusType. 2250s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2250s # * @name: A bus name (well-known or unique). 2250s # * @object_path: An object path. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2250s # * @user_data: User data to pass to @callback. 2250s # * 2250s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2250s # * 2250s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2250s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 2250s # * 2250s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2250s # */ 2250s # void 2250s # org_project_bar_frobnicator_proxy_new_for_bus ( 2250s # GBusType bus_type, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data) 2250s # { 2250s # 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); 2250s # } 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 2250s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 2250s # * @error: Return location for error or %NULL 2250s # * 2250s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 2250s # * 2250s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 2250s # */ 2250s # OrgProjectBarFrobnicator * 2250s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 2250s # GAsyncResult *res, 2250s # GError **error) 2250s # { 2250s # GObject *ret; 2250s # GObject *source_object; 2250s # source_object = g_async_result_get_source_object (res); 2250s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2250s # g_object_unref (source_object); 2250s # if (ret != NULL) 2250s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 2250s # else 2250s # return NULL; 2250s # } 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 2250s # * @bus_type: A #GBusType. 2250s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2250s # * @name: A bus name (well-known or unique). 2250s # * @object_path: An object path. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @error: Return location for error or %NULL 2250s # * 2250s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2250s # * 2250s # * The calling thread is blocked until a reply is received. 2250s # * 2250s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 2250s # * 2250s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 2250s # */ 2250s # OrgProjectBarFrobnicator * 2250s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 2250s # GBusType bus_type, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GError **error) 2250s # { 2250s # GInitable *ret; 2250s # 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); 2250s # if (ret != NULL) 2250s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 2250s # else 2250s # return NULL; 2250s # } 2250s # 2250s # 2250s # /* ------------------------------------------------------------------------ */ 2250s # 2250s # /** 2250s # * OrgProjectBarFrobnicatorSkeleton: 2250s # * 2250s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 2250s # */ 2250s # 2250s # /** 2250s # * OrgProjectBarFrobnicatorSkeletonClass: 2250s # * @parent_class: The parent class. 2250s # * 2250s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 2250s # */ 2250s # 2250s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 2250s # { 2250s # GValue *properties; 2250s # GList *changed_properties; 2250s # GSource *changed_properties_idle_source; 2250s # GMainContext *context; 2250s # GMutex lock; 2250s # }; 2250s # 2250s # static void 2250s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 2250s # GDBusConnection *connection G_GNUC_UNUSED, 2250s # const gchar *sender G_GNUC_UNUSED, 2250s # const gchar *object_path G_GNUC_UNUSED, 2250s # const gchar *interface_name, 2250s # const gchar *method_name, 2250s # GVariant *parameters, 2250s # GDBusMethodInvocation *invocation, 2250s # gpointer user_data) 2250s # { 2250s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 2250s # _ExtendedGDBusMethodInfo *info; 2250s # GVariantIter iter; 2250s # GVariant *child; 2250s # GValue *paramv; 2250s # gsize num_params; 2250s # guint num_extra; 2250s # gsize n; 2250s # guint signal_id; 2250s # GValue return_value = G_VALUE_INIT; 2250s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2250s # g_assert (info != NULL); 2250s # num_params = g_variant_n_children (parameters); 2250s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2250s # n = 0; 2250s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 2250s # g_value_set_object (¶mv[n++], skeleton); 2250s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2250s # g_value_set_object (¶mv[n++], invocation); 2250s # if (info->pass_fdlist) 2250s # { 2250s # #ifdef G_OS_UNIX 2250s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2250s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2250s # #else 2250s # g_assert_not_reached (); 2250s # #endif 2250s # } 2250s # g_variant_iter_init (&iter, parameters); 2250s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2250s # { 2250s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2250s # if (arg_info->use_gvariant) 2250s # { 2250s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2250s # g_value_set_variant (¶mv[n], child); 2250s # n++; 2250s # } 2250s # else 2250s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2250s # g_variant_unref (child); 2250s # } 2250s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 2250s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2250s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2250s # if (!g_value_get_boolean (&return_value)) 2250s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2250s # g_value_unset (&return_value); 2250s # for (n = 0; n < num_params + num_extra; n++) 2250s # g_value_unset (¶mv[n]); 2250s # g_free (paramv); 2250s # } 2250s # 2250s # static GVariant * 2250s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 2250s # GDBusConnection *connection G_GNUC_UNUSED, 2250s # const gchar *sender G_GNUC_UNUSED, 2250s # const gchar *object_path G_GNUC_UNUSED, 2250s # const gchar *interface_name G_GNUC_UNUSED, 2250s # const gchar *property_name, 2250s # GError **error, 2250s # gpointer user_data) 2250s # { 2250s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 2250s # GValue value = G_VALUE_INIT; 2250s # GParamSpec *pspec; 2250s # _ExtendedGDBusPropertyInfo *info; 2250s # GVariant *ret; 2250s # ret = NULL; 2250s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 2250s # g_assert (info != NULL); 2250s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2250s # if (pspec == NULL) 2250s # { 2250s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2250s # } 2250s # else 2250s # { 2250s # g_value_init (&value, pspec->value_type); 2250s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2250s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2250s # g_value_unset (&value); 2250s # } 2250s # return ret; 2250s # } 2250s # 2250s # static gboolean 2250s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 2250s # GDBusConnection *connection G_GNUC_UNUSED, 2250s # const gchar *sender G_GNUC_UNUSED, 2250s # const gchar *object_path G_GNUC_UNUSED, 2250s # const gchar *interface_name G_GNUC_UNUSED, 2250s # const gchar *property_name, 2250s # GVariant *variant, 2250s # GError **error, 2250s # gpointer user_data) 2250s # { 2250s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 2250s # GValue value = G_VALUE_INIT; 2250s # GParamSpec *pspec; 2250s # _ExtendedGDBusPropertyInfo *info; 2250s # gboolean ret; 2250s # ret = FALSE; 2250s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 2250s # g_assert (info != NULL); 2250s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2250s # if (pspec == NULL) 2250s # { 2250s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2250s # } 2250s # else 2250s # { 2250s # if (info->use_gvariant) 2250s # g_value_set_variant (&value, variant); 2250s # else 2250s # g_dbus_gvariant_to_gvalue (variant, &value); 2250s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2250s # g_value_unset (&value); 2250s # ret = TRUE; 2250s # } 2250s # return ret; 2250s # } 2250s # 2250s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 2250s # { 2250s # _org_project_bar_frobnicator_skeleton_handle_method_call, 2250s # _org_project_bar_frobnicator_skeleton_handle_get_property, 2250s # _org_project_bar_frobnicator_skeleton_handle_set_property, 2250s # {NULL} 2250s # }; 2250s # 2250s # static GDBusInterfaceInfo * 2250s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2250s # { 2250s # return org_project_bar_frobnicator_interface_info (); 2250s # } 2250s # 2250s # static GDBusInterfaceVTable * 2250s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2250s # { 2250s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 2250s # } 2250s # 2250s # static GVariant * 2250s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2250s # { 2250s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 2250s # 2250s # GVariantBuilder builder; 2250s # guint n; 2250s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2250s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2250s # #else 2250s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2250s # #endif 2250s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 2250s # goto out; 2250s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 2250s # { 2250s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 2250s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2250s # { 2250s # GVariant *value; 2250s # 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); 2250s # if (value != NULL) 2250s # { 2250s # g_variant_take_ref (value); 2250s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2250s # g_variant_unref (value); 2250s # } 2250s # } 2250s # } 2250s # out: 2250s # return g_variant_builder_end (&builder); 2250s # } 2250s # 2250s # static void 2250s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2250s # { 2250s # } 2250s # 2250s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 2250s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2250s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2250s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 2250s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 2250s # 2250s # #else 2250s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2250s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 2250s # 2250s # #endif 2250s # static void 2250s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 2250s # { 2250s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 2250s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2250s # if (skeleton->priv->changed_properties_idle_source != NULL) 2250s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2250s # g_main_context_unref (skeleton->priv->context); 2250s # g_mutex_clear (&skeleton->priv->lock); 2250s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 2250s # } 2250s # 2250s # static void 2250s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 2250s # { 2250s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2250s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 2250s # #else 2250s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 2250s # #endif 2250s # 2250s # g_mutex_init (&skeleton->priv->lock); 2250s # skeleton->priv->context = g_main_context_ref_thread_default (); 2250s # } 2250s # 2250s # static void 2250s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 2250s # { 2250s # GObjectClass *gobject_class; 2250s # GDBusInterfaceSkeletonClass *skeleton_class; 2250s # 2250s # gobject_class = G_OBJECT_CLASS (klass); 2250s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 2250s # 2250s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2250s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 2250s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 2250s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 2250s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 2250s # 2250s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2250s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 2250s # #endif 2250s # } 2250s # 2250s # static void 2250s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 2250s # { 2250s # } 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_skeleton_new: 2250s # * 2250s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 2250s # * 2250s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 2250s # */ 2250s # OrgProjectBarFrobnicator * 2250s # org_project_bar_frobnicator_skeleton_new (void) 2250s # { 2250s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 2250s # } 2250s # 2250s # /* ------------------------------------------------------------------------ 2250s # * Code for interface com.acme.Coyote 2250s # * ------------------------------------------------------------------------ 2250s # */ 2250s # 2250s # /** 2250s # * SECTION:ComAcmeCoyote 2250s # * @title: ComAcmeCoyote 2250s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 2250s # * 2250s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 2250s # */ 2250s # 2250s # enum 2250s # { 2250s # _COM_ACME_COYOTE_SURPRISED, 2250s # }; 2250s # 2250s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 2250s # 2250s # /* ---- Introspection data for com.acme.Coyote ---- */ 2250s # 2250s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 2250s # { 2250s # { 2250s # -1, 2250s # (gchar *) "Run", 2250s # NULL, 2250s # NULL, 2250s # NULL 2250s # }, 2250s # "handle-run", 2250s # FALSE 2250s # }; 2250s # 2250s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 2250s # { 2250s # { 2250s # -1, 2250s # (gchar *) "Sleep", 2250s # NULL, 2250s # NULL, 2250s # NULL 2250s # }, 2250s # "handle-sleep", 2250s # FALSE 2250s # }; 2250s # 2250s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 2250s # { 2250s # { 2250s # -1, 2250s # (gchar *) "Attack", 2250s # NULL, 2250s # NULL, 2250s # NULL 2250s # }, 2250s # "handle-attack", 2250s # FALSE 2250s # }; 2250s # 2250s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 2250s # { 2250s # &_com_acme_coyote_method_info_run.parent_struct, 2250s # &_com_acme_coyote_method_info_sleep.parent_struct, 2250s # &_com_acme_coyote_method_info_attack.parent_struct, 2250s # NULL 2250s # }; 2250s # 2250s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 2250s # { 2250s # { 2250s # -1, 2250s # (gchar *) "Surprised", 2250s # NULL, 2250s # NULL 2250s # }, 2250s # "surprised" 2250s # }; 2250s # 2250s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 2250s # { 2250s # &_com_acme_coyote_signal_info_surprised.parent_struct, 2250s # NULL 2250s # }; 2250s # 2250s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 2250s # { 2250s # { 2250s # -1, 2250s # (gchar *) "Mood", 2250s # (gchar *) "s", 2250s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 2250s # NULL 2250s # }, 2250s # "mood", 2250s # FALSE, 2250s # TRUE 2250s # }; 2250s # 2250s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 2250s # { 2250s # &_com_acme_coyote_property_info_mood.parent_struct, 2250s # NULL 2250s # }; 2250s # 2250s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 2250s # { 2250s # { 2250s # -1, 2250s # (gchar *) "com.acme.Coyote", 2250s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 2250s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 2250s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 2250s # NULL 2250s # }, 2250s # "com-acme-coyote", 2250s # }; 2250s # 2250s # 2250s # /** 2250s # * com_acme_coyote_interface_info: 2250s # * 2250s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 2250s # * 2250s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2250s # */ 2250s # GDBusInterfaceInfo * 2250s # com_acme_coyote_interface_info (void) 2250s # { 2250s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_override_properties: 2250s # * @klass: The class structure for a #GObject derived class. 2250s # * @property_id_begin: The property id to assign to the first overridden property. 2250s # * 2250s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 2250s # * The properties are overridden in the order they are defined. 2250s # * 2250s # * Returns: The last property id. 2250s # */ 2250s # guint 2250s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 2250s # { 2250s # g_object_class_override_property (klass, property_id_begin++, "mood"); 2250s # return property_id_begin - 1; 2250s # } 2250s # 2250s # 2250s # inline static void 2250s # com_acme_coyote_signal_marshal_surprised ( 2250s # GClosure *closure, 2250s # GValue *return_value, 2250s # unsigned int n_param_values, 2250s # const GValue *param_values, 2250s # void *invocation_hint, 2250s # void *marshal_data) 2250s # { 2250s # g_cclosure_marshal_VOID__VOID (closure, 2250s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2250s # } 2250s # 2250s # inline static void 2250s # com_acme_coyote_method_marshal_run ( 2250s # GClosure *closure, 2250s # GValue *return_value, 2250s # unsigned int n_param_values, 2250s # const GValue *param_values, 2250s # void *invocation_hint, 2250s # void *marshal_data) 2250s # { 2250s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2250s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2250s # } 2250s # 2250s # inline static void 2250s # com_acme_coyote_method_marshal_sleep ( 2250s # GClosure *closure, 2250s # GValue *return_value, 2250s # unsigned int n_param_values, 2250s # const GValue *param_values, 2250s # void *invocation_hint, 2250s # void *marshal_data) 2250s # { 2250s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2250s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2250s # } 2250s # 2250s # inline static void 2250s # com_acme_coyote_method_marshal_attack ( 2250s # GClosure *closure, 2250s # GValue *return_value, 2250s # unsigned int n_param_values, 2250s # const GValue *param_values, 2250s # void *invocation_hint, 2250s # void *marshal_data) 2250s # { 2250s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2250s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2250s # } 2250s # 2250s # 2250s # /** 2250s # * ComAcmeCoyote: 2250s # * 2250s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 2250s # */ 2250s # 2250s # /** 2250s # * ComAcmeCoyoteIface: 2250s # * @parent_iface: The parent interface. 2250s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 2250s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 2250s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 2250s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 2250s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 2250s # * 2250s # * Virtual table for the D-Bus interface com.acme.Coyote. 2250s # */ 2250s # 2250s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 2250s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 2250s # 2250s # static void 2250s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 2250s # { 2250s # /* GObject signals for incoming D-Bus method calls: */ 2250s # /** 2250s # * ComAcmeCoyote::handle-run: 2250s # * @object: A #ComAcmeCoyote. 2250s # * @invocation: A #GDBusMethodInvocation. 2250s # * 2250s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 2250s # * 2250s # * 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. 2250s # * 2250s # * 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. 2250s # */ 2250s # g_signal_new ("handle-run", 2250s # G_TYPE_FROM_INTERFACE (iface), 2250s # G_SIGNAL_RUN_LAST, 2250s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 2250s # g_signal_accumulator_true_handled, 2250s # NULL, 2250s # com_acme_coyote_method_marshal_run, 2250s # G_TYPE_BOOLEAN, 2250s # 1, 2250s # G_TYPE_DBUS_METHOD_INVOCATION); 2250s # 2250s # /** 2250s # * ComAcmeCoyote::handle-sleep: 2250s # * @object: A #ComAcmeCoyote. 2250s # * @invocation: A #GDBusMethodInvocation. 2250s # * 2250s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 2250s # * 2250s # * 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. 2250s # * 2250s # * 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. 2250s # */ 2250s # g_signal_new ("handle-sleep", 2250s # G_TYPE_FROM_INTERFACE (iface), 2250s # G_SIGNAL_RUN_LAST, 2250s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 2250s # g_signal_accumulator_true_handled, 2250s # NULL, 2250s # com_acme_coyote_method_marshal_sleep, 2250s # G_TYPE_BOOLEAN, 2250s # 1, 2250s # G_TYPE_DBUS_METHOD_INVOCATION); 2250s # 2250s # /** 2250s # * ComAcmeCoyote::handle-attack: 2250s # * @object: A #ComAcmeCoyote. 2250s # * @invocation: A #GDBusMethodInvocation. 2250s # * 2250s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 2250s # * 2250s # * 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. 2250s # * 2250s # * 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. 2250s # */ 2250s # g_signal_new ("handle-attack", 2250s # G_TYPE_FROM_INTERFACE (iface), 2250s # G_SIGNAL_RUN_LAST, 2250s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 2250s # g_signal_accumulator_true_handled, 2250s # NULL, 2250s # com_acme_coyote_method_marshal_attack, 2250s # G_TYPE_BOOLEAN, 2250s # 1, 2250s # G_TYPE_DBUS_METHOD_INVOCATION); 2250s # 2250s # /* GObject signals for received D-Bus signals: */ 2250s # /** 2250s # * ComAcmeCoyote::surprised: 2250s # * @object: A #ComAcmeCoyote. 2250s # * 2250s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 2250s # * 2250s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2250s # */ 2250s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 2250s # g_signal_new ("surprised", 2250s # G_TYPE_FROM_INTERFACE (iface), 2250s # G_SIGNAL_RUN_LAST, 2250s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 2250s # NULL, 2250s # NULL, 2250s # com_acme_coyote_signal_marshal_surprised, 2250s # G_TYPE_NONE, 2250s # 0); 2250s # 2250s # /* GObject properties for D-Bus properties: */ 2250s # /** 2250s # * ComAcmeCoyote:mood: 2250s # * 2250s # * Represents the D-Bus property "Mood". 2250s # * 2250s # * 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. 2250s # */ 2250s # g_object_interface_install_property (iface, 2250s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_get_mood: (skip) 2250s # * @object: A #ComAcmeCoyote. 2250s # * 2250s # * Gets the value of the "Mood" D-Bus property. 2250s # * 2250s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 2250s # * 2250s # * 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. 2250s # * 2250s # * 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. 2250s # */ 2250s # const gchar * 2250s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 2250s # { 2250s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 2250s # 2250s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_dup_mood: (skip) 2250s # * @object: A #ComAcmeCoyote. 2250s # * 2250s # * Gets a copy of the "Mood" D-Bus property. 2250s # * 2250s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 2250s # * 2250s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 2250s # */ 2250s # gchar * 2250s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 2250s # { 2250s # gchar *value; 2250s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 2250s # return value; 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_set_mood: (skip) 2250s # * @object: A #ComAcmeCoyote. 2250s # * @value: The value to set. 2250s # * 2250s # * Sets the "Mood" D-Bus property to @value. 2250s # * 2250s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 2250s # */ 2250s # void 2250s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 2250s # { 2250s # g_object_set (G_OBJECT (object), "mood", value, NULL); 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_emit_surprised: 2250s # * @object: A #ComAcmeCoyote. 2250s # * 2250s # * Emits the "Surprised" D-Bus signal. 2250s # */ 2250s # void 2250s # com_acme_coyote_emit_surprised ( 2250s # ComAcmeCoyote *object) 2250s # { 2250s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_call_run: 2250s # * @proxy: A #ComAcmeCoyoteProxy. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2250s # * @user_data: User data to pass to @callback. 2250s # * 2250s # * Asynchronously invokes the Run() D-Bus method on @proxy. 2250s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2250s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 2250s # * 2250s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 2250s # */ 2250s # void 2250s # com_acme_coyote_call_run ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data) 2250s # { 2250s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2250s # "Run", 2250s # g_variant_new ("()"), 2250s # G_DBUS_CALL_FLAGS_NONE, 2250s # -1, 2250s # cancellable, 2250s # callback, 2250s # user_data); 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_call_run_finish: 2250s # * @proxy: A #ComAcmeCoyoteProxy. 2250s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 2250s # * @error: Return location for error or %NULL. 2250s # * 2250s # * Finishes an operation started with com_acme_coyote_call_run(). 2250s # * 2250s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2250s # */ 2250s # gboolean 2250s # com_acme_coyote_call_run_finish ( 2250s # ComAcmeCoyote *proxy, 2250s # GAsyncResult *res, 2250s # GError **error) 2250s # { 2250s # GVariant *_ret; 2250s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2250s # if (_ret == NULL) 2250s # goto _out; 2250s # g_variant_get (_ret, 2250s # "()"); 2250s # g_variant_unref (_ret); 2250s # _out: 2250s # return _ret != NULL; 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_call_run_sync: 2250s # * @proxy: A #ComAcmeCoyoteProxy. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @error: Return location for error or %NULL. 2250s # * 2250s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2250s # * 2250s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 2250s # * 2250s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2250s # */ 2250s # gboolean 2250s # com_acme_coyote_call_run_sync ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GError **error) 2250s # { 2250s # GVariant *_ret; 2250s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2250s # "Run", 2250s # g_variant_new ("()"), 2250s # G_DBUS_CALL_FLAGS_NONE, 2250s # -1, 2250s # cancellable, 2250s # error); 2250s # if (_ret == NULL) 2250s # goto _out; 2250s # g_variant_get (_ret, 2250s # "()"); 2250s # g_variant_unref (_ret); 2250s # _out: 2250s # return _ret != NULL; 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_call_sleep: 2250s # * @proxy: A #ComAcmeCoyoteProxy. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2250s # * @user_data: User data to pass to @callback. 2250s # * 2250s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 2250s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2250s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 2250s # * 2250s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 2250s # */ 2250s # void 2250s # com_acme_coyote_call_sleep ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data) 2250s # { 2250s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2250s # "Sleep", 2250s # g_variant_new ("()"), 2250s # G_DBUS_CALL_FLAGS_NONE, 2250s # -1, 2250s # cancellable, 2250s # callback, 2250s # user_data); 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_call_sleep_finish: 2250s # * @proxy: A #ComAcmeCoyoteProxy. 2250s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 2250s # * @error: Return location for error or %NULL. 2250s # * 2250s # * Finishes an operation started with com_acme_coyote_call_sleep(). 2250s # * 2250s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2250s # */ 2250s # gboolean 2250s # com_acme_coyote_call_sleep_finish ( 2250s # ComAcmeCoyote *proxy, 2250s # GAsyncResult *res, 2250s # GError **error) 2250s # { 2250s # GVariant *_ret; 2250s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2250s # if (_ret == NULL) 2250s # goto _out; 2250s # g_variant_get (_ret, 2250s # "()"); 2250s # g_variant_unref (_ret); 2250s # _out: 2250s # return _ret != NULL; 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_call_sleep_sync: 2250s # * @proxy: A #ComAcmeCoyoteProxy. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @error: Return location for error or %NULL. 2250s # * 2250s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2250s # * 2250s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 2250s # * 2250s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2250s # */ 2250s # gboolean 2250s # com_acme_coyote_call_sleep_sync ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GError **error) 2250s # { 2250s # GVariant *_ret; 2250s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2250s # "Sleep", 2250s # g_variant_new ("()"), 2250s # G_DBUS_CALL_FLAGS_NONE, 2250s # -1, 2250s # cancellable, 2250s # error); 2250s # if (_ret == NULL) 2250s # goto _out; 2250s # g_variant_get (_ret, 2250s # "()"); 2250s # g_variant_unref (_ret); 2250s # _out: 2250s # return _ret != NULL; 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_call_attack: 2250s # * @proxy: A #ComAcmeCoyoteProxy. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2250s # * @user_data: User data to pass to @callback. 2250s # * 2250s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 2250s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2250s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 2250s # * 2250s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 2250s # */ 2250s # void 2250s # com_acme_coyote_call_attack ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data) 2250s # { 2250s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2250s # "Attack", 2250s # g_variant_new ("()"), 2250s # G_DBUS_CALL_FLAGS_NONE, 2250s # -1, 2250s # cancellable, 2250s # callback, 2250s # user_data); 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_call_attack_finish: 2250s # * @proxy: A #ComAcmeCoyoteProxy. 2250s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 2250s # * @error: Return location for error or %NULL. 2250s # * 2250s # * Finishes an operation started with com_acme_coyote_call_attack(). 2250s # * 2250s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2250s # */ 2250s # gboolean 2250s # com_acme_coyote_call_attack_finish ( 2250s # ComAcmeCoyote *proxy, 2250s # GAsyncResult *res, 2250s # GError **error) 2250s # { 2250s # GVariant *_ret; 2250s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2250s # if (_ret == NULL) 2250s # goto _out; 2250s # g_variant_get (_ret, 2250s # "()"); 2250s # g_variant_unref (_ret); 2250s # _out: 2250s # return _ret != NULL; 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_call_attack_sync: 2250s # * @proxy: A #ComAcmeCoyoteProxy. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @error: Return location for error or %NULL. 2250s # * 2250s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2250s # * 2250s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 2250s # * 2250s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2250s # */ 2250s # gboolean 2250s # com_acme_coyote_call_attack_sync ( 2250s # ComAcmeCoyote *proxy, 2250s # GCancellable *cancellable, 2250s # GError **error) 2250s # { 2250s # GVariant *_ret; 2250s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2250s # "Attack", 2250s # g_variant_new ("()"), 2250s # G_DBUS_CALL_FLAGS_NONE, 2250s # -1, 2250s # cancellable, 2250s # error); 2250s # if (_ret == NULL) 2250s # goto _out; 2250s # g_variant_get (_ret, 2250s # "()"); 2250s # g_variant_unref (_ret); 2250s # _out: 2250s # return _ret != NULL; 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_complete_run: 2250s # * @object: A #ComAcmeCoyote. 2250s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2250s # * 2250s # * 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. 2250s # * 2250s # * This method will free @invocation, you cannot use it afterwards. 2250s # */ 2250s # void 2250s # com_acme_coyote_complete_run ( 2250s # ComAcmeCoyote *object G_GNUC_UNUSED, 2250s # GDBusMethodInvocation *invocation) 2250s # { 2250s # g_dbus_method_invocation_return_value (invocation, 2250s # g_variant_new ("()")); 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_complete_sleep: 2250s # * @object: A #ComAcmeCoyote. 2250s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2250s # * 2250s # * 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. 2250s # * 2250s # * This method will free @invocation, you cannot use it afterwards. 2250s # */ 2250s # void 2250s # com_acme_coyote_complete_sleep ( 2250s # ComAcmeCoyote *object G_GNUC_UNUSED, 2250s # GDBusMethodInvocation *invocation) 2250s # { 2250s # g_dbus_method_invocation_return_value (invocation, 2250s # g_variant_new ("()")); 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_complete_attack: 2250s # * @object: A #ComAcmeCoyote. 2250s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2250s # * 2250s # * 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. 2250s # * 2250s # * This method will free @invocation, you cannot use it afterwards. 2250s # */ 2250s # void 2250s # com_acme_coyote_complete_attack ( 2250s # ComAcmeCoyote *object G_GNUC_UNUSED, 2250s # GDBusMethodInvocation *invocation) 2250s # { 2250s # g_dbus_method_invocation_return_value (invocation, 2250s # g_variant_new ("()")); 2250s # } 2250s # 2250s # /* ------------------------------------------------------------------------ */ 2250s # 2250s # /** 2250s # * ComAcmeCoyoteProxy: 2250s # * 2250s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 2250s # */ 2250s # 2250s # /** 2250s # * ComAcmeCoyoteProxyClass: 2250s # * @parent_class: The parent class. 2250s # * 2250s # * Class structure for #ComAcmeCoyoteProxy. 2250s # */ 2250s # 2250s # struct _ComAcmeCoyoteProxyPrivate 2250s # { 2250s # GData *qdata; 2250s # }; 2250s # 2250s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 2250s # 2250s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2250s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 2250s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 2250s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 2250s # 2250s # #else 2250s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 2250s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 2250s # 2250s # #endif 2250s # static void 2250s # com_acme_coyote_proxy_finalize (GObject *object) 2250s # { 2250s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 2250s # g_datalist_clear (&proxy->priv->qdata); 2250s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 2250s # } 2250s # 2250s # static void 2250s # com_acme_coyote_proxy_get_property (GObject *object, 2250s # guint prop_id, 2250s # GValue *value, 2250s # GParamSpec *pspec G_GNUC_UNUSED) 2250s # { 2250s # const _ExtendedGDBusPropertyInfo *info; 2250s # GVariant *variant; 2250s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2250s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 2250s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 2250s # if (info->use_gvariant) 2250s # { 2250s # g_value_set_variant (value, variant); 2250s # } 2250s # else 2250s # { 2250s # if (variant != NULL) 2250s # g_dbus_gvariant_to_gvalue (variant, value); 2250s # } 2250s # if (variant != NULL) 2250s # g_variant_unref (variant); 2250s # } 2250s # 2250s # static void 2250s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 2250s # GAsyncResult *res, 2250s # gpointer user_data) 2250s # { 2250s # const _ExtendedGDBusPropertyInfo *info = user_data; 2250s # GError *error; 2250s # GVariant *_ret; 2250s # error = NULL; 2250s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 2250s # if (!_ret) 2250s # { 2250s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 2250s # info->parent_struct.name, 2250s # error->message, g_quark_to_string (error->domain), error->code); 2250s # g_error_free (error); 2250s # } 2250s # else 2250s # { 2250s # g_variant_unref (_ret); 2250s # } 2250s # } 2250s # 2250s # static void 2250s # com_acme_coyote_proxy_set_property (GObject *object, 2250s # guint prop_id, 2250s # const GValue *value, 2250s # GParamSpec *pspec G_GNUC_UNUSED) 2250s # { 2250s # const _ExtendedGDBusPropertyInfo *info; 2250s # GVariant *variant; 2250s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2250s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 2250s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 2250s # g_dbus_proxy_call (G_DBUS_PROXY (object), 2250s # "org.freedesktop.DBus.Properties.Set", 2250s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 2250s # G_DBUS_CALL_FLAGS_NONE, 2250s # -1, 2250s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 2250s # g_variant_unref (variant); 2250s # } 2250s # 2250s # static void 2250s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 2250s # const gchar *sender_name G_GNUC_UNUSED, 2250s # const gchar *signal_name, 2250s # GVariant *parameters) 2250s # { 2250s # _ExtendedGDBusSignalInfo *info; 2250s # GVariantIter iter; 2250s # GVariant *child; 2250s # GValue *paramv; 2250s # gsize num_params; 2250s # gsize n; 2250s # guint signal_id; 2250s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 2250s # if (info == NULL) 2250s # return; 2250s # num_params = g_variant_n_children (parameters); 2250s # paramv = g_new0 (GValue, num_params + 1); 2250s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 2250s # g_value_set_object (¶mv[0], proxy); 2250s # g_variant_iter_init (&iter, parameters); 2250s # n = 1; 2250s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2250s # { 2250s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2250s # if (arg_info->use_gvariant) 2250s # { 2250s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2250s # g_value_set_variant (¶mv[n], child); 2250s # n++; 2250s # } 2250s # else 2250s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2250s # g_variant_unref (child); 2250s # } 2250s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 2250s # g_signal_emitv (paramv, signal_id, 0, NULL); 2250s # for (n = 0; n < num_params + 1; n++) 2250s # g_value_unset (¶mv[n]); 2250s # g_free (paramv); 2250s # } 2250s # 2250s # static void 2250s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 2250s # GVariant *changed_properties, 2250s # const gchar *const *invalidated_properties) 2250s # { 2250s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 2250s # guint n; 2250s # const gchar *key; 2250s # GVariantIter *iter; 2250s # _ExtendedGDBusPropertyInfo *info; 2250s # g_variant_get (changed_properties, "a{sv}", &iter); 2250s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2250s # { 2250s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 2250s # g_datalist_remove_data (&proxy->priv->qdata, key); 2250s # if (info != NULL) 2250s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2250s # } 2250s # g_variant_iter_free (iter); 2250s # for (n = 0; invalidated_properties[n] != NULL; n++) 2250s # { 2250s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 2250s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2250s # if (info != NULL) 2250s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2250s # } 2250s # } 2250s # 2250s # static const gchar * 2250s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 2250s # { 2250s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 2250s # GVariant *variant; 2250s # const gchar *value = NULL; 2250s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 2250s # if (variant != NULL) 2250s # { 2250s # value = g_variant_get_string (variant, NULL); 2250s # g_variant_unref (variant); 2250s # } 2250s # return value; 2250s # } 2250s # 2250s # static void 2250s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 2250s # { 2250s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2250s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 2250s # #else 2250s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 2250s # #endif 2250s # 2250s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 2250s # } 2250s # 2250s # static void 2250s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 2250s # { 2250s # GObjectClass *gobject_class; 2250s # GDBusProxyClass *proxy_class; 2250s # 2250s # gobject_class = G_OBJECT_CLASS (klass); 2250s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 2250s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 2250s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 2250s # 2250s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2250s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 2250s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 2250s # 2250s # com_acme_coyote_override_properties (gobject_class, 1); 2250s # 2250s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2250s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 2250s # #endif 2250s # } 2250s # 2250s # static void 2250s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 2250s # { 2250s # iface->get_mood = com_acme_coyote_proxy_get_mood; 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_proxy_new: 2250s # * @connection: A #GDBusConnection. 2250s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2250s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2250s # * @object_path: An object path. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2250s # * @user_data: User data to pass to @callback. 2250s # * 2250s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 2250s # * 2250s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2250s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 2250s # * 2250s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 2250s # */ 2250s # void 2250s # com_acme_coyote_proxy_new ( 2250s # GDBusConnection *connection, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data) 2250s # { 2250s # 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); 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_proxy_new_finish: 2250s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 2250s # * @error: Return location for error or %NULL 2250s # * 2250s # * Finishes an operation started with com_acme_coyote_proxy_new(). 2250s # * 2250s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 2250s # */ 2250s # ComAcmeCoyote * 2250s # com_acme_coyote_proxy_new_finish ( 2250s # GAsyncResult *res, 2250s # GError **error) 2250s # { 2250s # GObject *ret; 2250s # GObject *source_object; 2250s # source_object = g_async_result_get_source_object (res); 2250s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2250s # g_object_unref (source_object); 2250s # if (ret != NULL) 2250s # return COM_ACME_COYOTE (ret); 2250s # else 2250s # return NULL; 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_proxy_new_sync: 2250s # * @connection: A #GDBusConnection. 2250s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2250s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2250s # * @object_path: An object path. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @error: Return location for error or %NULL 2250s # * 2250s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 2250s # * 2250s # * The calling thread is blocked until a reply is received. 2250s # * 2250s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 2250s # * 2250s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 2250s # */ 2250s # ComAcmeCoyote * 2250s # com_acme_coyote_proxy_new_sync ( 2250s # GDBusConnection *connection, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GError **error) 2250s # { 2250s # GInitable *ret; 2250s # 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); 2250s # if (ret != NULL) 2250s # return COM_ACME_COYOTE (ret); 2250s # else 2250s # return NULL; 2250s # } 2250s # 2250s # 2250s # /** 2250s # * com_acme_coyote_proxy_new_for_bus: 2250s # * @bus_type: A #GBusType. 2250s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2250s # * @name: A bus name (well-known or unique). 2250s # * @object_path: An object path. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2250s # * @user_data: User data to pass to @callback. 2250s # * 2250s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2250s # * 2250s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2250s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 2250s # * 2250s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2250s # */ 2250s # void 2250s # com_acme_coyote_proxy_new_for_bus ( 2250s # GBusType bus_type, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data) 2250s # { 2250s # 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); 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_proxy_new_for_bus_finish: 2250s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 2250s # * @error: Return location for error or %NULL 2250s # * 2250s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 2250s # * 2250s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 2250s # */ 2250s # ComAcmeCoyote * 2250s # com_acme_coyote_proxy_new_for_bus_finish ( 2250s # GAsyncResult *res, 2250s # GError **error) 2250s # { 2250s # GObject *ret; 2250s # GObject *source_object; 2250s # source_object = g_async_result_get_source_object (res); 2250s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2250s # g_object_unref (source_object); 2250s # if (ret != NULL) 2250s # return COM_ACME_COYOTE (ret); 2250s # else 2250s # return NULL; 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_proxy_new_for_bus_sync: 2250s # * @bus_type: A #GBusType. 2250s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2250s # * @name: A bus name (well-known or unique). 2250s # * @object_path: An object path. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @error: Return location for error or %NULL 2250s # * 2250s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2250s # * 2250s # * The calling thread is blocked until a reply is received. 2250s # * 2250s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 2250s # * 2250s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 2250s # */ 2250s # ComAcmeCoyote * 2250s # com_acme_coyote_proxy_new_for_bus_sync ( 2250s # GBusType bus_type, 2250s # GDBusProxyFlags flags, 2250s # const gchar *name, 2250s # const gchar *object_path, 2250s # GCancellable *cancellable, 2250s # GError **error) 2250s # { 2250s # GInitable *ret; 2250s # 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); 2250s # if (ret != NULL) 2250s # return COM_ACME_COYOTE (ret); 2250s # else 2250s # return NULL; 2250s # } 2250s # 2250s # 2250s # /* ------------------------------------------------------------------------ */ 2250s # 2250s # /** 2250s # * ComAcmeCoyoteSkeleton: 2250s # * 2250s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 2250s # */ 2250s # 2250s # /** 2250s # * ComAcmeCoyoteSkeletonClass: 2250s # * @parent_class: The parent class. 2250s # * 2250s # * Class structure for #ComAcmeCoyoteSkeleton. 2250s # */ 2250s # 2250s # struct _ComAcmeCoyoteSkeletonPrivate 2250s # { 2250s # GValue *properties; 2250s # GList *changed_properties; 2250s # GSource *changed_properties_idle_source; 2250s # GMainContext *context; 2250s # GMutex lock; 2250s # }; 2250s # 2250s # static void 2250s # _com_acme_coyote_skeleton_handle_method_call ( 2250s # GDBusConnection *connection G_GNUC_UNUSED, 2250s # const gchar *sender G_GNUC_UNUSED, 2250s # const gchar *object_path G_GNUC_UNUSED, 2250s # const gchar *interface_name, 2250s # const gchar *method_name, 2250s # GVariant *parameters, 2250s # GDBusMethodInvocation *invocation, 2250s # gpointer user_data) 2250s # { 2250s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 2250s # _ExtendedGDBusMethodInfo *info; 2250s # GVariantIter iter; 2250s # GVariant *child; 2250s # GValue *paramv; 2250s # gsize num_params; 2250s # guint num_extra; 2250s # gsize n; 2250s # guint signal_id; 2250s # GValue return_value = G_VALUE_INIT; 2250s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2250s # g_assert (info != NULL); 2250s # num_params = g_variant_n_children (parameters); 2250s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2250s # n = 0; 2250s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 2250s # g_value_set_object (¶mv[n++], skeleton); 2250s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2250s # g_value_set_object (¶mv[n++], invocation); 2250s # if (info->pass_fdlist) 2250s # { 2250s # #ifdef G_OS_UNIX 2250s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2250s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2250s # #else 2250s # g_assert_not_reached (); 2250s # #endif 2250s # } 2250s # g_variant_iter_init (&iter, parameters); 2250s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2250s # { 2250s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2250s # if (arg_info->use_gvariant) 2250s # { 2250s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2250s # g_value_set_variant (¶mv[n], child); 2250s # n++; 2250s # } 2250s # else 2250s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2250s # g_variant_unref (child); 2250s # } 2250s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 2250s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2250s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2250s # if (!g_value_get_boolean (&return_value)) 2250s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2250s # g_value_unset (&return_value); 2250s # for (n = 0; n < num_params + num_extra; n++) 2250s # g_value_unset (¶mv[n]); 2250s # g_free (paramv); 2250s # } 2250s # 2250s # static GVariant * 2250s # _com_acme_coyote_skeleton_handle_get_property ( 2250s # GDBusConnection *connection G_GNUC_UNUSED, 2250s # const gchar *sender G_GNUC_UNUSED, 2250s # const gchar *object_path G_GNUC_UNUSED, 2250s # const gchar *interface_name G_GNUC_UNUSED, 2250s # const gchar *property_name, 2250s # GError **error, 2250s # gpointer user_data) 2250s # { 2250s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 2250s # GValue value = G_VALUE_INIT; 2250s # GParamSpec *pspec; 2250s # _ExtendedGDBusPropertyInfo *info; 2250s # GVariant *ret; 2250s # ret = NULL; 2250s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 2250s # g_assert (info != NULL); 2250s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2250s # if (pspec == NULL) 2250s # { 2250s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2250s # } 2250s # else 2250s # { 2250s # g_value_init (&value, pspec->value_type); 2250s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2250s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2250s # g_value_unset (&value); 2250s # } 2250s # return ret; 2250s # } 2250s # 2250s # static gboolean 2250s # _com_acme_coyote_skeleton_handle_set_property ( 2250s # GDBusConnection *connection G_GNUC_UNUSED, 2250s # const gchar *sender G_GNUC_UNUSED, 2250s # const gchar *object_path G_GNUC_UNUSED, 2250s # const gchar *interface_name G_GNUC_UNUSED, 2250s # const gchar *property_name, 2250s # GVariant *variant, 2250s # GError **error, 2250s # gpointer user_data) 2250s # { 2250s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 2250s # GValue value = G_VALUE_INIT; 2250s # GParamSpec *pspec; 2250s # _ExtendedGDBusPropertyInfo *info; 2250s # gboolean ret; 2250s # ret = FALSE; 2250s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 2250s # g_assert (info != NULL); 2250s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2250s # if (pspec == NULL) 2250s # { 2250s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2250s # } 2250s # else 2250s # { 2250s # if (info->use_gvariant) 2250s # g_value_set_variant (&value, variant); 2250s # else 2250s # g_dbus_gvariant_to_gvalue (variant, &value); 2250s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2250s # g_value_unset (&value); 2250s # ret = TRUE; 2250s # } 2250s # return ret; 2250s # } 2250s # 2250s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 2250s # { 2250s # _com_acme_coyote_skeleton_handle_method_call, 2250s # _com_acme_coyote_skeleton_handle_get_property, 2250s # _com_acme_coyote_skeleton_handle_set_property, 2250s # {NULL} 2250s # }; 2250s # 2250s # static GDBusInterfaceInfo * 2250s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2250s # { 2250s # return com_acme_coyote_interface_info (); 2250s # } 2250s # 2250s # static GDBusInterfaceVTable * 2250s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2250s # { 2250s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 2250s # } 2250s # 2250s # static GVariant * 2250s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2250s # { 2250s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 2250s # 2250s # GVariantBuilder builder; 2250s # guint n; 2250s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2250s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2250s # #else 2250s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2250s # #endif 2250s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 2250s # goto out; 2250s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 2250s # { 2250s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 2250s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2250s # { 2250s # GVariant *value; 2250s # 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); 2250s # if (value != NULL) 2250s # { 2250s # g_variant_take_ref (value); 2250s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2250s # g_variant_unref (value); 2250s # } 2250s # } 2250s # } 2250s # out: 2250s # return g_variant_builder_end (&builder); 2250s # } 2250s # 2250s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 2250s # 2250s # static void 2250s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 2250s # { 2250s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 2250s # gboolean emit_changed = FALSE; 2250s # 2250s # g_mutex_lock (&skeleton->priv->lock); 2250s # if (skeleton->priv->changed_properties_idle_source != NULL) 2250s # { 2250s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2250s # skeleton->priv->changed_properties_idle_source = NULL; 2250s # emit_changed = TRUE; 2250s # } 2250s # g_mutex_unlock (&skeleton->priv->lock); 2250s # 2250s # if (emit_changed) 2250s # _com_acme_coyote_emit_changed (skeleton); 2250s # } 2250s # 2250s # static void 2250s # _com_acme_coyote_on_signal_surprised ( 2250s # ComAcmeCoyote *object) 2250s # { 2250s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 2250s # 2250s # GList *connections, *l; 2250s # GVariant *signal_variant; 2250s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2250s # 2250s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2250s # for (l = connections; l != NULL; l = l->next) 2250s # { 2250s # GDBusConnection *connection = l->data; 2250s # g_dbus_connection_emit_signal (connection, 2250s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 2250s # signal_variant, NULL); 2250s # } 2250s # g_variant_unref (signal_variant); 2250s # g_list_free_full (connections, g_object_unref); 2250s # } 2250s # 2250s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 2250s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2250s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2250s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 2250s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 2250s # 2250s # #else 2250s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2250s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 2250s # 2250s # #endif 2250s # static void 2250s # com_acme_coyote_skeleton_finalize (GObject *object) 2250s # { 2250s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 2250s # guint n; 2250s # for (n = 0; n < 1; n++) 2250s # g_value_unset (&skeleton->priv->properties[n]); 2250s # g_free (skeleton->priv->properties); 2250s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2250s # if (skeleton->priv->changed_properties_idle_source != NULL) 2250s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2250s # g_main_context_unref (skeleton->priv->context); 2250s # g_mutex_clear (&skeleton->priv->lock); 2250s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 2250s # } 2250s # 2250s # static void 2250s # com_acme_coyote_skeleton_get_property (GObject *object, 2250s # guint prop_id, 2250s # GValue *value, 2250s # GParamSpec *pspec G_GNUC_UNUSED) 2250s # { 2250s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 2250s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2250s # g_mutex_lock (&skeleton->priv->lock); 2250s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 2250s # g_mutex_unlock (&skeleton->priv->lock); 2250s # } 2250s # 2250s # static gboolean 2250s # _com_acme_coyote_emit_changed (gpointer user_data) 2250s # { 2250s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 2250s # GList *l; 2250s # GVariantBuilder builder; 2250s # GVariantBuilder invalidated_builder; 2250s # guint num_changes; 2250s # 2250s # g_mutex_lock (&skeleton->priv->lock); 2250s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2250s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2250s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 2250s # #else 2250s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 2250s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 2250s # #endif 2250s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 2250s # { 2250s # ChangedProperty *cp = l->data; 2250s # GVariant *variant; 2250s # const GValue *cur_value; 2250s # 2250s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 2250s # if (!_g_value_equal (cur_value, &cp->orig_value)) 2250s # { 2250s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 2250s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 2250s # g_variant_unref (variant); 2250s # num_changes++; 2250s # } 2250s # } 2250s # if (num_changes > 0) 2250s # { 2250s # GList *connections, *ll; 2250s # GVariant *signal_variant; 2250s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 2250s # &builder, &invalidated_builder)); 2250s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2250s # for (ll = connections; ll != NULL; ll = ll->next) 2250s # { 2250s # GDBusConnection *connection = ll->data; 2250s # 2250s # g_dbus_connection_emit_signal (connection, 2250s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 2250s # "org.freedesktop.DBus.Properties", 2250s # "PropertiesChanged", 2250s # signal_variant, 2250s # NULL); 2250s # } 2250s # g_variant_unref (signal_variant); 2250s # g_list_free_full (connections, g_object_unref); 2250s # } 2250s # else 2250s # { 2250s # g_variant_builder_clear (&builder); 2250s # g_variant_builder_clear (&invalidated_builder); 2250s # } 2250s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2250s # skeleton->priv->changed_properties = NULL; 2250s # skeleton->priv->changed_properties_idle_source = NULL; 2250s # g_mutex_unlock (&skeleton->priv->lock); 2250s # return FALSE; 2250s # } 2250s # 2250s # static void 2250s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 2250s # { 2250s # ChangedProperty *cp; 2250s # GList *l; 2250s # cp = NULL; 2250s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 2250s # { 2250s # ChangedProperty *i_cp = l->data; 2250s # if (i_cp->info == info) 2250s # { 2250s # cp = i_cp; 2250s # break; 2250s # } 2250s # } 2250s # if (cp == NULL) 2250s # { 2250s # cp = g_new0 (ChangedProperty, 1); 2250s # cp->prop_id = prop_id; 2250s # cp->info = info; 2250s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 2250s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 2250s # g_value_copy (orig_value, &cp->orig_value); 2250s # } 2250s # } 2250s # 2250s # static void 2250s # com_acme_coyote_skeleton_notify (GObject *object, 2250s # GParamSpec *pspec G_GNUC_UNUSED) 2250s # { 2250s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 2250s # g_mutex_lock (&skeleton->priv->lock); 2250s # if (skeleton->priv->changed_properties != NULL && 2250s # skeleton->priv->changed_properties_idle_source == NULL) 2250s # { 2250s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 2250s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 2250s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 2250s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 2250s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 2250s # g_source_unref (skeleton->priv->changed_properties_idle_source); 2250s # } 2250s # g_mutex_unlock (&skeleton->priv->lock); 2250s # } 2250s # 2250s # static void 2250s # com_acme_coyote_skeleton_set_property (GObject *object, 2250s # guint prop_id, 2250s # const GValue *value, 2250s # GParamSpec *pspec) 2250s # { 2250s # const _ExtendedGDBusPropertyInfo *info; 2250s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 2250s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2250s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 2250s # g_mutex_lock (&skeleton->priv->lock); 2250s # g_object_freeze_notify (object); 2250s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 2250s # { 2250s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 2250s # info->emits_changed_signal) 2250s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 2250s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 2250s # g_object_notify_by_pspec (object, pspec); 2250s # } 2250s # g_mutex_unlock (&skeleton->priv->lock); 2250s # g_object_thaw_notify (object); 2250s # } 2250s # 2250s # static void 2250s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 2250s # { 2250s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2250s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 2250s # #else 2250s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 2250s # #endif 2250s # 2250s # g_mutex_init (&skeleton->priv->lock); 2250s # skeleton->priv->context = g_main_context_ref_thread_default (); 2250s # skeleton->priv->properties = g_new0 (GValue, 1); 2250s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 2250s # } 2250s # 2250s # static const gchar * 2250s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 2250s # { 2250s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 2250s # const gchar *value; 2250s # g_mutex_lock (&skeleton->priv->lock); 2250s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 2250s # g_mutex_unlock (&skeleton->priv->lock); 2250s # return value; 2250s # } 2250s # 2250s # static void 2250s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 2250s # { 2250s # GObjectClass *gobject_class; 2250s # GDBusInterfaceSkeletonClass *skeleton_class; 2250s # 2250s # gobject_class = G_OBJECT_CLASS (klass); 2250s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 2250s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 2250s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 2250s # gobject_class->notify = com_acme_coyote_skeleton_notify; 2250s # 2250s # 2250s # com_acme_coyote_override_properties (gobject_class, 1); 2250s # 2250s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2250s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 2250s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 2250s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 2250s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 2250s # 2250s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2250s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 2250s # #endif 2250s # } 2250s # 2250s # static void 2250s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 2250s # { 2250s # iface->surprised = _com_acme_coyote_on_signal_surprised; 2250s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 2250s # } 2250s # 2250s # /** 2250s # * com_acme_coyote_skeleton_new: 2250s # * 2250s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 2250s # * 2250s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 2250s # */ 2250s # ComAcmeCoyote * 2250s # com_acme_coyote_skeleton_new (void) 2250s # { 2250s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 2250s # } 2250s # Error: 2250s # 2250s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpnov6idu8/tmpksv4covj2.xml', '/tmp/tmpnov6idu8/tmpsv_fc6ww1.xml', '--output', '-', '--body'] 2250s # Return code: 0 2250s # Output: 2250s # /* 2250s # * This file is generated by gdbus-codegen, do not modify it. 2250s # * 2250s # * The license of this code is the same as for the D-Bus interface description 2250s # * it was derived from. Note that it links to GLib, so must comply with the 2250s # * LGPL linking clauses. 2250s # */ 2250s # 2250s # #ifdef HAVE_CONFIG_H 2250s # # include "config.h" 2250s # #endif 2250s # 2250s # #include 2250s # #ifdef G_OS_UNIX 2250s # # include 2250s # #endif 2250s # 2250s # #ifdef G_ENABLE_DEBUG 2250s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 2250s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 2250s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 2250s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 2250s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 2250s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 2250s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 2250s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 2250s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 2250s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 2250s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 2250s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 2250s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 2250s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 2250s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 2250s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 2250s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 2250s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 2250s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 2250s # #else /* !G_ENABLE_DEBUG */ 2250s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 2250s # * Do not access GValues directly in your code. Instead, use the 2250s # * g_value_get_*() functions 2250s # */ 2250s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 2250s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 2250s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 2250s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 2250s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 2250s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 2250s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 2250s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 2250s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 2250s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 2250s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 2250s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 2250s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 2250s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 2250s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 2250s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 2250s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 2250s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 2250s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 2250s # #endif /* !G_ENABLE_DEBUG */ 2250s # 2250s # typedef struct 2250s # { 2250s # GDBusArgInfo parent_struct; 2250s # gboolean use_gvariant; 2250s # } _ExtendedGDBusArgInfo; 2250s # 2250s # typedef struct 2250s # { 2250s # GDBusMethodInfo parent_struct; 2250s # const gchar *signal_name; 2250s # gboolean pass_fdlist; 2250s # } _ExtendedGDBusMethodInfo; 2250s # 2250s # typedef struct 2250s # { 2250s # GDBusSignalInfo parent_struct; 2250s # const gchar *signal_name; 2250s # } _ExtendedGDBusSignalInfo; 2250s # 2250s # typedef struct 2250s # { 2250s # GDBusPropertyInfo parent_struct; 2250s # const gchar *hyphen_name; 2250s # guint use_gvariant : 1; 2250s # guint emits_changed_signal : 1; 2250s # } _ExtendedGDBusPropertyInfo; 2250s # 2250s # typedef struct 2250s # { 2250s # GDBusInterfaceInfo parent_struct; 2250s # const gchar *hyphen_name; 2250s # } _ExtendedGDBusInterfaceInfo; 2250s # 2250s # typedef struct 2250s # { 2250s # const _ExtendedGDBusPropertyInfo *info; 2250s # guint prop_id; 2250s # GValue orig_value; /* the value before the change */ 2250s # } ChangedProperty; 2250s # 2250s # static void 2250s # _changed_property_free (ChangedProperty *data) 2250s # { 2250s # g_value_unset (&data->orig_value); 2250s # g_free (data); 2250s # } 2250s # 2250s # static gboolean 2250s # _g_strv_equal0 (gchar **a, gchar **b) 2250s # { 2250s # gboolean ret = FALSE; 2250s # guint n; 2250s # if (a == NULL && b == NULL) 2250s # { 2250s # ret = TRUE; 2250s # goto out; 2250s # } 2250s # if (a == NULL || b == NULL) 2250s # goto out; 2250s # if (g_strv_length (a) != g_strv_length (b)) 2250s # goto out; 2250s # for (n = 0; a[n] != NULL; n++) 2250s # if (g_strcmp0 (a[n], b[n]) != 0) 2250s # goto out; 2250s # ret = TRUE; 2250s # out: 2250s # return ret; 2250s # } 2250s # 2250s # static gboolean 2250s # _g_variant_equal0 (GVariant *a, GVariant *b) 2250s # { 2250s # gboolean ret = FALSE; 2250s # if (a == NULL && b == NULL) 2250s # { 2250s # ret = TRUE; 2250s # goto out; 2250s # } 2250s # if (a == NULL || b == NULL) 2250s # goto out; 2250s # ret = g_variant_equal (a, b); 2250s # out: 2250s # return ret; 2250s # } 2250s # 2250s # G_GNUC_UNUSED static gboolean 2250s # _g_value_equal (const GValue *a, const GValue *b) 2250s # { 2250s # gboolean ret = FALSE; 2250s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 2250s # switch (G_VALUE_TYPE (a)) 2250s # { 2250s # case G_TYPE_BOOLEAN: 2250s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 2250s # break; 2250s # case G_TYPE_UCHAR: 2250s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 2250s # break; 2250s # case G_TYPE_INT: 2250s # ret = (g_value_get_int (a) == g_value_get_int (b)); 2250s # break; 2250s # case G_TYPE_UINT: 2250s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 2250s # break; 2250s # case G_TYPE_INT64: 2250s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 2250s # break; 2250s # case G_TYPE_UINT64: 2250s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 2250s # break; 2250s # case G_TYPE_DOUBLE: 2250s # { 2250s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 2250s # gdouble da = g_value_get_double (a); 2250s # gdouble db = g_value_get_double (b); 2250s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 2250s # } 2250s # break; 2250s # case G_TYPE_STRING: 2250s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 2250s # break; 2250s # case G_TYPE_VARIANT: 2250s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 2250s # break; 2250s # default: 2250s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 2250s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 2250s # else 2250s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 2250s # break; 2250s # } 2250s # return ret; 2250s # } 2250s # 2250s # static void 2250s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 2250s # GClosure *closure, 2250s # GValue *return_value, 2250s # unsigned int n_param_values, 2250s # const GValue *param_values, 2250s # void *invocation_hint G_GNUC_UNUSED, 2250s # void *marshal_data) 2250s # { 2250s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 2250s # (void *data1, 2250s # GDBusMethodInvocation *arg_method_invocation, 2250s # void *data2); 2250s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 2250s # GCClosure *cc = (GCClosure*) closure; 2250s # void *data1, *data2; 2250s # gboolean v_return; 2250s # 2250s # g_return_if_fail (return_value != NULL); 2250s # g_return_if_fail (n_param_values == 2); 2250s # 2250s # if (G_CCLOSURE_SWAP_DATA (closure)) 2250s # { 2250s # data1 = closure->data; 2250s # data2 = g_value_peek_pointer (param_values + 0); 2250s # } 2250s # else 2250s # { 2250s # data1 = g_value_peek_pointer (param_values + 0); 2250s # data2 = closure->data; 2250s # } 2250s # 2250s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 2250s # (marshal_data ? marshal_data : cc->callback); 2250s # 2250s # v_return = 2250s # callback (data1, 2250s # g_marshal_value_peek_object (param_values + 1), 2250s # data2); 2250s # 2250s # g_value_set_boolean (return_value, v_return); 2250s # } 2250s # 2250s # /* ------------------------------------------------------------------------ 2250s # * Code for interface org.project.Bar.Frobnicator 2250s # * ------------------------------------------------------------------------ 2250s # */ 2250s # 2250s # /** 2250s # * SECTION:OrgProjectBarFrobnicator 2250s # * @title: OrgProjectBarFrobnicator 2250s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 2250s # * 2250s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 2250s # */ 2250s # 2250s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 2250s # 2250s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 2250s # { 2250s # { 2250s # -1, 2250s # (gchar *) "RandomMethod", 2250s # NULL, 2250s # NULL, 2250s # NULL 2250s # }, 2250s # "handle-random-method", 2250s # FALSE 2250s # }; 2250s # 2250s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 2250s # { 2250s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 2250s # NULL 2250s # }; 2250s # 2250s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 2250s # { 2250s # { 2250s # -1, 2250s # (gchar *) "org.project.Bar.Frobnicator", 2250s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 2250s # NULL, 2250s # NULL, 2250s # NULL 2250s # }, 2250s # "org-project-bar-frobnicator", 2250s # }; 2250s # 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_interface_info: 2250s # * 2250s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 2250s # * 2250s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2250s # */ 2250s # GDBusInterfaceInfo * 2250s # org_project_bar_frobnicator_interface_info (void) 2250s # { 2250s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 2250s # } 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_override_properties: 2250s # * @klass: The class structure for a #GObject derived class. 2250s # * @property_id_begin: The property id to assign to the first overridden property. 2250s # * 2250s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 2250s # * The properties are overridden in the order they are defined. 2250s # * 2250s # * Returns: The last property id. 2250s # */ 2250s # guint 2250s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 2250s # { 2250s # return property_id_begin - 1; 2250s # } 2250s # 2250s # 2250s # inline static void 2250s # org_project_bar_frobnicator_method_marshal_random_method ( 2250s # GClosure *closure, 2250s # GValue *return_value, 2250s # unsigned int n_param_values, 2250s # const GValue *param_values, 2250s # void *invocation_hint, 2250s # void *marshal_data) 2250s # { 2250s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2250s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2250s # } 2250s # 2250s # 2250s # /** 2250s # * OrgProjectBarFrobnicator: 2250s # * 2250s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 2250s # */ 2250s # 2250s # /** 2250s # * OrgProjectBarFrobnicatorIface: 2250s # * @parent_iface: The parent interface. 2250s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 2250s # * 2250s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 2250s # */ 2250s # 2250s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 2250s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 2250s # 2250s # static void 2250s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 2250s # { 2250s # /* GObject signals for incoming D-Bus method calls: */ 2250s # /** 2250s # * OrgProjectBarFrobnicator::handle-random-method: 2250s # * @object: A #OrgProjectBarFrobnicator. 2250s # * @invocation: A #GDBusMethodInvocation. 2250s # * 2250s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 2250s # * 2250s # * 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. 2250s # * 2250s # * 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. 2250s # */ 2250s # g_signal_new ("handle-random-method", 2250s # G_TYPE_FROM_INTERFACE (iface), 2250s # G_SIGNAL_RUN_LAST, 2250s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 2250s # g_signal_accumulator_true_handled, 2250s # NULL, 2250s # org_project_bar_frobnicator_method_marshal_random_method, 2250s # G_TYPE_BOOLEAN, 2250s # 1, 2250s # G_TYPE_DBUS_METHOD_INVOCATION); 2250s # 2250s # } 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_call_random_method: 2250s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2250s # * @user_data: User data to pass to @callback. 2250s # * 2250s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 2250s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2250s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 2250s # * 2250s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 2250s # */ 2250s # void 2250s # org_project_bar_frobnicator_call_random_method ( 2250s # OrgProjectBarFrobnicator *proxy, 2250s # GCancellable *cancellable, 2250s # GAsyncReadyCallback callback, 2250s # gpointer user_data) 2250s # { 2250s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2250s # "RandomMethod", 2250s # g_variant_new ("()"), 2250s # G_DBUS_CALL_FLAGS_NONE, 2250s # -1, 2250s # cancellable, 2250s # callback, 2250s # user_data); 2250s # } 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_call_random_method_finish: 2250s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 2250s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 2250s # * @error: Return location for error or %NULL. 2250s # * 2250s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 2250s # * 2250s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2250s # */ 2250s # gboolean 2250s # org_project_bar_frobnicator_call_random_method_finish ( 2250s # OrgProjectBarFrobnicator *proxy, 2250s # GAsyncResult *res, 2250s # GError **error) 2250s # { 2250s # GVariant *_ret; 2250s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2250s # if (_ret == NULL) 2250s # goto _out; 2250s # g_variant_get (_ret, 2250s # "()"); 2250s # g_variant_unref (_ret); 2250s # _out: 2250s # return _ret != NULL; 2250s # } 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_call_random_method_sync: 2250s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 2250s # * @cancellable: (nullable): A #GCancellable or %NULL. 2250s # * @error: Return location for error or %NULL. 2250s # * 2250s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2250s # * 2250s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 2250s # * 2250s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2250s # */ 2250s # gboolean 2250s # org_project_bar_frobnicator_call_random_method_sync ( 2250s # OrgProjectBarFrobnicator *proxy, 2250s # GCancellable *cancellable, 2250s # GError **error) 2250s # { 2250s # GVariant *_ret; 2250s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2250s # "RandomMethod", 2250s # g_variant_new ("()"), 2250s # G_DBUS_CALL_FLAGS_NONE, 2250s # -1, 2250s # cancellable, 2250s # error); 2250s # if (_ret == NULL) 2250s # goto _out; 2250s # g_variant_get (_ret, 2250s # "()"); 2250s # g_variant_unref (_ret); 2250s # _out: 2250s # return _ret != NULL; 2250s # } 2250s # 2250s # /** 2250s # * org_project_bar_frobnicator_complete_random_method: 2250s # * @object: A #OrgProjectBarFrobnicator. 2250s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2250s # * 2250s # * 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. 2250s # * 2250s # * This method will free @invocation, you cannot use it afterwards. 2250s # */ 2250s # void 2250s # org_project_bar_frobnicator_complete_random_method ( 2250s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 2250s # GDBusMethodInvocation *invocation) 2250s # { 2250s # g_dbus_method_invocation_return_value (invocation, 2250s # g_variant_new ("()")); 2250s # } 2250s # 2250s # /* ------------------------------------------------------------------------ */ 2250s # 2250s # /** 2250s # * OrgProjectBarFrobnicatorProxy: 2250s # * 2251s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 2251s # */ 2251s # 2251s # /** 2251s # * OrgProjectBarFrobnicatorProxyClass: 2251s # * @parent_class: The parent class. 2251s # * 2251s # * Class structure for #OrgProjectBarFrobnicatorProxy. 2251s # */ 2251s # 2251s # struct _OrgProjectBarFrobnicatorProxyPrivate 2251s # { 2251s # GData *qdata; 2251s # }; 2251s # 2251s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 2251s # 2251s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2251s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 2251s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 2251s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 2251s # 2251s # #else 2251s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 2251s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 2251s # 2251s # #endif 2251s # static void 2251s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 2251s # { 2251s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 2251s # g_datalist_clear (&proxy->priv->qdata); 2251s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 2251s # } 2251s # 2251s # static void 2251s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 2251s # guint prop_id G_GNUC_UNUSED, 2251s # GValue *value G_GNUC_UNUSED, 2251s # GParamSpec *pspec G_GNUC_UNUSED) 2251s # { 2251s # } 2251s # 2251s # static void 2251s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 2251s # guint prop_id G_GNUC_UNUSED, 2251s # const GValue *value G_GNUC_UNUSED, 2251s # GParamSpec *pspec G_GNUC_UNUSED) 2251s # { 2251s # } 2251s # 2251s # static void 2251s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 2251s # const gchar *sender_name G_GNUC_UNUSED, 2251s # const gchar *signal_name, 2251s # GVariant *parameters) 2251s # { 2251s # _ExtendedGDBusSignalInfo *info; 2251s # GVariantIter iter; 2251s # GVariant *child; 2251s # GValue *paramv; 2251s # gsize num_params; 2251s # gsize n; 2251s # guint signal_id; 2251s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 2251s # if (info == NULL) 2251s # return; 2251s # num_params = g_variant_n_children (parameters); 2251s # paramv = g_new0 (GValue, num_params + 1); 2251s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 2251s # g_value_set_object (¶mv[0], proxy); 2251s # g_variant_iter_init (&iter, parameters); 2251s # n = 1; 2251s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2251s # { 2251s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2251s # if (arg_info->use_gvariant) 2251s # { 2251s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2251s # g_value_set_variant (¶mv[n], child); 2251s # n++; 2251s # } 2251s # else 2251s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2251s # g_variant_unref (child); 2251s # } 2251s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 2251s # g_signal_emitv (paramv, signal_id, 0, NULL); 2251s # for (n = 0; n < num_params + 1; n++) 2251s # g_value_unset (¶mv[n]); 2251s # g_free (paramv); 2251s # } 2251s # 2251s # static void 2251s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 2251s # GVariant *changed_properties, 2251s # const gchar *const *invalidated_properties) 2251s # { 2251s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 2251s # guint n; 2251s # const gchar *key; 2251s # GVariantIter *iter; 2251s # _ExtendedGDBusPropertyInfo *info; 2251s # g_variant_get (changed_properties, "a{sv}", &iter); 2251s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2251s # { 2251s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 2251s # g_datalist_remove_data (&proxy->priv->qdata, key); 2251s # if (info != NULL) 2251s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2251s # } 2251s # g_variant_iter_free (iter); 2251s # for (n = 0; invalidated_properties[n] != NULL; n++) 2251s # { 2251s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 2251s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2251s # if (info != NULL) 2251s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2251s # } 2251s # } 2251s # 2251s # static void 2251s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 2251s # { 2251s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2251s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 2251s # #else 2251s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 2251s # #endif 2251s # 2251s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 2251s # } 2251s # 2251s # static void 2251s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 2251s # { 2251s # GObjectClass *gobject_class; 2251s # GDBusProxyClass *proxy_class; 2251s # 2251s # gobject_class = G_OBJECT_CLASS (klass); 2251s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 2251s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 2251s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 2251s # 2251s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2251s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 2251s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 2251s # 2251s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2251s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 2251s # #endif 2251s # } 2251s # 2251s # static void 2251s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 2251s # { 2251s # } 2251s # 2251s # /** 2251s # * org_project_bar_frobnicator_proxy_new: 2251s # * @connection: A #GDBusConnection. 2251s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2251s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2251s # * @object_path: An object path. 2251s # * @cancellable: (nullable): A #GCancellable or %NULL. 2251s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2251s # * @user_data: User data to pass to @callback. 2251s # * 2251s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 2251s # * 2251s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2251s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 2251s # * 2251s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 2251s # */ 2251s # void 2251s # org_project_bar_frobnicator_proxy_new ( 2251s # GDBusConnection *connection, 2251s # GDBusProxyFlags flags, 2251s # const gchar *name, 2251s # const gchar *object_path, 2251s # GCancellable *cancellable, 2251s # GAsyncReadyCallback callback, 2251s # gpointer user_data) 2251s # { 2251s # 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); 2251s # } 2251s # 2251s # /** 2251s # * org_project_bar_frobnicator_proxy_new_finish: 2251s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 2251s # * @error: Return location for error or %NULL 2251s # * 2251s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 2251s # * 2251s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 2251s # */ 2251s # OrgProjectBarFrobnicator * 2251s # org_project_bar_frobnicator_proxy_new_finish ( 2251s # GAsyncResult *res, 2251s # GError **error) 2251s # { 2251s # GObject *ret; 2251s # GObject *source_object; 2251s # source_object = g_async_result_get_source_object (res); 2251s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2251s # g_object_unref (source_object); 2251s # if (ret != NULL) 2251s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 2251s # else 2251s # return NULL; 2251s # } 2251s # 2251s # /** 2251s # * org_project_bar_frobnicator_proxy_new_sync: 2251s # * @connection: A #GDBusConnection. 2251s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2251s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2251s # * @object_path: An object path. 2251s # * @cancellable: (nullable): A #GCancellable or %NULL. 2251s # * @error: Return location for error or %NULL 2251s # * 2251s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 2251s # * 2251s # * The calling thread is blocked until a reply is received. 2251s # * 2251s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 2251s # * 2251s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 2251s # */ 2251s # OrgProjectBarFrobnicator * 2251s # org_project_bar_frobnicator_proxy_new_sync ( 2251s # GDBusConnection *connection, 2251s # GDBusProxyFlags flags, 2251s # const gchar *name, 2251s # const gchar *object_path, 2251s # GCancellable *cancellable, 2251s # GError **error) 2251s # { 2251s # GInitable *ret; 2251s # 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); 2251s # if (ret != NULL) 2251s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 2251s # else 2251s # return NULL; 2251s # } 2251s # 2251s # 2251s # /** 2251s # * org_project_bar_frobnicator_proxy_new_for_bus: 2251s # * @bus_type: A #GBusType. 2251s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2251s # * @name: A bus name (well-known or unique). 2251s # * @object_path: An object path. 2251s # * @cancellable: (nullable): A #GCancellable or %NULL. 2251s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2251s # * @user_data: User data to pass to @callback. 2251s # * 2251s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2251s # * 2251s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2251s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 2251s # * 2251s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2251s # */ 2251s # void 2251s # org_project_bar_frobnicator_proxy_new_for_bus ( 2251s # GBusType bus_type, 2251s # GDBusProxyFlags flags, 2251s # const gchar *name, 2251s # const gchar *object_path, 2251s # GCancellable *cancellable, 2251s # GAsyncReadyCallback callback, 2251s # gpointer user_data) 2251s # { 2251s # 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); 2251s # } 2251s # 2251s # /** 2251s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 2251s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 2251s # * @error: Return location for error or %NULL 2251s # * 2251s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 2251s # * 2251s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 2251s # */ 2251s # OrgProjectBarFrobnicator * 2251s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 2251s # GAsyncResult *res, 2251s # GError **error) 2251s # { 2251s # GObject *ret; 2251s # GObject *source_object; 2251s # source_object = g_async_result_get_source_object (res); 2251s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2251s # g_object_unref (source_object); 2251s # if (ret != NULL) 2251s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 2251s # else 2251s # return NULL; 2251s # } 2251s # 2251s # /** 2251s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 2251s # * @bus_type: A #GBusType. 2251s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2251s # * @name: A bus name (well-known or unique). 2251s # * @object_path: An object path. 2251s # * @cancellable: (nullable): A #GCancellable or %NULL. 2251s # * @error: Return location for error or %NULL 2251s # * 2251s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2251s # * 2251s # * The calling thread is blocked until a reply is received. 2251s # * 2251s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 2251s # * 2251s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 2251s # */ 2251s # OrgProjectBarFrobnicator * 2251s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 2251s # GBusType bus_type, 2251s # GDBusProxyFlags flags, 2251s # const gchar *name, 2251s # const gchar *object_path, 2251s # GCancellable *cancellable, 2251s # GError **error) 2251s # { 2251s # GInitable *ret; 2251s # 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); 2251s # if (ret != NULL) 2251s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 2251s # else 2251s # return NULL; 2251s # } 2251s # 2251s # 2251s # /* ------------------------------------------------------------------------ */ 2251s # 2251s # /** 2251s # * OrgProjectBarFrobnicatorSkeleton: 2251s # * 2251s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 2251s # */ 2251s # 2251s # /** 2251s # * OrgProjectBarFrobnicatorSkeletonClass: 2251s # * @parent_class: The parent class. 2251s # * 2251s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 2251s # */ 2251s # 2251s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 2251s # { 2251s # GValue *properties; 2251s # GList *changed_properties; 2251s # GSource *changed_properties_idle_source; 2251s # GMainContext *context; 2251s # GMutex lock; 2251s # }; 2251s # 2251s # static void 2251s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 2251s # GDBusConnection *connection G_GNUC_UNUSED, 2251s # const gchar *sender G_GNUC_UNUSED, 2251s # const gchar *object_path G_GNUC_UNUSED, 2251s # const gchar *interface_name, 2251s # const gchar *method_name, 2251s # GVariant *parameters, 2251s # GDBusMethodInvocation *invocation, 2251s # gpointer user_data) 2251s # { 2251s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 2251s # _ExtendedGDBusMethodInfo *info; 2251s # GVariantIter iter; 2251s # GVariant *child; 2251s # GValue *paramv; 2251s # gsize num_params; 2251s # guint num_extra; 2251s # gsize n; 2251s # guint signal_id; 2251s # GValue return_value = G_VALUE_INIT; 2251s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2251s # g_assert (info != NULL); 2251s # num_params = g_variant_n_children (parameters); 2251s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2251s # n = 0; 2251s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 2251s # g_value_set_object (¶mv[n++], skeleton); 2251s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2251s # g_value_set_object (¶mv[n++], invocation); 2251s # if (info->pass_fdlist) 2251s # { 2251s # #ifdef G_OS_UNIX 2251s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2251s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2251s # #else 2251s # g_assert_not_reached (); 2251s # #endif 2251s # } 2251s # g_variant_iter_init (&iter, parameters); 2251s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2251s # { 2251s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2251s # if (arg_info->use_gvariant) 2251s # { 2251s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2251s # g_value_set_variant (¶mv[n], child); 2251s # n++; 2251s # } 2251s # else 2251s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2251s # g_variant_unref (child); 2251s # } 2251s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 2251s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2251s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2251s # if (!g_value_get_boolean (&return_value)) 2251s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2251s # g_value_unset (&return_value); 2251s # for (n = 0; n < num_params + num_extra; n++) 2251s # g_value_unset (¶mv[n]); 2251s # g_free (paramv); 2251s # } 2251s # 2251s # static GVariant * 2251s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 2251s # GDBusConnection *connection G_GNUC_UNUSED, 2251s # const gchar *sender G_GNUC_UNUSED, 2251s # const gchar *object_path G_GNUC_UNUSED, 2251s # const gchar *interface_name G_GNUC_UNUSED, 2251s # const gchar *property_name, 2251s # GError **error, 2251s # gpointer user_data) 2251s # { 2251s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 2251s # GValue value = G_VALUE_INIT; 2251s # GParamSpec *pspec; 2251s # _ExtendedGDBusPropertyInfo *info; 2251s # GVariant *ret; 2251s # ret = NULL; 2251s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 2251s # g_assert (info != NULL); 2251s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2251s # if (pspec == NULL) 2251s # { 2251s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2251s # } 2251s # else 2251s # { 2251s # g_value_init (&value, pspec->value_type); 2251s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2251s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2251s # g_value_unset (&value); 2251s # } 2251s # return ret; 2251s # } 2251s # 2251s # static gboolean 2251s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 2251s # GDBusConnection *connection G_GNUC_UNUSED, 2251s # const gchar *sender G_GNUC_UNUSED, 2251s # const gchar *object_path G_GNUC_UNUSED, 2251s # const gchar *interface_name G_GNUC_UNUSED, 2251s # const gchar *property_name, 2251s # GVariant *variant, 2251s # GError **error, 2251s # gpointer user_data) 2251s # { 2251s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 2251s # GValue value = G_VALUE_INIT; 2251s # GParamSpec *pspec; 2251s # _ExtendedGDBusPropertyInfo *info; 2251s # gboolean ret; 2251s # ret = FALSE; 2251s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 2251s # g_assert (info != NULL); 2251s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2251s # if (pspec == NULL) 2251s # { 2251s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2251s # } 2251s # else 2251s # { 2251s # if (info->use_gvariant) 2251s # g_value_set_variant (&value, variant); 2251s # else 2251s # g_dbus_gvariant_to_gvalue (variant, &value); 2251s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2251s # g_value_unset (&value); 2251s # ret = TRUE; 2251s # } 2251s # return ret; 2251s # } 2251s # 2251s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 2251s # { 2251s # _org_project_bar_frobnicator_skeleton_handle_method_call, 2251s # _org_project_bar_frobnicator_skeleton_handle_get_property, 2251s # _org_project_bar_frobnicator_skeleton_handle_set_property, 2251s # {NULL} 2251s # }; 2251s # 2251s # static GDBusInterfaceInfo * 2251s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2251s # { 2251s # return org_project_bar_frobnicator_interface_info (); 2251s # } 2251s # 2251s # static GDBusInterfaceVTable * 2251s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2251s # { 2251s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 2251s # } 2251s # 2251s # static GVariant * 2251s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2251s # { 2251s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 2251s # 2251s # GVariantBuilder builder; 2251s # guint n; 2251s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2251s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2251s # #else 2251s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2251s # #endif 2251s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 2251s # goto out; 2251s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 2251s # { 2251s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 2251s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2251s # { 2251s # GVariant *value; 2251s # 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); 2251s # if (value != NULL) 2251s # { 2251s # g_variant_take_ref (value); 2251s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2251s # g_variant_unref (value); 2251s # } 2251s # } 2251s # } 2251s # out: 2251s # return g_variant_builder_end (&builder); 2251s # } 2251s # 2251s # static void 2251s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 2251s # { 2251s # } 2251s # 2251s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 2251s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2251s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2251s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 2251s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 2251s # 2251s # #else 2251s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2251s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 2251s # 2251s # #endif 2251s # static void 2251s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 2251s # { 2251s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 2251s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2251s # if (skeleton->priv->changed_properties_idle_source != NULL) 2251s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2251s # g_main_context_unref (skeleton->priv->context); 2251s # g_mutex_clear (&skeleton->priv->lock); 2251s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 2251s # } 2251s # 2251s # static void 2251s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 2251s # { 2251s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2251s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 2251s # #else 2251s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 2251s # #endif 2251s # 2251s # g_mutex_init (&skeleton->priv->lock); 2251s # skeleton->priv->context = g_main_context_ref_thread_default (); 2251s # } 2251s # 2251s # static void 2251s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 2251s # { 2251s # GObjectClass *gobject_class; 2251s # GDBusInterfaceSkeletonClass *skeleton_class; 2251s # 2251s # gobject_class = G_OBJECT_CLASS (klass); 2251s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 2251s # 2251s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2251s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 2251s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 2251s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 2251s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 2251s # 2251s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2251s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 2251s # #endif 2251s # } 2251s # 2251s # static void 2251s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 2251s # { 2251s # } 2251s # 2251s # /** 2251s # * org_project_bar_frobnicator_skeleton_new: 2251s # * 2251s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 2251s # * 2251s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 2251s # */ 2251s # OrgProjectBarFrobnicator * 2251s # org_project_bar_frobnicator_skeleton_new (void) 2251s # { 2251s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 2251s # } 2251s # 2251s # /* ------------------------------------------------------------------------ 2251s # * Code for interface com.acme.Coyote 2251s # * ------------------------------------------------------------------------ 2251s # */ 2251s # 2251s # /** 2251s # * SECTION:ComAcmeCoyote 2251s # * @title: ComAcmeCoyote 2251s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 2251s # * 2251s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 2251s # */ 2251s # 2251s # enum 2251s # { 2251s # _COM_ACME_COYOTE_SURPRISED, 2251s # }; 2251s # 2251s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 2251s # 2251s # /* ---- Introspection data for com.acme.Coyote ---- */ 2251s # 2251s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 2251s # { 2251s # { 2251s # -1, 2251s # (gchar *) "Run", 2251s # NULL, 2251s # NULL, 2251s # NULL 2251s # }, 2251s # "handle-run", 2251s # FALSE 2251s # }; 2251s # 2251s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 2251s # { 2251s # { 2251s # -1, 2251s # (gchar *) "Sleep", 2251s # NULL, 2251s # NULL, 2251s # NULL 2251s # }, 2251s # "handle-sleep", 2251s # FALSE 2251s # }; 2251s # 2251s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 2251s # { 2251s # { 2251s # -1, 2251s # (gchar *) "Attack", 2251s # NULL, 2251s # NULL, 2251s # NULL 2251s # }, 2251s # "handle-attack", 2251s # FALSE 2251s # }; 2251s # 2251s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 2251s # { 2251s # &_com_acme_coyote_method_info_run.parent_struct, 2251s # &_com_acme_coyote_method_info_sleep.parent_struct, 2251s # &_com_acme_coyote_method_info_attack.parent_struct, 2251s # NULL 2251s # }; 2251s # 2251s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 2251s # { 2251s # { 2251s # -1, 2251s # (gchar *) "Surprised", 2251s # NULL, 2251s # NULL 2251s # }, 2251s # "surprised" 2251s # }; 2251s # 2251s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 2251s # { 2251s # &_com_acme_coyote_signal_info_surprised.parent_struct, 2251s # NULL 2251s # }; 2251s # 2251s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 2251s # { 2251s # { 2251s # -1, 2251s # (gchar *) "Mood", 2251s # (gchar *) "s", 2251s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 2251s # NULL 2251s # }, 2251s # "mood", 2251s # FALSE, 2251s # TRUE 2251s # }; 2251s # 2251s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 2251s # { 2251s # &_com_acme_coyote_property_info_mood.parent_struct, 2251s # NULL 2251s # }; 2251s # 2251s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 2251s # { 2251s # { 2251s # -1, 2251s # (gchar *) "com.acme.Coyote", 2251s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 2251s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 2251s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 2251s # NULL 2251s # }, 2251s # "com-acme-coyote", 2251s # }; 2251s # 2251s # 2251s # /** 2251s # * com_acme_coyote_interface_info: 2251s # * 2251s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 2251s # * 2251s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 2251s # */ 2251s # GDBusInterfaceInfo * 2251s # com_acme_coyote_interface_info (void) 2251s # { 2251s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_override_properties: 2251s # * @klass: The class structure for a #GObject derived class. 2251s # * @property_id_begin: The property id to assign to the first overridden property. 2251s # * 2251s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 2251s # * The properties are overridden in the order they are defined. 2251s # * 2251s # * Returns: The last property id. 2251s # */ 2251s # guint 2251s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 2251s # { 2251s # g_object_class_override_property (klass, property_id_begin++, "mood"); 2251s # return property_id_begin - 1; 2251s # } 2251s # 2251s # 2251s # inline static void 2251s # com_acme_coyote_signal_marshal_surprised ( 2251s # GClosure *closure, 2251s # GValue *return_value, 2251s # unsigned int n_param_values, 2251s # const GValue *param_values, 2251s # void *invocation_hint, 2251s # void *marshal_data) 2251s # { 2251s # g_cclosure_marshal_VOID__VOID (closure, 2251s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2251s # } 2251s # 2251s # inline static void 2251s # com_acme_coyote_method_marshal_run ( 2251s # GClosure *closure, 2251s # GValue *return_value, 2251s # unsigned int n_param_values, 2251s # const GValue *param_values, 2251s # void *invocation_hint, 2251s # void *marshal_data) 2251s # { 2251s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2251s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2251s # } 2251s # 2251s # inline static void 2251s # com_acme_coyote_method_marshal_sleep ( 2251s # GClosure *closure, 2251s # GValue *return_value, 2251s # unsigned int n_param_values, 2251s # const GValue *param_values, 2251s # void *invocation_hint, 2251s # void *marshal_data) 2251s # { 2251s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2251s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2251s # } 2251s # 2251s # inline static void 2251s # com_acme_coyote_method_marshal_attack ( 2251s # GClosure *closure, 2251s # GValue *return_value, 2251s # unsigned int n_param_values, 2251s # const GValue *param_values, 2251s # void *invocation_hint, 2251s # void *marshal_data) 2251s # { 2251s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 2251s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 2251s # } 2251s # 2251s # 2251s # /** 2251s # * ComAcmeCoyote: 2251s # * 2251s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 2251s # */ 2251s # 2251s # /** 2251s # * ComAcmeCoyoteIface: 2251s # * @parent_iface: The parent interface. 2251s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 2251s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 2251s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 2251s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 2251s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 2251s # * 2251s # * Virtual table for the D-Bus interface com.acme.Coyote. 2251s # */ 2251s # 2251s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 2251s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 2251s # 2251s # static void 2251s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 2251s # { 2251s # /* GObject signals for incoming D-Bus method calls: */ 2251s # /** 2251s # * ComAcmeCoyote::handle-run: 2251s # * @object: A #ComAcmeCoyote. 2251s # * @invocation: A #GDBusMethodInvocation. 2251s # * 2251s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 2251s # * 2251s # * 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. 2251s # * 2251s # * 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. 2251s # */ 2251s # g_signal_new ("handle-run", 2251s # G_TYPE_FROM_INTERFACE (iface), 2251s # G_SIGNAL_RUN_LAST, 2251s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 2251s # g_signal_accumulator_true_handled, 2251s # NULL, 2251s # com_acme_coyote_method_marshal_run, 2251s # G_TYPE_BOOLEAN, 2251s # 1, 2251s # G_TYPE_DBUS_METHOD_INVOCATION); 2251s # 2251s # /** 2251s # * ComAcmeCoyote::handle-sleep: 2251s # * @object: A #ComAcmeCoyote. 2251s # * @invocation: A #GDBusMethodInvocation. 2251s # * 2251s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 2251s # * 2251s # * 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. 2251s # * 2251s # * 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. 2251s # */ 2251s # g_signal_new ("handle-sleep", 2251s # G_TYPE_FROM_INTERFACE (iface), 2251s # G_SIGNAL_RUN_LAST, 2251s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 2251s # g_signal_accumulator_true_handled, 2251s # NULL, 2251s # com_acme_coyote_method_marshal_sleep, 2251s # G_TYPE_BOOLEAN, 2251s # 1, 2251s # G_TYPE_DBUS_METHOD_INVOCATION); 2251s # 2251s # /** 2251s # * ComAcmeCoyote::handle-attack: 2251s # * @object: A #ComAcmeCoyote. 2251s # * @invocation: A #GDBusMethodInvocation. 2251s # * 2251s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 2251s # * 2251s # * 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. 2251s # * 2251s # * 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. 2251s # */ 2251s # g_signal_new ("handle-attack", 2251s # G_TYPE_FROM_INTERFACE (iface), 2251s # G_SIGNAL_RUN_LAST, 2251s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 2251s # g_signal_accumulator_true_handled, 2251s # NULL, 2251s # com_acme_coyote_method_marshal_attack, 2251s # G_TYPE_BOOLEAN, 2251s # 1, 2251s # G_TYPE_DBUS_METHOD_INVOCATION); 2251s # 2251s # /* GObject signals for received D-Bus signals: */ 2251s # /** 2251s # * ComAcmeCoyote::surprised: 2251s # * @object: A #ComAcmeCoyote. 2251s # * 2251s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 2251s # * 2251s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 2251s # */ 2251s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 2251s # g_signal_new ("surprised", 2251s # G_TYPE_FROM_INTERFACE (iface), 2251s # G_SIGNAL_RUN_LAST, 2251s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 2251s # NULL, 2251s # NULL, 2251s # com_acme_coyote_signal_marshal_surprised, 2251s # G_TYPE_NONE, 2251s # 0); 2251s # 2251s # /* GObject properties for D-Bus properties: */ 2251s # /** 2251s # * ComAcmeCoyote:mood: 2251s # * 2251s # * Represents the D-Bus property "Mood". 2251s # * 2251s # * 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. 2251s # */ 2251s # g_object_interface_install_property (iface, 2251s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_get_mood: (skip) 2251s # * @object: A #ComAcmeCoyote. 2251s # * 2251s # * Gets the value of the "Mood" D-Bus property. 2251s # * 2251s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 2251s # * 2251s # * 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. 2251s # * 2251s # * 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. 2251s # */ 2251s # const gchar * 2251s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 2251s # { 2251s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 2251s # 2251s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_dup_mood: (skip) 2251s # * @object: A #ComAcmeCoyote. 2251s # * 2251s # * Gets a copy of the "Mood" D-Bus property. 2251s # * 2251s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 2251s # * 2251s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 2251s # */ 2251s # gchar * 2251s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 2251s # { 2251s # gchar *value; 2251s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 2251s # return value; 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_set_mood: (skip) 2251s # * @object: A #ComAcmeCoyote. 2251s # * @value: The value to set. 2251s # * 2251s # * Sets the "Mood" D-Bus property to @value. 2251s # * 2251s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 2251s # */ 2251s # void 2251s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 2251s # { 2251s # g_object_set (G_OBJECT (object), "mood", value, NULL); 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_emit_surprised: 2251s # * @object: A #ComAcmeCoyote. 2251s # * 2251s # * Emits the "Surprised" D-Bus signal. 2251s # */ 2251s # void 2251s # com_acme_coyote_emit_surprised ( 2251s # ComAcmeCoyote *object) 2251s # { 2251s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_call_run: 2251s # * @proxy: A #ComAcmeCoyoteProxy. 2251s # * @cancellable: (nullable): A #GCancellable or %NULL. 2251s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2251s # * @user_data: User data to pass to @callback. 2251s # * 2251s # * Asynchronously invokes the Run() D-Bus method on @proxy. 2251s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2251s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 2251s # * 2251s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 2251s # */ 2251s # void 2251s # com_acme_coyote_call_run ( 2251s # ComAcmeCoyote *proxy, 2251s # GCancellable *cancellable, 2251s # GAsyncReadyCallback callback, 2251s # gpointer user_data) 2251s # { 2251s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2251s # "Run", 2251s # g_variant_new ("()"), 2251s # G_DBUS_CALL_FLAGS_NONE, 2251s # -1, 2251s # cancellable, 2251s # callback, 2251s # user_data); 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_call_run_finish: 2251s # * @proxy: A #ComAcmeCoyoteProxy. 2251s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 2251s # * @error: Return location for error or %NULL. 2251s # * 2251s # * Finishes an operation started with com_acme_coyote_call_run(). 2251s # * 2251s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2251s # */ 2251s # gboolean 2251s # com_acme_coyote_call_run_finish ( 2251s # ComAcmeCoyote *proxy, 2251s # GAsyncResult *res, 2251s # GError **error) 2251s # { 2251s # GVariant *_ret; 2251s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2251s # if (_ret == NULL) 2251s # goto _out; 2251s # g_variant_get (_ret, 2251s # "()"); 2251s # g_variant_unref (_ret); 2251s # _out: 2251s # return _ret != NULL; 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_call_run_sync: 2251s # * @proxy: A #ComAcmeCoyoteProxy. 2251s # * @cancellable: (nullable): A #GCancellable or %NULL. 2251s # * @error: Return location for error or %NULL. 2251s # * 2251s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2251s # * 2251s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 2251s # * 2251s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2251s # */ 2251s # gboolean 2251s # com_acme_coyote_call_run_sync ( 2251s # ComAcmeCoyote *proxy, 2251s # GCancellable *cancellable, 2251s # GError **error) 2251s # { 2251s # GVariant *_ret; 2251s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2251s # "Run", 2251s # g_variant_new ("()"), 2251s # G_DBUS_CALL_FLAGS_NONE, 2251s # -1, 2251s # cancellable, 2251s # error); 2251s # if (_ret == NULL) 2251s # goto _out; 2251s # g_variant_get (_ret, 2251s # "()"); 2251s # g_variant_unref (_ret); 2251s # _out: 2251s # return _ret != NULL; 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_call_sleep: 2251s # * @proxy: A #ComAcmeCoyoteProxy. 2251s # * @cancellable: (nullable): A #GCancellable or %NULL. 2251s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2251s # * @user_data: User data to pass to @callback. 2251s # * 2251s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 2251s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2251s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 2251s # * 2251s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 2251s # */ 2251s # void 2251s # com_acme_coyote_call_sleep ( 2251s # ComAcmeCoyote *proxy, 2251s # GCancellable *cancellable, 2251s # GAsyncReadyCallback callback, 2251s # gpointer user_data) 2251s # { 2251s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2251s # "Sleep", 2251s # g_variant_new ("()"), 2251s # G_DBUS_CALL_FLAGS_NONE, 2251s # -1, 2251s # cancellable, 2251s # callback, 2251s # user_data); 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_call_sleep_finish: 2251s # * @proxy: A #ComAcmeCoyoteProxy. 2251s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 2251s # * @error: Return location for error or %NULL. 2251s # * 2251s # * Finishes an operation started with com_acme_coyote_call_sleep(). 2251s # * 2251s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2251s # */ 2251s # gboolean 2251s # com_acme_coyote_call_sleep_finish ( 2251s # ComAcmeCoyote *proxy, 2251s # GAsyncResult *res, 2251s # GError **error) 2251s # { 2251s # GVariant *_ret; 2251s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2251s # if (_ret == NULL) 2251s # goto _out; 2251s # g_variant_get (_ret, 2251s # "()"); 2251s # g_variant_unref (_ret); 2251s # _out: 2251s # return _ret != NULL; 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_call_sleep_sync: 2251s # * @proxy: A #ComAcmeCoyoteProxy. 2251s # * @cancellable: (nullable): A #GCancellable or %NULL. 2251s # * @error: Return location for error or %NULL. 2251s # * 2251s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2251s # * 2251s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 2251s # * 2251s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2251s # */ 2251s # gboolean 2251s # com_acme_coyote_call_sleep_sync ( 2251s # ComAcmeCoyote *proxy, 2251s # GCancellable *cancellable, 2251s # GError **error) 2251s # { 2251s # GVariant *_ret; 2251s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2251s # "Sleep", 2251s # g_variant_new ("()"), 2251s # G_DBUS_CALL_FLAGS_NONE, 2251s # -1, 2251s # cancellable, 2251s # error); 2251s # if (_ret == NULL) 2251s # goto _out; 2251s # g_variant_get (_ret, 2251s # "()"); 2251s # g_variant_unref (_ret); 2251s # _out: 2251s # return _ret != NULL; 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_call_attack: 2251s # * @proxy: A #ComAcmeCoyoteProxy. 2251s # * @cancellable: (nullable): A #GCancellable or %NULL. 2251s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 2251s # * @user_data: User data to pass to @callback. 2251s # * 2251s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 2251s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2251s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 2251s # * 2251s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 2251s # */ 2251s # void 2251s # com_acme_coyote_call_attack ( 2251s # ComAcmeCoyote *proxy, 2251s # GCancellable *cancellable, 2251s # GAsyncReadyCallback callback, 2251s # gpointer user_data) 2251s # { 2251s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 2251s # "Attack", 2251s # g_variant_new ("()"), 2251s # G_DBUS_CALL_FLAGS_NONE, 2251s # -1, 2251s # cancellable, 2251s # callback, 2251s # user_data); 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_call_attack_finish: 2251s # * @proxy: A #ComAcmeCoyoteProxy. 2251s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 2251s # * @error: Return location for error or %NULL. 2251s # * 2251s # * Finishes an operation started with com_acme_coyote_call_attack(). 2251s # * 2251s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2251s # */ 2251s # gboolean 2251s # com_acme_coyote_call_attack_finish ( 2251s # ComAcmeCoyote *proxy, 2251s # GAsyncResult *res, 2251s # GError **error) 2251s # { 2251s # GVariant *_ret; 2251s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 2251s # if (_ret == NULL) 2251s # goto _out; 2251s # g_variant_get (_ret, 2251s # "()"); 2251s # g_variant_unref (_ret); 2251s # _out: 2251s # return _ret != NULL; 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_call_attack_sync: 2251s # * @proxy: A #ComAcmeCoyoteProxy. 2251s # * @cancellable: (nullable): A #GCancellable or %NULL. 2251s # * @error: Return location for error or %NULL. 2251s # * 2251s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 2251s # * 2251s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 2251s # * 2251s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 2251s # */ 2251s # gboolean 2251s # com_acme_coyote_call_attack_sync ( 2251s # ComAcmeCoyote *proxy, 2251s # GCancellable *cancellable, 2251s # GError **error) 2251s # { 2251s # GVariant *_ret; 2251s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 2251s # "Attack", 2251s # g_variant_new ("()"), 2251s # G_DBUS_CALL_FLAGS_NONE, 2251s # -1, 2251s # cancellable, 2251s # error); 2251s # if (_ret == NULL) 2251s # goto _out; 2251s # g_variant_get (_ret, 2251s # "()"); 2251s # g_variant_unref (_ret); 2251s # _out: 2251s # return _ret != NULL; 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_complete_run: 2251s # * @object: A #ComAcmeCoyote. 2251s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2251s # * 2251s # * 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. 2251s # * 2251s # * This method will free @invocation, you cannot use it afterwards. 2251s # */ 2251s # void 2251s # com_acme_coyote_complete_run ( 2251s # ComAcmeCoyote *object G_GNUC_UNUSED, 2251s # GDBusMethodInvocation *invocation) 2251s # { 2251s # g_dbus_method_invocation_return_value (invocation, 2251s # g_variant_new ("()")); 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_complete_sleep: 2251s # * @object: A #ComAcmeCoyote. 2251s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2251s # * 2251s # * 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. 2251s # * 2251s # * This method will free @invocation, you cannot use it afterwards. 2251s # */ 2251s # void 2251s # com_acme_coyote_complete_sleep ( 2251s # ComAcmeCoyote *object G_GNUC_UNUSED, 2251s # GDBusMethodInvocation *invocation) 2251s # { 2251s # g_dbus_method_invocation_return_value (invocation, 2251s # g_variant_new ("()")); 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_complete_attack: 2251s # * @object: A #ComAcmeCoyote. 2251s # * @invocation: (transfer full): A #GDBusMethodInvocation. 2251s # * 2251s # * 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. 2251s # * 2251s # * This method will free @invocation, you cannot use it afterwards. 2251s # */ 2251s # void 2251s # com_acme_coyote_complete_attack ( 2251s # ComAcmeCoyote *object G_GNUC_UNUSED, 2251s # GDBusMethodInvocation *invocation) 2251s # { 2251s # g_dbus_method_invocation_return_value (invocation, 2251s # g_variant_new ("()")); 2251s # } 2251s # 2251s # /* ------------------------------------------------------------------------ */ 2251s # 2251s # /** 2251s # * ComAcmeCoyoteProxy: 2251s # * 2251s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 2251s # */ 2251s # 2251s # /** 2251s # * ComAcmeCoyoteProxyClass: 2251s # * @parent_class: The parent class. 2251s # * 2251s # * Class structure for #ComAcmeCoyoteProxy. 2251s # */ 2251s # 2251s # struct _ComAcmeCoyoteProxyPrivate 2251s # { 2251s # GData *qdata; 2251s # }; 2251s # 2251s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 2251s # 2251s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2251s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 2251s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 2251s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 2251s # 2251s # #else 2251s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 2251s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 2251s # 2251s # #endif 2251s # static void 2251s # com_acme_coyote_proxy_finalize (GObject *object) 2251s # { 2251s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 2251s # g_datalist_clear (&proxy->priv->qdata); 2251s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 2251s # } 2251s # 2251s # static void 2251s # com_acme_coyote_proxy_get_property (GObject *object, 2251s # guint prop_id, 2251s # GValue *value, 2251s # GParamSpec *pspec G_GNUC_UNUSED) 2251s # { 2251s # const _ExtendedGDBusPropertyInfo *info; 2251s # GVariant *variant; 2251s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2251s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 2251s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 2251s # if (info->use_gvariant) 2251s # { 2251s # g_value_set_variant (value, variant); 2251s # } 2251s # else 2251s # { 2251s # if (variant != NULL) 2251s # g_dbus_gvariant_to_gvalue (variant, value); 2251s # } 2251s # if (variant != NULL) 2251s # g_variant_unref (variant); 2251s # } 2251s # 2251s # static void 2251s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 2251s # GAsyncResult *res, 2251s # gpointer user_data) 2251s # { 2251s # const _ExtendedGDBusPropertyInfo *info = user_data; 2251s # GError *error; 2251s # GVariant *_ret; 2251s # error = NULL; 2251s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 2251s # if (!_ret) 2251s # { 2251s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 2251s # info->parent_struct.name, 2251s # error->message, g_quark_to_string (error->domain), error->code); 2251s # g_error_free (error); 2251s # } 2251s # else 2251s # { 2251s # g_variant_unref (_ret); 2251s # } 2251s # } 2251s # 2251s # static void 2251s # com_acme_coyote_proxy_set_property (GObject *object, 2251s # guint prop_id, 2251s # const GValue *value, 2251s # GParamSpec *pspec G_GNUC_UNUSED) 2251s # { 2251s # const _ExtendedGDBusPropertyInfo *info; 2251s # GVariant *variant; 2251s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2251s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 2251s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 2251s # g_dbus_proxy_call (G_DBUS_PROXY (object), 2251s # "org.freedesktop.DBus.Properties.Set", 2251s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 2251s # G_DBUS_CALL_FLAGS_NONE, 2251s # -1, 2251s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 2251s # g_variant_unref (variant); 2251s # } 2251s # 2251s # static void 2251s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 2251s # const gchar *sender_name G_GNUC_UNUSED, 2251s # const gchar *signal_name, 2251s # GVariant *parameters) 2251s # { 2251s # _ExtendedGDBusSignalInfo *info; 2251s # GVariantIter iter; 2251s # GVariant *child; 2251s # GValue *paramv; 2251s # gsize num_params; 2251s # gsize n; 2251s # guint signal_id; 2251s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 2251s # if (info == NULL) 2251s # return; 2251s # num_params = g_variant_n_children (parameters); 2251s # paramv = g_new0 (GValue, num_params + 1); 2251s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 2251s # g_value_set_object (¶mv[0], proxy); 2251s # g_variant_iter_init (&iter, parameters); 2251s # n = 1; 2251s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2251s # { 2251s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 2251s # if (arg_info->use_gvariant) 2251s # { 2251s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2251s # g_value_set_variant (¶mv[n], child); 2251s # n++; 2251s # } 2251s # else 2251s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2251s # g_variant_unref (child); 2251s # } 2251s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 2251s # g_signal_emitv (paramv, signal_id, 0, NULL); 2251s # for (n = 0; n < num_params + 1; n++) 2251s # g_value_unset (¶mv[n]); 2251s # g_free (paramv); 2251s # } 2251s # 2251s # static void 2251s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 2251s # GVariant *changed_properties, 2251s # const gchar *const *invalidated_properties) 2251s # { 2251s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 2251s # guint n; 2251s # const gchar *key; 2251s # GVariantIter *iter; 2251s # _ExtendedGDBusPropertyInfo *info; 2251s # g_variant_get (changed_properties, "a{sv}", &iter); 2251s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 2251s # { 2251s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 2251s # g_datalist_remove_data (&proxy->priv->qdata, key); 2251s # if (info != NULL) 2251s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2251s # } 2251s # g_variant_iter_free (iter); 2251s # for (n = 0; invalidated_properties[n] != NULL; n++) 2251s # { 2251s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 2251s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 2251s # if (info != NULL) 2251s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 2251s # } 2251s # } 2251s # 2251s # static const gchar * 2251s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 2251s # { 2251s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 2251s # GVariant *variant; 2251s # const gchar *value = NULL; 2251s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 2251s # if (variant != NULL) 2251s # { 2251s # value = g_variant_get_string (variant, NULL); 2251s # g_variant_unref (variant); 2251s # } 2251s # return value; 2251s # } 2251s # 2251s # static void 2251s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 2251s # { 2251s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2251s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 2251s # #else 2251s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 2251s # #endif 2251s # 2251s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 2251s # } 2251s # 2251s # static void 2251s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 2251s # { 2251s # GObjectClass *gobject_class; 2251s # GDBusProxyClass *proxy_class; 2251s # 2251s # gobject_class = G_OBJECT_CLASS (klass); 2251s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 2251s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 2251s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 2251s # 2251s # proxy_class = G_DBUS_PROXY_CLASS (klass); 2251s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 2251s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 2251s # 2251s # com_acme_coyote_override_properties (gobject_class, 1); 2251s # 2251s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2251s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 2251s # #endif 2251s # } 2251s # 2251s # static void 2251s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 2251s # { 2251s # iface->get_mood = com_acme_coyote_proxy_get_mood; 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_proxy_new: 2251s # * @connection: A #GDBusConnection. 2251s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2251s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2251s # * @object_path: An object path. 2251s # * @cancellable: (nullable): A #GCancellable or %NULL. 2251s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2251s # * @user_data: User data to pass to @callback. 2251s # * 2251s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 2251s # * 2251s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2251s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 2251s # * 2251s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 2251s # */ 2251s # void 2251s # com_acme_coyote_proxy_new ( 2251s # GDBusConnection *connection, 2251s # GDBusProxyFlags flags, 2251s # const gchar *name, 2251s # const gchar *object_path, 2251s # GCancellable *cancellable, 2251s # GAsyncReadyCallback callback, 2251s # gpointer user_data) 2251s # { 2251s # 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); 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_proxy_new_finish: 2251s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 2251s # * @error: Return location for error or %NULL 2251s # * 2251s # * Finishes an operation started with com_acme_coyote_proxy_new(). 2251s # * 2251s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 2251s # */ 2251s # ComAcmeCoyote * 2251s # com_acme_coyote_proxy_new_finish ( 2251s # GAsyncResult *res, 2251s # GError **error) 2251s # { 2251s # GObject *ret; 2251s # GObject *source_object; 2251s # source_object = g_async_result_get_source_object (res); 2251s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2251s # g_object_unref (source_object); 2251s # if (ret != NULL) 2251s # return COM_ACME_COYOTE (ret); 2251s # else 2251s # return NULL; 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_proxy_new_sync: 2251s # * @connection: A #GDBusConnection. 2251s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2251s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 2251s # * @object_path: An object path. 2251s # * @cancellable: (nullable): A #GCancellable or %NULL. 2251s # * @error: Return location for error or %NULL 2251s # * 2251s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 2251s # * 2251s # * The calling thread is blocked until a reply is received. 2251s # * 2251s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 2251s # * 2251s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 2251s # */ 2251s # ComAcmeCoyote * 2251s # com_acme_coyote_proxy_new_sync ( 2251s # GDBusConnection *connection, 2251s # GDBusProxyFlags flags, 2251s # const gchar *name, 2251s # const gchar *object_path, 2251s # GCancellable *cancellable, 2251s # GError **error) 2251s # { 2251s # GInitable *ret; 2251s # 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); 2251s # if (ret != NULL) 2251s # return COM_ACME_COYOTE (ret); 2251s # else 2251s # return NULL; 2251s # } 2251s # 2251s # 2251s # /** 2251s # * com_acme_coyote_proxy_new_for_bus: 2251s # * @bus_type: A #GBusType. 2251s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2251s # * @name: A bus name (well-known or unique). 2251s # * @object_path: An object path. 2251s # * @cancellable: (nullable): A #GCancellable or %NULL. 2251s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 2251s # * @user_data: User data to pass to @callback. 2251s # * 2251s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 2251s # * 2251s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 2251s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 2251s # * 2251s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 2251s # */ 2251s # void 2251s # com_acme_coyote_proxy_new_for_bus ( 2251s # GBusType bus_type, 2251s # GDBusProxyFlags flags, 2251s # const gchar *name, 2251s # const gchar *object_path, 2251s # GCancellable *cancellable, 2251s # GAsyncReadyCallback callback, 2251s # gpointer user_data) 2251s # { 2251s # 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); 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_proxy_new_for_bus_finish: 2251s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 2251s # * @error: Return location for error or %NULL 2251s # * 2251s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 2251s # * 2251s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 2251s # */ 2251s # ComAcmeCoyote * 2251s # com_acme_coyote_proxy_new_for_bus_finish ( 2251s # GAsyncResult *res, 2251s # GError **error) 2251s # { 2251s # GObject *ret; 2251s # GObject *source_object; 2251s # source_object = g_async_result_get_source_object (res); 2251s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 2251s # g_object_unref (source_object); 2251s # if (ret != NULL) 2251s # return COM_ACME_COYOTE (ret); 2251s # else 2251s # return NULL; 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_proxy_new_for_bus_sync: 2251s # * @bus_type: A #GBusType. 2251s # * @flags: Flags from the #GDBusProxyFlags enumeration. 2251s # * @name: A bus name (well-known or unique). 2251s # * @object_path: An object path. 2251s # * @cancellable: (nullable): A #GCancellable or %NULL. 2251s # * @error: Return location for error or %NULL 2251s # * 2251s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 2251s # * 2251s # * The calling thread is blocked until a reply is received. 2251s # * 2251s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 2251s # * 2251s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 2251s # */ 2251s # ComAcmeCoyote * 2251s # com_acme_coyote_proxy_new_for_bus_sync ( 2251s # GBusType bus_type, 2251s # GDBusProxyFlags flags, 2251s # const gchar *name, 2251s # const gchar *object_path, 2251s # GCancellable *cancellable, 2251s # GError **error) 2251s # { 2251s # GInitable *ret; 2251s # 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); 2251s # if (ret != NULL) 2251s # return COM_ACME_COYOTE (ret); 2251s # else 2251s # return NULL; 2251s # } 2251s # 2251s # 2251s # /* ------------------------------------------------------------------------ */ 2251s # 2251s # /** 2251s # * ComAcmeCoyoteSkeleton: 2251s # * 2251s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 2251s # */ 2251s # 2251s # /** 2251s # * ComAcmeCoyoteSkeletonClass: 2251s # * @parent_class: The parent class. 2251s # * 2251s # * Class structure for #ComAcmeCoyoteSkeleton. 2251s # */ 2251s # 2251s # struct _ComAcmeCoyoteSkeletonPrivate 2251s # { 2251s # GValue *properties; 2251s # GList *changed_properties; 2251s # GSource *changed_properties_idle_source; 2251s # GMainContext *context; 2251s # GMutex lock; 2251s # }; 2251s # 2251s # static void 2251s # _com_acme_coyote_skeleton_handle_method_call ( 2251s # GDBusConnection *connection G_GNUC_UNUSED, 2251s # const gchar *sender G_GNUC_UNUSED, 2251s # const gchar *object_path G_GNUC_UNUSED, 2251s # const gchar *interface_name, 2251s # const gchar *method_name, 2251s # GVariant *parameters, 2251s # GDBusMethodInvocation *invocation, 2251s # gpointer user_data) 2251s # { 2251s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 2251s # _ExtendedGDBusMethodInfo *info; 2251s # GVariantIter iter; 2251s # GVariant *child; 2251s # GValue *paramv; 2251s # gsize num_params; 2251s # guint num_extra; 2251s # gsize n; 2251s # guint signal_id; 2251s # GValue return_value = G_VALUE_INIT; 2251s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 2251s # g_assert (info != NULL); 2251s # num_params = g_variant_n_children (parameters); 2251s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 2251s # n = 0; 2251s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 2251s # g_value_set_object (¶mv[n++], skeleton); 2251s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 2251s # g_value_set_object (¶mv[n++], invocation); 2251s # if (info->pass_fdlist) 2251s # { 2251s # #ifdef G_OS_UNIX 2251s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 2251s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 2251s # #else 2251s # g_assert_not_reached (); 2251s # #endif 2251s # } 2251s # g_variant_iter_init (&iter, parameters); 2251s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 2251s # { 2251s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 2251s # if (arg_info->use_gvariant) 2251s # { 2251s # g_value_init (¶mv[n], G_TYPE_VARIANT); 2251s # g_value_set_variant (¶mv[n], child); 2251s # n++; 2251s # } 2251s # else 2251s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 2251s # g_variant_unref (child); 2251s # } 2251s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 2251s # g_value_init (&return_value, G_TYPE_BOOLEAN); 2251s # g_signal_emitv (paramv, signal_id, 0, &return_value); 2251s # if (!g_value_get_boolean (&return_value)) 2251s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 2251s # g_value_unset (&return_value); 2251s # for (n = 0; n < num_params + num_extra; n++) 2251s # g_value_unset (¶mv[n]); 2251s # g_free (paramv); 2251s # } 2251s # 2251s # static GVariant * 2251s # _com_acme_coyote_skeleton_handle_get_property ( 2251s # GDBusConnection *connection G_GNUC_UNUSED, 2251s # const gchar *sender G_GNUC_UNUSED, 2251s # const gchar *object_path G_GNUC_UNUSED, 2251s # const gchar *interface_name G_GNUC_UNUSED, 2251s # const gchar *property_name, 2251s # GError **error, 2251s # gpointer user_data) 2251s # { 2251s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 2251s # GValue value = G_VALUE_INIT; 2251s # GParamSpec *pspec; 2251s # _ExtendedGDBusPropertyInfo *info; 2251s # GVariant *ret; 2251s # ret = NULL; 2251s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 2251s # g_assert (info != NULL); 2251s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2251s # if (pspec == NULL) 2251s # { 2251s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2251s # } 2251s # else 2251s # { 2251s # g_value_init (&value, pspec->value_type); 2251s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2251s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 2251s # g_value_unset (&value); 2251s # } 2251s # return ret; 2251s # } 2251s # 2251s # static gboolean 2251s # _com_acme_coyote_skeleton_handle_set_property ( 2251s # GDBusConnection *connection G_GNUC_UNUSED, 2251s # const gchar *sender G_GNUC_UNUSED, 2251s # const gchar *object_path G_GNUC_UNUSED, 2251s # const gchar *interface_name G_GNUC_UNUSED, 2251s # const gchar *property_name, 2251s # GVariant *variant, 2251s # GError **error, 2251s # gpointer user_data) 2251s # { 2251s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 2251s # GValue value = G_VALUE_INIT; 2251s # GParamSpec *pspec; 2251s # _ExtendedGDBusPropertyInfo *info; 2251s # gboolean ret; 2251s # ret = FALSE; 2251s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 2251s # g_assert (info != NULL); 2251s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 2251s # if (pspec == NULL) 2251s # { 2251s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 2251s # } 2251s # else 2251s # { 2251s # if (info->use_gvariant) 2251s # g_value_set_variant (&value, variant); 2251s # else 2251s # g_dbus_gvariant_to_gvalue (variant, &value); 2251s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 2251s # g_value_unset (&value); 2251s # ret = TRUE; 2251s # } 2251s # return ret; 2251s # } 2251s # 2251s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 2251s # { 2251s # _com_acme_coyote_skeleton_handle_method_call, 2251s # _com_acme_coyote_skeleton_handle_get_property, 2251s # _com_acme_coyote_skeleton_handle_set_property, 2251s # {NULL} 2251s # }; 2251s # 2251s # static GDBusInterfaceInfo * 2251s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2251s # { 2251s # return com_acme_coyote_interface_info (); 2251s # } 2251s # 2251s # static GDBusInterfaceVTable * 2251s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 2251s # { 2251s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 2251s # } 2251s # 2251s # static GVariant * 2251s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 2251s # { 2251s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 2251s # 2251s # GVariantBuilder builder; 2251s # guint n; 2251s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2251s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2251s # #else 2251s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 2251s # #endif 2251s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 2251s # goto out; 2251s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 2251s # { 2251s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 2251s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 2251s # { 2251s # GVariant *value; 2251s # 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); 2251s # if (value != NULL) 2251s # { 2251s # g_variant_take_ref (value); 2251s # g_variant_builder_add (&builder, "{sv}", info->name, value); 2251s # g_variant_unref (value); 2251s # } 2251s # } 2251s # } 2251s # out: 2251s # return g_variant_builder_end (&builder); 2251s # } 2251s # 2251s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 2251s # 2251s # static void 2251s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 2251s # { 2251s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 2251s # gboolean emit_changed = FALSE; 2251s # 2251s # g_mutex_lock (&skeleton->priv->lock); 2251s # if (skeleton->priv->changed_properties_idle_source != NULL) 2251s # { 2251s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2251s # skeleton->priv->changed_properties_idle_source = NULL; 2251s # emit_changed = TRUE; 2251s # } 2251s # g_mutex_unlock (&skeleton->priv->lock); 2251s # 2251s # if (emit_changed) 2251s # _com_acme_coyote_emit_changed (skeleton); 2251s # } 2251s # 2251s # static void 2251s # _com_acme_coyote_on_signal_surprised ( 2251s # ComAcmeCoyote *object) 2251s # { 2251s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 2251s # 2251s # GList *connections, *l; 2251s # GVariant *signal_variant; 2251s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2251s # 2251s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 2251s # for (l = connections; l != NULL; l = l->next) 2251s # { 2251s # GDBusConnection *connection = l->data; 2251s # g_dbus_connection_emit_signal (connection, 2251s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 2251s # signal_variant, NULL); 2251s # } 2251s # g_variant_unref (signal_variant); 2251s # g_list_free_full (connections, g_object_unref); 2251s # } 2251s # 2251s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 2251s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2251s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2251s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 2251s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 2251s # 2251s # #else 2251s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 2251s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 2251s # 2251s # #endif 2251s # static void 2251s # com_acme_coyote_skeleton_finalize (GObject *object) 2251s # { 2251s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 2251s # guint n; 2251s # for (n = 0; n < 1; n++) 2251s # g_value_unset (&skeleton->priv->properties[n]); 2251s # g_free (skeleton->priv->properties); 2251s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2251s # if (skeleton->priv->changed_properties_idle_source != NULL) 2251s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 2251s # g_main_context_unref (skeleton->priv->context); 2251s # g_mutex_clear (&skeleton->priv->lock); 2251s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 2251s # } 2251s # 2251s # static void 2251s # com_acme_coyote_skeleton_get_property (GObject *object, 2251s # guint prop_id, 2251s # GValue *value, 2251s # GParamSpec *pspec G_GNUC_UNUSED) 2251s # { 2251s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 2251s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2251s # g_mutex_lock (&skeleton->priv->lock); 2251s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 2251s # g_mutex_unlock (&skeleton->priv->lock); 2251s # } 2251s # 2251s # static gboolean 2251s # _com_acme_coyote_emit_changed (gpointer user_data) 2251s # { 2251s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 2251s # GList *l; 2251s # GVariantBuilder builder; 2251s # GVariantBuilder invalidated_builder; 2251s # guint num_changes; 2251s # 2251s # g_mutex_lock (&skeleton->priv->lock); 2251s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 2251s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 2251s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 2251s # #else 2251s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 2251s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 2251s # #endif 2251s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 2251s # { 2251s # ChangedProperty *cp = l->data; 2251s # GVariant *variant; 2251s # const GValue *cur_value; 2251s # 2251s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 2251s # if (!_g_value_equal (cur_value, &cp->orig_value)) 2251s # { 2251s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 2251s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 2251s # g_variant_unref (variant); 2251s # num_changes++; 2251s # } 2251s # } 2251s # if (num_changes > 0) 2251s # { 2251s # GList *connections, *ll; 2251s # GVariant *signal_variant; 2251s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 2251s # &builder, &invalidated_builder)); 2251s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 2251s # for (ll = connections; ll != NULL; ll = ll->next) 2251s # { 2251s # GDBusConnection *connection = ll->data; 2251s # 2251s # g_dbus_connection_emit_signal (connection, 2251s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 2251s # "org.freedesktop.DBus.Properties", 2251s # "PropertiesChanged", 2251s # signal_variant, 2251s # NULL); 2251s # } 2251s # g_variant_unref (signal_variant); 2251s # g_list_free_full (connections, g_object_unref); 2251s # } 2251s # else 2251s # { 2251s # g_variant_builder_clear (&builder); 2251s # g_variant_builder_clear (&invalidated_builder); 2251s # } 2251s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 2251s # skeleton->priv->changed_properties = NULL; 2251s # skeleton->priv->changed_properties_idle_source = NULL; 2251s # g_mutex_unlock (&skeleton->priv->lock); 2251s # return FALSE; 2251s # } 2251s # 2251s # static void 2251s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 2251s # { 2251s # ChangedProperty *cp; 2251s # GList *l; 2251s # cp = NULL; 2251s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 2251s # { 2251s # ChangedProperty *i_cp = l->data; 2251s # if (i_cp->info == info) 2251s # { 2251s # cp = i_cp; 2251s # break; 2251s # } 2251s # } 2251s # if (cp == NULL) 2251s # { 2251s # cp = g_new0 (ChangedProperty, 1); 2251s # cp->prop_id = prop_id; 2251s # cp->info = info; 2251s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 2251s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 2251s # g_value_copy (orig_value, &cp->orig_value); 2251s # } 2251s # } 2251s # 2251s # static void 2251s # com_acme_coyote_skeleton_notify (GObject *object, 2251s # GParamSpec *pspec G_GNUC_UNUSED) 2251s # { 2251s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 2251s # g_mutex_lock (&skeleton->priv->lock); 2251s # if (skeleton->priv->changed_properties != NULL && 2251s # skeleton->priv->changed_properties_idle_source == NULL) 2251s # { 2251s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 2251s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 2251s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 2251s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 2251s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 2251s # g_source_unref (skeleton->priv->changed_properties_idle_source); 2251s # } 2251s # g_mutex_unlock (&skeleton->priv->lock); 2251s # } 2251s # 2251s # static void 2251s # com_acme_coyote_skeleton_set_property (GObject *object, 2251s # guint prop_id, 2251s # const GValue *value, 2251s # GParamSpec *pspec) 2251s # { 2251s # const _ExtendedGDBusPropertyInfo *info; 2251s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 2251s # g_assert (prop_id != 0 && prop_id - 1 < 1); 2251s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 2251s # g_mutex_lock (&skeleton->priv->lock); 2251s # g_object_freeze_notify (object); 2251s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 2251s # { 2251s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 2251s # info->emits_changed_signal) 2251s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 2251s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 2251s # g_object_notify_by_pspec (object, pspec); 2251s # } 2251s # g_mutex_unlock (&skeleton->priv->lock); 2251s # g_object_thaw_notify (object); 2251s # } 2251s # 2251s # static void 2251s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 2251s # { 2251s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 2251s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 2251s # #else 2251s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 2251s # #endif 2251s # 2251s # g_mutex_init (&skeleton->priv->lock); 2251s # skeleton->priv->context = g_main_context_ref_thread_default (); 2251s # skeleton->priv->properties = g_new0 (GValue, 1); 2251s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 2251s # } 2251s # 2251s # static const gchar * 2251s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 2251s # { 2251s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 2251s # const gchar *value; 2251s # g_mutex_lock (&skeleton->priv->lock); 2251s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 2251s # g_mutex_unlock (&skeleton->priv->lock); 2251s # return value; 2251s # } 2251s # 2251s # static void 2251s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 2251s # { 2251s # GObjectClass *gobject_class; 2251s # GDBusInterfaceSkeletonClass *skeleton_class; 2251s # 2251s # gobject_class = G_OBJECT_CLASS (klass); 2251s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 2251s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 2251s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 2251s # gobject_class->notify = com_acme_coyote_skeleton_notify; 2251s # 2251s # 2251s # com_acme_coyote_override_properties (gobject_class, 1); 2251s # 2251s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 2251s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 2251s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 2251s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 2251s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 2251s # 2251s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 2251s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 2251s # #endif 2251s # } 2251s # 2251s # static void 2251s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 2251s # { 2251s # iface->surprised = _com_acme_coyote_on_signal_surprised; 2251s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 2251s # } 2251s # 2251s # /** 2251s # * com_acme_coyote_skeleton_new: 2251s # * 2251s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 2251s # * 2251s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 2251s # */ 2251s # ComAcmeCoyote * 2251s # com_acme_coyote_skeleton_new (void) 2251s # { 2251s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 2251s # } 2251s # Error: 2252s ok - glib/codegen.py.test 2252s # Running test: glib/macros.test 2252s ok - glib/macros.test 2252s # Running test: glib/repository-search-paths.test 2252s ok - glib/repository-search-paths.test 2252s # Running test: glib/properties.test 2252s ok - glib/properties.test 2252s # Running test: glib/resolver-parsing.test 2252s ok - glib/resolver-parsing.test 2252s # Running test: glib/macros-c-99.test 2252s ok - glib/macros-c-99.test 2252s # Running test: glib/gsubprocess.test 2252s ok 39 __main__.TestCodegen.test_unix_fd_types_and_annotations 2252s # gdbus-codegen: /usr/bin/gdbus-codegen 2252s # tmpdir: /tmp/tmpo_oepuex 2252s # /tmp/tmpo_oepuex/tmphxqqdgam.xml: 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo_oepuex/tmphxqqdgam.xml', '--output', '-', '--header'] 2252s # Return code: 0 2252s # Output: 2252s # /* 2252s # * This file is generated by gdbus-codegen, do not modify it. 2252s # * 2252s # * The license of this code is the same as for the D-Bus interface description 2252s # * it was derived from. Note that it links to GLib, so must comply with the 2252s # * LGPL linking clauses. 2252s # */ 2252s # 2252s # #ifndef __STDOUT__ 2252s # #define __STDOUT__ 2252s # 2252s # #include 2252s # 2252s # G_BEGIN_DECLS 2252s # 2252s # 2252s # /* ------------------------------------------------------------------------ */ 2252s # /* Declarations for FDPassing */ 2252s # 2252s # #define TYPE_FDPASSING (fdpassing_get_type ()) 2252s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 2252s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 2252s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 2252s # 2252s # struct _FDPassing; 2252s # typedef struct _FDPassing FDPassing; 2252s # typedef struct _FDPassingIface FDPassingIface; 2252s # 2252s # struct _FDPassingIface 2252s # { 2252s # GTypeInterface parent_iface; 2252s # 2252s # gboolean (*handle_hello_fd) ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation, 2252s # GUnixFDList *fd_list, 2252s # const gchar *arg_greeting); 2252s # 2252s # gboolean (*handle_no_annotation) ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation, 2252s # GVariant *arg_greeting, 2252s # const gchar *arg_greeting_locale); 2252s # 2252s # gboolean (*handle_no_annotation_nested) ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation, 2252s # GVariant *arg_files); 2252s # 2252s # }; 2252s # 2252s # GType fdpassing_get_type (void) G_GNUC_CONST; 2252s # 2252s # GDBusInterfaceInfo *fdpassing_interface_info (void); 2252s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 2252s # 2252s # 2252s # /* D-Bus method call completion functions: */ 2252s # void fdpassing_complete_hello_fd ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation, 2252s # GUnixFDList *fd_list, 2252s # const gchar *response); 2252s # 2252s # void fdpassing_complete_no_annotation ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation, 2252s # GVariant *response, 2252s # const gchar *response_locale); 2252s # 2252s # void fdpassing_complete_no_annotation_nested ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation); 2252s # 2252s # 2252s # 2252s # /* D-Bus method calls: */ 2252s # void fdpassing_call_hello_fd ( 2252s # FDPassing *proxy, 2252s # const gchar *arg_greeting, 2252s # GUnixFDList *fd_list, 2252s # GCancellable *cancellable, 2252s # GAsyncReadyCallback callback, 2252s # gpointer user_data); 2252s # 2252s # gboolean fdpassing_call_hello_fd_finish ( 2252s # FDPassing *proxy, 2252s # gchar **out_response, 2252s # GUnixFDList **out_fd_list, 2252s # GAsyncResult *res, 2252s # GError **error); 2252s # 2252s # gboolean fdpassing_call_hello_fd_sync ( 2252s # FDPassing *proxy, 2252s # const gchar *arg_greeting, 2252s # GUnixFDList *fd_list, 2252s # gchar **out_response, 2252s # GUnixFDList **out_fd_list, 2252s # GCancellable *cancellable, 2252s # GError **error); 2252s # 2252s # void fdpassing_call_no_annotation ( 2252s # FDPassing *proxy, 2252s # GVariant *arg_greeting, 2252s # const gchar *arg_greeting_locale, 2252s # GCancellable *cancellable, 2252s # GAsyncReadyCallback callback, 2252s # gpointer user_data); 2252s # 2252s # gboolean fdpassing_call_no_annotation_finish ( 2252s # FDPassing *proxy, 2252s # GVariant **out_response, 2252s # gchar **out_response_locale, 2252s # GAsyncResult *res, 2252s # GError **error); 2252s # 2252s # gboolean fdpassing_call_no_annotation_sync ( 2252s # FDPassing *proxy, 2252s # GVariant *arg_greeting, 2252s # const gchar *arg_greeting_locale, 2252s # GVariant **out_response, 2252s # gchar **out_response_locale, 2252s # GCancellable *cancellable, 2252s # GError **error); 2252s # 2252s # void fdpassing_call_no_annotation_nested ( 2252s # FDPassing *proxy, 2252s # GVariant *arg_files, 2252s # GCancellable *cancellable, 2252s # GAsyncReadyCallback callback, 2252s # gpointer user_data); 2252s # 2252s # gboolean fdpassing_call_no_annotation_nested_finish ( 2252s # FDPassing *proxy, 2252s # GAsyncResult *res, 2252s # GError **error); 2252s # 2252s # gboolean fdpassing_call_no_annotation_nested_sync ( 2252s # FDPassing *proxy, 2252s # GVariant *arg_files, 2252s # GCancellable *cancellable, 2252s # GError **error); 2252s # 2252s # 2252s # 2252s # /* ---- */ 2252s # 2252s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 2252s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 2252s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 2252s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 2252s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 2252s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 2252s # 2252s # typedef struct _FDPassingProxy FDPassingProxy; 2252s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 2252s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 2252s # 2252s # struct _FDPassingProxy 2252s # { 2252s # /*< private >*/ 2252s # GDBusProxy parent_instance; 2252s # FDPassingProxyPrivate *priv; 2252s # }; 2252s # 2252s # struct _FDPassingProxyClass 2252s # { 2252s # GDBusProxyClass parent_class; 2252s # }; 2252s # 2252s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 2252s # 2252s # #if GLIB_CHECK_VERSION(2, 44, 0) 2252s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 2252s # #endif 2252s # 2252s # void fdpassing_proxy_new ( 2252s # GDBusConnection *connection, 2252s # GDBusProxyFlags flags, 2252s # const gchar *name, 2252s # const gchar *object_path, 2252s # GCancellable *cancellable, 2252s # GAsyncReadyCallback callback, 2252s # gpointer user_data); 2252s # FDPassing *fdpassing_proxy_new_finish ( 2252s # GAsyncResult *res, 2252s # GError **error); 2252s # FDPassing *fdpassing_proxy_new_sync ( 2252s # GDBusConnection *connection, 2252s # GDBusProxyFlags flags, 2252s # const gchar *name, 2252s # const gchar *object_path, 2252s # GCancellable *cancellable, 2252s # GError **error); 2252s # 2252s # void fdpassing_proxy_new_for_bus ( 2252s # GBusType bus_type, 2252s # GDBusProxyFlags flags, 2252s # const gchar *name, 2252s # const gchar *object_path, 2252s # GCancellable *cancellable, 2252s # GAsyncReadyCallback callback, 2252s # gpointer user_data); 2252s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 2252s # GAsyncResult *res, 2252s # GError **error); 2252s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 2252s # GBusType bus_type, 2252s # GDBusProxyFlags flags, 2252s # const gchar *name, 2252s # const gchar *object_path, 2252s # GCancellable *cancellable, 2252s # GError **error); 2252s # 2252s # 2252s # /* ---- */ 2252s # 2252s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 2252s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 2252s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 2252s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 2252s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 2252s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 2252s # 2252s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 2252s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 2252s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 2252s # 2252s # struct _FDPassingSkeleton 2252s # { 2252s # /*< private >*/ 2252s # GDBusInterfaceSkeleton parent_instance; 2252s # FDPassingSkeletonPrivate *priv; 2252s # }; 2252s # 2252s # struct _FDPassingSkeletonClass 2252s # { 2252s # GDBusInterfaceSkeletonClass parent_class; 2252s # }; 2252s # 2252s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 2252s # 2252s # #if GLIB_CHECK_VERSION(2, 44, 0) 2252s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 2252s # #endif 2252s # 2252s # FDPassing *fdpassing_skeleton_new (void); 2252s # 2252s # 2252s # G_END_DECLS 2252s # 2252s # #endif /* __STDOUT__ */ 2252s # Error: 2252s # 2252s # /tmp/tmpo_oepuex/tmpbei43xur.xml: 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo_oepuex/tmpbei43xur.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 2252s # Return code: 0 2252s # Output: 2252s # /* 2252s # * This file is generated by gdbus-codegen, do not modify it. 2252s # * 2252s # * The license of this code is the same as for the D-Bus interface description 2252s # * it was derived from. Note that it links to GLib, so must comply with the 2252s # * LGPL linking clauses. 2252s # */ 2252s # 2252s # #ifndef __STDOUT__ 2252s # #define __STDOUT__ 2252s # 2252s # #include 2252s # 2252s # G_BEGIN_DECLS 2252s # 2252s # 2252s # /* ------------------------------------------------------------------------ */ 2252s # /* Declarations for FDPassing */ 2252s # 2252s # #define TYPE_FDPASSING (fdpassing_get_type ()) 2252s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 2252s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 2252s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 2252s # 2252s # struct _FDPassing; 2252s # typedef struct _FDPassing FDPassing; 2252s # typedef struct _FDPassingIface FDPassingIface; 2252s # 2252s # struct _FDPassingIface 2252s # { 2252s # GTypeInterface parent_iface; 2252s # 2252s # gboolean (*handle_hello_fd) ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation, 2252s # GUnixFDList *fd_list, 2252s # const gchar *arg_greeting); 2252s # 2252s # gboolean (*handle_no_annotation) ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation, 2252s # GVariant *arg_greeting, 2252s # const gchar *arg_greeting_locale); 2252s # 2252s # gboolean (*handle_no_annotation_nested) ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation, 2252s # GVariant *arg_files); 2252s # 2252s # }; 2252s # 2252s # GType fdpassing_get_type (void) G_GNUC_CONST; 2252s # 2252s # GDBusInterfaceInfo *fdpassing_interface_info (void); 2252s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 2252s # 2252s # 2252s # /* D-Bus method call completion functions: */ 2252s # void fdpassing_complete_hello_fd ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation, 2252s # GUnixFDList *fd_list, 2252s # const gchar *response); 2252s # 2252s # void fdpassing_complete_no_annotation ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation, 2252s # GVariant *response, 2252s # const gchar *response_locale); 2252s # 2252s # void fdpassing_complete_no_annotation_nested ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation); 2252s # 2252s # 2252s # 2252s # /* D-Bus method calls: */ 2252s # void fdpassing_call_hello_fd ( 2252s # FDPassing *proxy, 2252s # const gchar *arg_greeting, 2252s # GUnixFDList *fd_list, 2252s # GCancellable *cancellable, 2252s # GAsyncReadyCallback callback, 2252s # gpointer user_data); 2252s # 2252s # gboolean fdpassing_call_hello_fd_finish ( 2252s # FDPassing *proxy, 2252s # gchar **out_response, 2252s # GUnixFDList **out_fd_list, 2252s # GAsyncResult *res, 2252s # GError **error); 2252s # 2252s # gboolean fdpassing_call_hello_fd_sync ( 2252s # FDPassing *proxy, 2252s # const gchar *arg_greeting, 2252s # GUnixFDList *fd_list, 2252s # gchar **out_response, 2252s # GUnixFDList **out_fd_list, 2252s # GCancellable *cancellable, 2252s # GError **error); 2252s # 2252s # void fdpassing_call_no_annotation ( 2252s # FDPassing *proxy, 2252s # GVariant *arg_greeting, 2252s # const gchar *arg_greeting_locale, 2252s # GCancellable *cancellable, 2252s # GAsyncReadyCallback callback, 2252s # gpointer user_data); 2252s # 2252s # gboolean fdpassing_call_no_annotation_finish ( 2252s # FDPassing *proxy, 2252s # GVariant **out_response, 2252s # gchar **out_response_locale, 2252s # GAsyncResult *res, 2252s # GError **error); 2252s # 2252s # gboolean fdpassing_call_no_annotation_sync ( 2252s # FDPassing *proxy, 2252s # GVariant *arg_greeting, 2252s # const gchar *arg_greeting_locale, 2252s # GVariant **out_response, 2252s # gchar **out_response_locale, 2252s # GCancellable *cancellable, 2252s # GError **error); 2252s # 2252s # void fdpassing_call_no_annotation_nested ( 2252s # FDPassing *proxy, 2252s # GVariant *arg_files, 2252s # GCancellable *cancellable, 2252s # GAsyncReadyCallback callback, 2252s # gpointer user_data); 2252s # 2252s # gboolean fdpassing_call_no_annotation_nested_finish ( 2252s # FDPassing *proxy, 2252s # GAsyncResult *res, 2252s # GError **error); 2252s # 2252s # gboolean fdpassing_call_no_annotation_nested_sync ( 2252s # FDPassing *proxy, 2252s # GVariant *arg_files, 2252s # GCancellable *cancellable, 2252s # GError **error); 2252s # 2252s # 2252s # 2252s # /* ---- */ 2252s # 2252s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 2252s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 2252s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 2252s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 2252s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 2252s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 2252s # 2252s # typedef struct _FDPassingProxy FDPassingProxy; 2252s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 2252s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 2252s # 2252s # struct _FDPassingProxy 2252s # { 2252s # /*< private >*/ 2252s # GDBusProxy parent_instance; 2252s # FDPassingProxyPrivate *priv; 2252s # }; 2252s # 2252s # struct _FDPassingProxyClass 2252s # { 2252s # GDBusProxyClass parent_class; 2252s # }; 2252s # 2252s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 2252s # 2252s # #if GLIB_CHECK_VERSION(2, 44, 0) 2252s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 2252s # #endif 2252s # 2252s # void fdpassing_proxy_new ( 2252s # GDBusConnection *connection, 2252s # GDBusProxyFlags flags, 2252s # const gchar *name, 2252s # const gchar *object_path, 2252s # GCancellable *cancellable, 2252s # GAsyncReadyCallback callback, 2252s # gpointer user_data); 2252s # FDPassing *fdpassing_proxy_new_finish ( 2252s # GAsyncResult *res, 2252s # GError **error); 2252s # FDPassing *fdpassing_proxy_new_sync ( 2252s # GDBusConnection *connection, 2252s # GDBusProxyFlags flags, 2252s # const gchar *name, 2252s # const gchar *object_path, 2252s # GCancellable *cancellable, 2252s # GError **error); 2252s # 2252s # void fdpassing_proxy_new_for_bus ( 2252s # GBusType bus_type, 2252s # GDBusProxyFlags flags, 2252s # const gchar *name, 2252s # const gchar *object_path, 2252s # GCancellable *cancellable, 2252s # GAsyncReadyCallback callback, 2252s # gpointer user_data); 2252s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 2252s # GAsyncResult *res, 2252s # GError **error); 2252s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 2252s # GBusType bus_type, 2252s # GDBusProxyFlags flags, 2252s # const gchar *name, 2252s # const gchar *object_path, 2252s # GCancellable *cancellable, 2252s # GError **error); 2252s # 2252s # 2252s # /* ---- */ 2252s # 2252s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 2252s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 2252s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 2252s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 2252s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 2252s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 2252s # 2252s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 2252s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 2252s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 2252s # 2252s # struct _FDPassingSkeleton 2252s # { 2252s # /*< private >*/ 2252s # GDBusInterfaceSkeleton parent_instance; 2252s # FDPassingSkeletonPrivate *priv; 2252s # }; 2252s # 2252s # struct _FDPassingSkeletonClass 2252s # { 2252s # GDBusInterfaceSkeletonClass parent_class; 2252s # }; 2252s # 2252s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 2252s # 2252s # #if GLIB_CHECK_VERSION(2, 44, 0) 2252s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 2252s # #endif 2252s # 2252s # FDPassing *fdpassing_skeleton_new (void); 2252s # 2252s # 2252s # G_END_DECLS 2252s # 2252s # #endif /* __STDOUT__ */ 2252s # Error: 2252s # 2252s # /tmp/tmpo_oepuex/tmp9jkw9fbh.xml: 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # 2252s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpo_oepuex/tmp9jkw9fbh.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 2252s # Return code: 0 2252s # Output: 2252s # /* 2252s # * This file is generated by gdbus-codegen, do not modify it. 2252s # * 2252s # * The license of this code is the same as for the D-Bus interface description 2252s # * it was derived from. Note that it links to GLib, so must comply with the 2252s # * LGPL linking clauses. 2252s # */ 2252s # 2252s # #ifndef __STDOUT__ 2252s # #define __STDOUT__ 2252s # 2252s # #include 2252s # 2252s # G_BEGIN_DECLS 2252s # 2252s # 2252s # /* ------------------------------------------------------------------------ */ 2252s # /* Declarations for FDPassing */ 2252s # 2252s # #define TYPE_FDPASSING (fdpassing_get_type ()) 2252s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 2252s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 2252s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 2252s # 2252s # struct _FDPassing; 2252s # typedef struct _FDPassing FDPassing; 2252s # typedef struct _FDPassingIface FDPassingIface; 2252s # 2252s # struct _FDPassingIface 2252s # { 2252s # GTypeInterface parent_iface; 2252s # 2252s # gboolean (*handle_hello_fd) ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation, 2252s # GUnixFDList *fd_list, 2252s # const gchar *arg_greeting); 2252s # 2252s # gboolean (*handle_no_annotation) ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation, 2252s # GUnixFDList *fd_list, 2252s # GVariant *arg_greeting, 2252s # const gchar *arg_greeting_locale); 2252s # 2252s # gboolean (*handle_no_annotation_nested) ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation, 2252s # GUnixFDList *fd_list, 2252s # GVariant *arg_files); 2252s # 2252s # }; 2252s # 2252s # GType fdpassing_get_type (void) G_GNUC_CONST; 2252s # 2252s # GDBusInterfaceInfo *fdpassing_interface_info (void); 2252s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 2252s # 2252s # 2252s # /* D-Bus method call completion functions: */ 2252s # void fdpassing_complete_hello_fd ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation, 2252s # GUnixFDList *fd_list, 2252s # const gchar *response); 2252s # 2252s # void fdpassing_complete_no_annotation ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation, 2252s # GUnixFDList *fd_list, 2252s # GVariant *response, 2252s # const gchar *response_locale); 2252s # 2252s # void fdpassing_complete_no_annotation_nested ( 2252s # FDPassing *object, 2252s # GDBusMethodInvocation *invocation, 2252s # GUnixFDList *fd_list); 2252s # 2252s # 2252s # 2252s # /* D-Bus method calls: */ 2252s # void fdpassing_call_hello_fd ( 2252s # FDPassing *proxy, 2252s # const gchar *arg_greeting, 2252s # GDBusCallFlags call_flags, 2252s # gint timeout_msec, 2252s # GUnixFDList *fd_list, 2252s # GCancellable *cancellable, 2252s # GAsyncReadyCallback callback, 2252s # gpointer user_data); 2252s # 2252s # gboolean fdpassing_call_hello_fd_finish ( 2252s # FDPassing *proxy, 2252s # gchar **out_response, 2252s # GUnixFDList **out_fd_list, 2252s # GAsyncResult *res, 2252s # GError **error); 2252s # 2252s # gboolean fdpassing_call_hello_fd_sync ( 2252s # FDPassing *proxy, 2252s # const gchar *arg_greeting, 2252s # GDBusCallFlags call_flags, 2252s # gint timeout_msec, 2252s # GUnixFDList *fd_list, 2252s # gchar **out_response, 2252s # GUnixFDList **out_fd_list, 2252s # GCancellable *cancellable, 2252s # GError **error); 2252s # 2252s # void fdpassing_call_no_annotation ( 2252s # FDPassing *proxy, 2252s # GVariant *arg_greeting, 2252s # const gchar *arg_greeting_locale, 2252s # GDBusCallFlags call_flags, 2252s # gint timeout_msec, 2252s # GUnixFDList *fd_list, 2252s # GCancellable *cancellable, 2252s # GAsyncReadyCallback callback, 2252s # gpointer user_data); 2252s # 2252s # gboolean fdpassing_call_no_annotation_finish ( 2252s # FDPassing *proxy, 2252s # GVariant **out_response, 2252s # gchar **out_response_locale, 2252s # GUnixFDList **out_fd_list, 2252s # GAsyncResult *res, 2252s # GError **error); 2252s # 2252s # gboolean fdpassing_call_no_annotation_sync ( 2252s # FDPassing *proxy, 2252s # GVariant *arg_greeting, 2252s # const gchar *arg_greeting_locale, 2252s # GDBusCallFlags call_flags, 2252s # gint timeout_msec, 2252s # GUnixFDList *fd_list, 2252s # GVariant **out_response, 2252s # gchar **out_response_locale, 2252s # GUnixFDList **out_fd_list, 2252s # GCancellable *cancellable, 2252s # GError **error); 2252s # 2252s # void fdpassing_call_no_annotation_nested ( 2252s # FDPassing *proxy, 2252s # GVariant *arg_files, 2252s # GDBusCallFlags call_flags, 2252s # gint timeout_msec, 2252s # GUnixFDList *fd_list, 2252s # GCancellable *cancellable, 2252s # GAsyncReadyCallback callback, 2252s # gpointer user_data); 2252s # 2252s # gboolean fdpassing_call_no_annotation_nested_finish ( 2252s # FDPassing *proxy, 2252s # GUnixFDList **out_fd_list, 2252s # GAsyncResult *res, 2252s # GError **error); 2252s # 2252s # gboolean fdpassing_call_no_annotation_nested_sync ( 2252s # FDPassing *proxy, 2252s # GVariant *arg_files, 2252s # GDBusCallFlags call_flags, 2252s # gint timeout_msec, 2252s # GUnixFDList *fd_list, 2252s # GUnixFDList **out_fd_list, 2252s # GCancellable *cancellable, 2252s # GError **error); 2252s # 2252s # 2252s # 2252s # /* ---- */ 2252s # 2252s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 2252s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 2252s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 2252s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 2252s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 2252s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 2252s # 2252s # typedef struct _FDPassingProxy FDPassingProxy; 2252s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 2252s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 2252s # 2252s # struct _FDPassingProxy 2252s # { 2252s # /*< private >*/ 2252s # GDBusProxy parent_instance; 2252s # FDPassingProxyPrivate *priv; 2252s # }; 2252s # 2252s # struct _FDPassingProxyClass 2252s # { 2252s # GDBusProxyClass parent_class; 2252s # }; 2252s # 2252s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 2252s # 2252s # #if GLIB_CHECK_VERSION(2, 44, 0) 2252s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 2252s # #endif 2252s # 2252s # void fdpassing_proxy_new ( 2252s # GDBusConnection *connection, 2252s # GDBusProxyFlags flags, 2252s # const gchar *name, 2252s # const gchar *object_path, 2252s # GCancellable *cancellable, 2252s # GAsyncReadyCallback callback, 2252s # gpointer user_data); 2252s # FDPassing *fdpassing_proxy_new_finish ( 2252s # GAsyncResult *res, 2252s # GError **error); 2252s # FDPassing *fdpassing_proxy_new_sync ( 2252s # GDBusConnection *connection, 2252s # GDBusProxyFlags flags, 2252s # const gchar *name, 2252s # const gchar *object_path, 2252s # GCancellable *cancellable, 2252s # GError **error); 2252s # 2252s # void fdpassing_proxy_new_for_bus ( 2252s # GBusType bus_type, 2252s # GDBusProxyFlags flags, 2252s # const gchar *name, 2252s # const gchar *object_path, 2252s # GCancellable *cancellable, 2252s # GAsyncReadyCallback callback, 2252s # gpointer user_data); 2252s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 2252s # GAsyncResult *res, 2252s # GError **error); 2252s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 2252s # GBusType bus_type, 2252s # GDBusProxyFlags flags, 2252s # const gchar *name, 2252s # const gchar *object_path, 2252s # GCancellable *cancellable, 2252s # GError **error); 2252s # 2252s # 2252s # /* ---- */ 2252s # 2252s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 2252s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 2252s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 2252s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 2252s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 2252s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 2252s # 2252s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 2252s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 2252s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 2252s # 2252s # struct _FDPassingSkeleton 2252s # { 2252s # /*< private >*/ 2252s # GDBusInterfaceSkeleton parent_instance; 2252s # FDPassingSkeletonPrivate *priv; 2252s # }; 2252s # 2252s # struct _FDPassingSkeletonClass 2252s # { 2252s # GDBusInterfaceSkeletonClass parent_class; 2252s # }; 2252s # 2252s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 2252s # 2252s # #if GLIB_CHECK_VERSION(2, 44, 0) 2252s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 2252s # #endif 2252s # 2252s # FDPassing *fdpassing_skeleton_new (void); 2252s # 2252s # 2252s # G_END_DECLS 2252s # 2252s # #endif /* __STDOUT__ */ 2252s # Error: 2252s 1..39 2252s TAP version 14 2252s # random seed: R02Se815bd0b1a6e4e640b794fa22c83185e 2252s 1..3 2252s # Start of alignof tests 2252s ok 1 /alignof/fallback 2252s # End of alignof tests 2252s # Start of assert tests 2252s ok 2 /assert/static 2252s # End of assert tests 2252s # Start of struct tests 2252s ok 3 /struct/sizeof_member 2252s # End of struct tests 2252s TAP version 14 2252s # random seed: R02Sb9c5d35ac3a668adc14ab22ed182e28f 2252s 1..4 2252s # Start of repository tests 2252s # Start of search-paths tests 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_K16GK3/repository/search-paths/default/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_K16GK3/repository/search-paths/default/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_K16GK3/repository/search-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_K16GK3/repository/search-paths/default/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_K16GK3/repository/search-paths/default/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_K16GK3/repository/search-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_K16GK3/repository/search-paths/default/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_K16GK3/repository/search-paths/default/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_K16GK3/repository/search-paths/default/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_K16GK3/repository/search-paths/default/.dirs/runtime 2252s ok 1 /repository/search-paths/default 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_K16GK3/repository/search-paths/prepend/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_K16GK3/repository/search-paths/prepend/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_K16GK3/repository/search-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_K16GK3/repository/search-paths/prepend/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_K16GK3/repository/search-paths/prepend/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_K16GK3/repository/search-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_K16GK3/repository/search-paths/prepend/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_K16GK3/repository/search-paths/prepend/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_K16GK3/repository/search-paths/prepend/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_K16GK3/repository/search-paths/prepend/.dirs/runtime 2252s ok 2 /repository/search-paths/prepend 2252s # End of search-paths tests 2252s # Start of library-paths tests 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_K16GK3/repository/library-paths/default/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_K16GK3/repository/library-paths/default/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_K16GK3/repository/library-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_K16GK3/repository/library-paths/default/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_K16GK3/repository/library-paths/default/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_K16GK3/repository/library-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_K16GK3/repository/library-paths/default/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_K16GK3/repository/library-paths/default/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_K16GK3/repository/library-paths/default/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_K16GK3/repository/library-paths/default/.dirs/runtime 2252s ok 3 /repository/library-paths/default 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_K16GK3/repository/library-paths/prepend/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_K16GK3/repository/library-paths/prepend/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_K16GK3/repository/library-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_K16GK3/repository/library-paths/prepend/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_K16GK3/repository/library-paths/prepend/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_K16GK3/repository/library-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_K16GK3/repository/library-paths/prepend/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_K16GK3/repository/library-paths/prepend/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_K16GK3/repository/library-paths/prepend/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_K16GK3/repository/library-paths/prepend/.dirs/runtime 2252s ok 4 /repository/library-paths/prepend 2252s # End of library-paths tests 2252s # End of repository tests 2252s TAP version 14 2252s # random seed: R02S4904e4a98e3b5d0ee4b1617e4e0089d2 2252s 1..14 2252s # Start of properties tests 2252s ok 1 /properties/install 2252s ok 2 /properties/install-many 2252s ok 3 /properties/notify 2252s ok 4 /properties/notify-queue 2252s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=630357 2252s ok 5 /properties/construct 2252s # /properties/get-property summary: g_object_get_property() accepts uninitialized, initialized, and transformable values 2252s # Test g_object_get_property with an initialized value 2252s # Test g_object_get_property with an uninitialized value 2252s # Test g_object_get_property with a transformable value 2252s ok 6 /properties/get-property 2252s ok 7 /properties/testv_with_no_properties 2252s ok 8 /properties/testv_with_valid_properties 2252s ok 9 /properties/testv_with_invalid_property_type 2252s ok 10 /properties/testv_with_invalid_property_names 2252s ok 11 /properties/testv_getv 2252s ok 12 /properties/testv_notify_queue 2252s # Start of notify tests 2252s ok 13 /properties/notify/too-many-freezes 2252s # End of notify tests 2252s # Start of set-property tests 2252s # Start of variant tests 2252s # /properties/set-property/variant/floating summary: Test that setting a property to a floating variant consumes the reference 2252s ok 14 /properties/set-property/variant/floating 2252s # End of variant tests 2252s # End of set-property tests 2252s # End of properties tests 2252s TAP version 14 2252s # random seed: R02Sf7bac6d835f7af503ad3867a4288881d 2252s 1..21 2252s # Start of gresolver tests 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/invalid-header/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/invalid-header/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/invalid-header/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/invalid-header/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/invalid-header/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/invalid-header/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/invalid-header/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/invalid-header/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/invalid-header/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/invalid-header/.dirs/runtime 2252s ok 1 /gresolver/invalid-header 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/record-ownership/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/record-ownership/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/record-ownership/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/record-ownership/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/record-ownership/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/record-ownership/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/record-ownership/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/record-ownership/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/record-ownership/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/record-ownership/.dirs/runtime 2252s ok 2 /gresolver/record-ownership 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/unknown-record-type/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/unknown-record-type/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/unknown-record-type/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/unknown-record-type/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/unknown-record-type/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/unknown-record-type/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/unknown-record-type/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/unknown-record-type/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/unknown-record-type/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/unknown-record-type/.dirs/runtime 2252s # GLib-GIO-DEBUG: Unrecognized DNS record type 20 2252s ok 3 /gresolver/unknown-record-type 2252s # Start of mx tests 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/valid/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/valid/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/valid/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/mx/valid/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/valid/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/valid/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/mx/valid/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/valid/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/valid/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/valid/.dirs/runtime 2252s ok 4 /gresolver/mx/valid 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/.dirs/runtime 2252s ok 5 /gresolver/mx/invalid 2252s # Start of invalid tests 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short/.dirs/runtime 2252s ok 6 /gresolver/mx/invalid/too-short 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short2/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short2/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short2/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short2/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short2/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short2/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short2/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/mx/invalid/too-short2/.dirs/runtime 2252s ok 7 /gresolver/mx/invalid/too-short2 2252s # End of invalid tests 2252s # End of mx tests 2252s # Start of ns tests 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/ns/valid/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/ns/valid/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/ns/valid/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/ns/valid/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/ns/valid/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/ns/valid/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/ns/valid/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/ns/valid/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/ns/valid/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/ns/valid/.dirs/runtime 2252s ok 8 /gresolver/ns/valid 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/ns/invalid/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/ns/invalid/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/ns/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/ns/invalid/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/ns/invalid/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/ns/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/ns/invalid/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/ns/invalid/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/ns/invalid/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/ns/invalid/.dirs/runtime 2252s ok 9 /gresolver/ns/invalid 2252s # End of ns tests 2252s # Start of soa tests 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/valid/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/valid/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/valid/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/soa/valid/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/valid/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/valid/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/soa/valid/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/valid/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/valid/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/valid/.dirs/runtime 2252s ok 10 /gresolver/soa/valid 2252s # Start of invalid tests 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/mname/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/mname/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/mname/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/mname/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/mname/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/mname/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/mname/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/mname/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/mname/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/mname/.dirs/runtime 2252s ok 11 /gresolver/soa/invalid/mname 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/rname/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/rname/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/rname/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/rname/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/rname/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/rname/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/rname/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/rname/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/rname/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/rname/.dirs/runtime 2252s ok 12 /gresolver/soa/invalid/rname 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/too-short/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/too-short/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/too-short/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/too-short/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/too-short/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/too-short/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/too-short/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/soa/invalid/too-short/.dirs/runtime 2252s ok 13 /gresolver/soa/invalid/too-short 2252s # End of invalid tests 2252s # End of soa tests 2252s # Start of srv tests 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/valid/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/valid/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/valid/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/srv/valid/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/valid/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/valid/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/srv/valid/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/valid/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/valid/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/valid/.dirs/runtime 2252s ok 14 /gresolver/srv/valid 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/.dirs/runtime 2252s ok 15 /gresolver/srv/invalid 2252s # Start of invalid tests 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short/.dirs/runtime 2252s ok 16 /gresolver/srv/invalid/too-short 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short2/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short2/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short2/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short2/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short2/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short2/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short2/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/srv/invalid/too-short2/.dirs/runtime 2252s ok 17 /gresolver/srv/invalid/too-short2 2252s # End of invalid tests 2252s # End of srv tests 2252s # Start of txt tests 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/.dirs/runtime 2252s ok 18 /gresolver/txt/valid 2252s # Start of valid tests 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/multiple-strings/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/multiple-strings/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/multiple-strings/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/multiple-strings/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/multiple-strings/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/multiple-strings/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/multiple-strings/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/multiple-strings/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/multiple-strings/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/valid/multiple-strings/.dirs/runtime 2252s ok 19 /gresolver/txt/valid/multiple-strings 2252s # End of valid tests 2252s # Start of invalid tests 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/empty/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/empty/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/empty/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/empty/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/empty/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/empty/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/empty/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/empty/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/empty/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/empty/.dirs/runtime 2252s ok 20 /gresolver/txt/invalid/empty 2252s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/overflow/.dirs/home 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/overflow/.dirs/cache 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/overflow/.dirs/system-config1:/tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/overflow/.dirs/system-config2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/overflow/.dirs/config 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/overflow/.dirs/system-data1:/tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/overflow/.dirs/system-data2 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/overflow/.dirs/data 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/overflow/.dirs/state 2252s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5UCHK3/gresolver/txt/invalid/overflow/.dirs/runtime 2252s ok 21 /gresolver/txt/invalid/overflow 2252s # End of invalid tests 2252s # End of txt tests 2252s # End of gresolver tests 2252s TAP version 14 2252s # random seed: R02Sd1eb0ee978a46dee3e098c6d53714198 2252s 1..4 2252s # Start of C tests 2252s ok 1 /C/standard-99 2252s # End of C tests 2252s # Start of alignof tests 2252s ok 2 /alignof/fallback 2252s # End of alignof tests 2252s # Start of assert tests 2252s ok 3 /assert/static 2252s # End of assert tests 2252s # Start of struct tests 2252s ok 4 /struct/sizeof_member 2252s # End of struct tests 2252s TAP version 14 2252s # random seed: R02Sd24c55d57efc84c98384055c3f5a8317 2252s 1..84 2252s # Start of gsubprocess tests 2252s ok 1 /gsubprocess/noop 2252s ok 2 /gsubprocess/noop-all-to-null 2252s ok 3 /gsubprocess/noop-no-wait 2252s ok 4 /gsubprocess/noop-stdin-inherit 2252s ok 5 /gsubprocess/search-path 2252s ok 6 /gsubprocess/search-path-from-envp 2253s # Executing: glib/gsubprocess.test 2255s ok 7 /gsubprocess/signal 2255s # slow test /gsubprocess/signal executed in 3.36 secs 2255s ok 8 /gsubprocess/exit1 2255s ok 9 /gsubprocess/echo1 2255s ok 10 /gsubprocess/echo-merged 2255s ok 11 /gsubprocess/cat-utf8 2256s ok 12 /gsubprocess/cat-eof 2256s # slow test /gsubprocess/cat-eof executed in 1.01 secs 2258s # Executing: glib/gsubprocess.test 2260s ok 13 /gsubprocess/multi1 2260s # slow test /gsubprocess/multi1 executed in 3.56 secs 2260s ok 14 /gsubprocess/communicate 2263s # Executing: glib/gsubprocess.test 2263s ok 15 /gsubprocess/terminate 2263s # slow test /gsubprocess/terminate executed in 3.56 secs 2263s ok 16 /gsubprocess/fail-initialization 2263s ok 17 /gsubprocess/env 2263s ok 18 /gsubprocess/cwd 2263s ok 19 /gsubprocess/launcher-close 2263s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 2263s ok 20 /gsubprocess/stdout-file 2263s ok 21 /gsubprocess/stdout-fd 2263s ok 22 /gsubprocess/child-setup 2263s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2263s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2263s ok 23 /gsubprocess/launcher-environment 2263s # Start of exit1 tests 2263s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 2263s ok 24 /gsubprocess/exit1/cancel 2263s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 2263s ok 25 /gsubprocess/exit1/cancel_in_cb 2263s # End of exit1 tests 2263s # Start of communicate tests 2263s ok 26 /gsubprocess/communicate/cancelled 2263s ok 27 /gsubprocess/communicate/async 2263s ok 28 /gsubprocess/communicate/utf8 2264s # hello world 2264s ok 29 /gsubprocess/communicate/no-pipes 2264s ok 30 /gsubprocess/communicate/separate-stderr 2264s ok 31 /gsubprocess/communicate/stdout-only 2264s # hello world 2264s ok 32 /gsubprocess/communicate/stderr-only 2264s ok 33 /gsubprocess/communicate/stdout-silence 2264s ok 34 /gsubprocess/communicate/nothing 2264s # Start of async tests 2264s ok 35 /gsubprocess/communicate/async/cancelled 2264s # hello world 2264s ok 36 /gsubprocess/communicate/async/no-pipes 2264s ok 37 /gsubprocess/communicate/async/separate-stderr 2264s ok 38 /gsubprocess/communicate/async/stdout-only 2264s # hello world 2264s ok 39 /gsubprocess/communicate/async/stderr-only 2264s ok 40 /gsubprocess/communicate/async/stdout-silence 2264s # Start of cancelled tests 2264s ok 41 /gsubprocess/communicate/async/cancelled/no-pipes 2264s ok 42 /gsubprocess/communicate/async/cancelled/separate-stderr 2264s ok 43 /gsubprocess/communicate/async/cancelled/stdout-only 2264s ok 44 /gsubprocess/communicate/async/cancelled/stderr-only 2264s ok 45 /gsubprocess/communicate/async/cancelled/stdout-silence 2264s # End of cancelled tests 2264s # End of async tests 2264s # Start of utf8 tests 2264s ok 46 /gsubprocess/communicate/utf8/cancelled 2264s ok 47 /gsubprocess/communicate/utf8/async 2264s # hello world 2264s ok 48 /gsubprocess/communicate/utf8/no-pipes 2264s ok 49 /gsubprocess/communicate/utf8/separate-stderr 2264s ok 50 /gsubprocess/communicate/utf8/stdout-only 2264s # hello world 2264s ok 51 /gsubprocess/communicate/utf8/stderr-only 2264s ok 52 /gsubprocess/communicate/utf8/stdout-silence 2264s ok 53 /gsubprocess/communicate/utf8/invalid 2264s # Start of async tests 2264s ok 54 /gsubprocess/communicate/utf8/async/cancelled 2264s # hello world 2264s ok 55 /gsubprocess/communicate/utf8/async/no-pipes 2264s ok 56 /gsubprocess/communicate/utf8/async/separate-stderr 2264s ok 57 /gsubprocess/communicate/utf8/async/stdout-only 2264s # hello world 2264s ok 58 /gsubprocess/communicate/utf8/async/stderr-only 2264s ok 59 /gsubprocess/communicate/utf8/async/stdout-silence 2264s ok 60 /gsubprocess/communicate/utf8/async/invalid 2264s # Start of cancelled tests 2264s ok 61 /gsubprocess/communicate/utf8/async/cancelled/no-pipes 2264s ok 62 /gsubprocess/communicate/utf8/async/cancelled/separate-stderr 2264s ok 63 /gsubprocess/communicate/utf8/async/cancelled/stdout-only 2264s ok 64 /gsubprocess/communicate/utf8/async/cancelled/stderr-only 2264s ok 65 /gsubprocess/communicate/utf8/async/cancelled/stdout-silence 2264s # End of cancelled tests 2264s # End of async tests 2264s # Start of cancelled tests 2264s ok 66 /gsubprocess/communicate/utf8/cancelled/no-pipes 2264s ok 67 /gsubprocess/communicate/utf8/cancelled/separate-stderr 2264s ok 68 /gsubprocess/communicate/utf8/cancelled/stdout-only 2264s ok 69 /gsubprocess/communicate/utf8/cancelled/stderr-only 2264s ok 70 /gsubprocess/communicate/utf8/cancelled/stdout-silence 2264s # End of cancelled tests 2264s # End of utf8 tests 2264s # Start of cancelled tests 2264s ok 71 /gsubprocess/communicate/cancelled/no-pipes 2264s ok 72 /gsubprocess/communicate/cancelled/separate-stderr 2264s ok 73 /gsubprocess/communicate/cancelled/stdout-only 2264s ok 74 /gsubprocess/communicate/cancelled/stderr-only 2264s ok 75 /gsubprocess/communicate/cancelled/stdout-silence 2264s # End of cancelled tests 2264s # End of communicate tests 2264s # Start of env tests 2264s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2264s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2264s ok 76 /gsubprocess/env/inherit 2264s # End of env tests 2264s # Start of pass-fd tests 2264s ok 77 /gsubprocess/pass-fd/basic 2264s ok 78 /gsubprocess/pass-fd/empty-child-setup 2264s ok 79 /gsubprocess/pass-fd/inherit-fds 2264s # End of pass-fd tests 2264s # Start of fd-conflation tests 2264s ok 80 /gsubprocess/fd-conflation/basic 2264s ok 81 /gsubprocess/fd-conflation/empty-child-setup 2264s ok 82 /gsubprocess/fd-conflation/inherit-fds 2264s ok 83 /gsubprocess/fd-conflation/child-err-report-fd 2264s # End of fd-conflation tests 2264s # Start of exit-status tests 2264s # /gsubprocess/exit-status/trapped summary: Test that exit status is reported correctly for ptrace()d child processes 2264s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3433 2264s ok 84 /gsubprocess/exit-status/trapped 2264s # End of exit-status tests 2264s # End of gsubprocess tests 2264s TAP version 14 2264s # random seed: R02S15e36bbd2a046f0344f4ae4e07aa3162 2264s 1..84 2264s # Start of Default Values tests 2264s ok 1 /Default Values/GAppInfoMonitor # SKIP singleton 2264s ok 2 /Default Values/GAppLaunchContext 2264s ok 3 /Default Values/GApplicationCommandLine 2264s # skipping GApplication:is-remote 2264s ok 4 /Default Values/GApplication 2264s ok 5 /Default Values/GBinding # SKIP mandatory construct params 2264s ok 6 /Default Values/GBindingGroup 2264s ok 7 /Default Values/GBufferedInputStream # SKIP mandatory construct params 2264s ok 8 /Default Values/GBufferedOutputStream # SKIP mandatory construct params 2264s ok 9 /Default Values/GBytesIcon 2264s ok 10 /Default Values/GCancellable 2264s ok 11 /Default Values/GCharsetConverter # SKIP mandatory construct params 2264s ok 12 /Default Values/GConverterInputStream # SKIP mandatory construct params 2264s ok 13 /Default Values/GConverterOutputStream # SKIP mandatory construct params 2264s ok 14 /Default Values/GCredentials 2264s ok 15 /Default Values/GDataInputStream # SKIP mandatory construct params 2264s ok 16 /Default Values/GDataOutputStream # SKIP mandatory construct params 2264s ok 17 /Default Values/GDBusActionGroup # SKIP mandatory construct params 2264s ok 18 /Default Values/GDBusAuthObserver 2264s ok 19 /Default Values/GDBusConnection # SKIP mandatory construct params 2264s ok 20 /Default Values/GDBusMenuModel # SKIP crash in finalize 2264s ok 21 /Default Values/GDBusMessage 2264s ok 22 /Default Values/GDBusMethodInvocation # SKIP crash in finalize 2264s ok 23 /Default Values/GDBusObjectManagerClient # SKIP mandatory construct params 2264s ok 24 /Default Values/GDBusObjectManagerServer # SKIP mandatory construct params 2264s ok 25 /Default Values/GDBusObjectProxy 2264s ok 26 /Default Values/GDBusObjectSkeleton 2264s ok 27 /Default Values/GDBusProxy # SKIP mandatory construct params 2264s ok 28 /Default Values/GDBusServer # SKIP mandatory construct params 2264s ok 29 /Default Values/GEmblem 2264s ok - glib/gsubprocess.test 2264s # Running test: glib/defaultvalue.test 2264s ok 30 /Default Values/GEmblemedIcon 2264s ok 31 /Default Values/GFileEnumerator # SKIP should be abstract 2264s ok 32 /Default Values/GFileInfo 2264s ok 33 /Default Values/GFileInputStream 2264s ok 34 /Default Values/GFileIOStream # SKIP should be abstract 2264s ok 35 /Default Values/GFileOutputStream 2264s ok 36 /Default Values/GFilenameCompleter 2264s ok 37 /Default Values/GInetAddress # SKIP mandatory construct params 2264s ok 38 /Default Values/GInetAddressMask # SKIP initialization failed 2264s ok 39 /Default Values/GInetSocketAddress # SKIP mandatory construct params 2264s ok 40 /Default Values/GInitiallyUnowned 2264s ok 41 /Default Values/GIOModule 2264s ok 42 /Default Values/GListStore 2264s ok 43 /Default Values/GMemoryInputStream 2264s ok 44 /Default Values/GMemoryOutputStream 2264s ok 45 /Default Values/GMenu 2264s ok 46 /Default Values/GMenuItem 2264s ok 47 /Default Values/GMountOperation 2264s ok 48 /Default Values/GNativeSocketAddress 2264s ok 49 /Default Values/GNetworkAddress 2264s ok 50 /Default Values/GNetworkService 2264s ok 51 /Default Values/GNotification 2264s ok 52 /Default Values/GObject 2264s ok 53 /Default Values/GPropertyAction # SKIP mandatory construct params 2264s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 2264s # skipping GProxyAddressEnumerator:proxy-resolver 2264s ok 54 /Default Values/GProxyAddressEnumerator 2264s ok 55 /Default Values/GProxyAddress # SKIP mandatory construct params 2264s ok 56 /Default Values/GSettings # SKIP mandatory construct params 2264s ok 57 /Default Values/GSignalGroup 2264s ok 58 /Default Values/GSimpleAction 2264s ok 59 /Default Values/GSimpleActionGroup 2264s ok 60 /Default Values/GSimpleAsyncResult 2264s ok 61 /Default Values/GSimpleIOStream # SKIP mandatory construct params 2264s ok 62 /Default Values/GSimplePermission 2264s ok 63 /Default Values/GSimpleProxyResolver 2264s # skipping GSocketClient:proxy-resolver 2264s ok 64 /Default Values/GSocketClient 2264s ok 65 /Default Values/GSocketConnection # SKIP mandatory construct params 2264s ok 66 /Default Values/GSocket # SKIP initialization failed 2264s ok 67 /Default Values/GSocketListener 2264s ok 68 /Default Values/GSocketService 2264s ok 69 /Default Values/GSubprocess # SKIP initialization failed 2264s ok 70 /Default Values/GSubprocessLauncher 2264s # GLib-GIO-DEBUG: GTask 0x2aa0bb20b00 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 2264s ok 71 /Default Values/GTask 2264s ok 72 /Default Values/GTcpConnection # SKIP mandatory construct params 2264s ok 73 /Default Values/GTcpWrapperConnection # SKIP mandatory construct params 2264s ok 74 /Default Values/GTestDBus 2264s ok 75 /Default Values/GThemedIcon # SKIP mandatory construct params 2264s ok 76 /Default Values/GThreadedSocketService 2264s ok 77 /Default Values/GTlsInteraction 2264s ok 78 /Default Values/GTlsPassword 2264s ok 79 /Default Values/GUnixConnection # SKIP mandatory construct params 2264s ok 80 /Default Values/GUnixFDList 2264s ok 81 /Default Values/GVfs 2264s ok 82 /Default Values/GVolumeMonitor 2264s ok 83 /Default Values/GZlibCompressor 2264s ok 84 /Default Values/GZlibDecompressor 2264s # End of Default Values tests 2264s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2264s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2264s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2264s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2264s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2264s ok - glib/defaultvalue.test 2264s # Running test: glib/performance-threaded.test 2264s Running test "liststore-is-a" 2266s 1733 runs, min/avg/max = 0.069/0.613/124.835 ms 2266s Running test "liststore-interface-peek" 2267s 3602 runs, min/avg/max = 0.035/0.289/156.189 ms 2267s Running test "liststore-interface-peek-same" 2268s 3216 runs, min/avg/max = 0.035/0.314/135.699 ms 2268s ok - glib/performance-threaded.test 2268s # Running test: glib/include.test 2268s TAP version 14 2268s # random seed: R02S99b277ca3bf263142229be20da3b716e 2268s 1..1 2268s # Start of include tests 2268s ok 1 /include/rwlock 2268s # End of include tests 2268s ok - glib/include.test 2268s # Running test: glib/socket-listener.test 2268s TAP version 14 2268s # random seed: R02S770e22526f8f9f410a603189d424c521 2268s 1..4 2268s # Start of socket-listener tests 2268s ok 1 /socket-listener/event-signal 2268s # Start of accept tests 2268s # /socket-listener/accept/multi-simultaneously summary: Test that accepting multiple pending connections on the same GMainContext iteration works 2268s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3739 2268s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 2268s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa1c9114d0 and GSocketClientAsyncConnectData 0x2aa1c90c970 2268s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2268s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa1c913b60 and GSocketClientAsyncConnectData 0x2aa1c9139b0 2268s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2268s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa1c914380 and GSocketClientAsyncConnectData 0x2aa1c914100 2268s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2268s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa1c914c00 and GSocketClientAsyncConnectData 0x2aa1c914980 2268s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2268s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2aa1c915420 and GSocketClientAsyncConnectData 0x2aa1c9151a0 2268s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2268s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2268s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa1c917960 for GSocketClientAsyncConnectData 0x2aa1c90c970 2268s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2268s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2268s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa1c919ad0 for GSocketClientAsyncConnectData 0x2aa1c9139b0 2268s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2268s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2268s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa1c91a280 for GSocketClientAsyncConnectData 0x2aa1c914100 2268s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2268s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2268s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa1c91a920 for GSocketClientAsyncConnectData 0x2aa1c914980 2268s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2268s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2268s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2aa1c917000 for GSocketClientAsyncConnectData 0x2aa1c9151a0 2268s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2268s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2268s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2268s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 2268s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2268s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2268s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 2268s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2268s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2268s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 2268s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2268s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2268s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 2268s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2268s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2268s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 2268s ok 2 /socket-listener/accept/multi-simultaneously 2268s # End of accept tests 2268s # Start of add-any-inet-port tests 2268s # /socket-listener/add-any-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 2268s # Test 0 2268s # Test 1 2268s # Test 2 2268s # Test 3 2268s # Test 4 2268s # Test 5 2268s # Test 6 2268s # Test 7 2268s # Test 8 2268s # Test 9 2268s # Test 10 2268s ok 3 /socket-listener/add-any-inet-port/listen-failures 2268s # End of add-any-inet-port tests 2268s # Start of add-inet-port tests 2268s # /socket-listener/add-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 2268s # Test 0 2268s # Test 1 2268s # Test 2 2268s # Test 3 2268s # Test 4 2268s # Test 5 2268s # Test 6 2268s # Test 7 2268s # Test 8 2268s # Test 9 2268s # Test 10 2268s ok 4 /socket-listener/add-inet-port/listen-failures 2268s # End of add-inet-port tests 2268s # End of socket-listener tests 2268s ok - glib/socket-listener.test 2268s # Running test: glib/actions.test 2268s TAP version 14 2268s # random seed: R02S8cbe7394f4409f1d8e51776c9423c988 2268s 1..13 2268s # Start of actions tests 2268s ok 1 /actions/basic 2268s ok 2 /actions/name 2268s ok 3 /actions/simplegroup 2268s ok 4 /actions/stateful 2268s ok 5 /actions/default-activate 2268s ok 6 /actions/entries 2268s ok 7 /actions/parse-detailed 2268s ok 8 /actions/property 2268s ok 9 /actions/no-properties 2268s # Start of dbus tests 2268s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2268s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2268s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2268s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2268s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2268s ok 10 /actions/dbus/export 2268s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2268s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2268s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2268s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2268s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2268s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2268s # Executing: glib/actions.test 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s ok 11 /actions/dbus/threaded 2273s # slow test /actions/dbus/threaded executed in 5.13 secs 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s ok 12 /actions/dbus/bug679509 2273s # Start of export tests 2273s # /actions/dbus/export/error-handling summary: Test that error handling of action group export failure works 2273s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 2273s # Executing: glib/actions.test 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2273s ok 13 /actions/dbus/export/error-handling 2273s # End of export tests 2273s # End of dbus tests 2273s # End of actions tests 2273s ok - glib/actions.test 2273s # Running test: glib/closure.test 2273s TAP version 14 2273s # random seed: R02Sb5cc3d209d604f59a94dce5c23d6a8ac 2274s 1..6 2274s # Start of closure tests 2274s ok 1 /closure/idle 2274s ok 2 /closure/timeout 2274s ok 3 /closure/iochannel 2274s ok - glib/closure.test 2274s ok 4 /closure/child 2274s ok 5 /closure/fd 2274s ok 6 /closure/signal 2274s # End of closure tests 2274s # Running test: glib/gdbus-threading.test 2274s ok - glib/gdbus-threading.test 2274s TAP version 14 2274s # random seed: R02S72184a76e323bf28618430b3dd675c92 2274s # 1..0 # SKIP all gdbus-threading tests skipped because they are too unreliable (glib#1515) 2274s # Running test: glib/custom-dispatch.test 2274s TAP version 14 2274s # random seed: R02S441c23bbbd837ecc2401045e787bea73 2274s 1..2 2274s # Start of properties tests 2274s # Start of custom-dispatch tests 2274s # /properties/custom-dispatch/init summary: Test that custom dispatch_properties_changed is called on initialization 2274s ok - glib/custom-dispatch.test 2274s ok 1 /properties/custom-dispatch/init 2274s # /properties/custom-dispatch/set summary: Test that custom dispatch_properties_changed is called regardless of connected notify handlers 2274s ok 2 /properties/custom-dispatch/set 2274s # End of custom-dispatch tests 2274s # End of properties tests 2274s # Running test: glib/gdbus-proxy-well-known-name.test 2274s TAP version 14 2274s # random seed: R02Sd8539439f462793be80b835c4649b1e4 2274s 1..1 2274s # Start of gdbus tests 2274s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-well-known-name_EURLK3/gdbus/proxy-well-known-name/.dirs/home 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-well-known-name_EURLK3/gdbus/proxy-well-known-name/.dirs/cache 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-well-known-name_EURLK3/gdbus/proxy-well-known-name/.dirs/system-config1:/tmp/test_gdbus-proxy-well-known-name_EURLK3/gdbus/proxy-well-known-name/.dirs/system-config2 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-well-known-name_EURLK3/gdbus/proxy-well-known-name/.dirs/config 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-well-known-name_EURLK3/gdbus/proxy-well-known-name/.dirs/system-data1:/tmp/test_gdbus-proxy-well-known-name_EURLK3/gdbus/proxy-well-known-name/.dirs/system-data2 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-well-known-name_EURLK3/gdbus/proxy-well-known-name/.dirs/data 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-well-known-name_EURLK3/gdbus/proxy-well-known-name/.dirs/state 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-well-known-name_EURLK3/gdbus/proxy-well-known-name/.dirs/runtime 2274s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2274s ok - glib/gdbus-proxy-well-known-name.test 2274s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2274s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2274s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2274s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2274s ok 1 /gdbus/proxy-well-known-name 2274s # End of gdbus tests 2274s # Running test: glib/utf8-private.test 2274s ok - glib/utf8-private.test 2274s TAP version 14 2274s # random seed: R02S608996f45ed333a160932a9f5754a3e3 2274s 1..2 2274s # Start of utf8 tests 2274s ok 1 /utf8/utf8-to-utf16-make-valid 2274s ok 2 /utf8/utf8-to-utf16-make-valid-backtrack 2274s # End of utf8 tests 2274s # Running test: glib/spawn-test.test 2274s TAP version 14 2274s # random seed: R02S0ae41dc27546d28c33c3ffee673ea0cc 2274s 1..2 2274s # Start of spawn tests 2274s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_FF4IK3/spawn/basics/.dirs/home 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_FF4IK3/spawn/basics/.dirs/cache 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_FF4IK3/spawn/basics/.dirs/system-config1:/tmp/test_spawn-test_FF4IK3/spawn/basics/.dirs/system-config2 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_FF4IK3/spawn/basics/.dirs/config 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_FF4IK3/spawn/basics/.dirs/system-data1:/tmp/test_spawn-test_FF4IK3/spawn/basics/.dirs/system-data2 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_FF4IK3/spawn/basics/.dirs/data 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_FF4IK3/spawn/basics/.dirs/state 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_FF4IK3/spawn/basics/.dirs/runtime 2274s ok 1 /spawn/basics 2274s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_FF4IK3/spawn/stdio-overwrite/.dirs/home 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_FF4IK3/spawn/stdio-overwrite/.dirs/cache 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_FF4IK3/spawn/stdio-overwrite/.dirs/system-config1:/tmp/test_spawn-test_FF4IK3/spawn/stdio-overwrite/.dirs/system-config2 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_FF4IK3/spawn/stdio-overwrite/.dirs/config 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_FF4IK3/spawn/stdio-overwrite/.dirs/system-data1:/tmp/test_spawn-test_FF4IK3/spawn/stdio-overwrite/.dirs/system-data2 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_FF4IK3/spawn/stdio-overwrite/.dirs/data 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_FF4IK3/spawn/stdio-overwrite/.dirs/state 2274s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_FF4IK3/spawn/stdio-overwrite/.dirs/runtime 2274s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/16 2274s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr open 2274s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr already closed 2274s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr open 2274s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr already closed 2274s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr open 2274s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr already closed 2274s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr open 2274s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr already closed 2274s # Fetching GSpawn result output with stdin open, stdout open, stderr open 2274s # Fetching GSpawn result output with stdin open, stdout open, stderr already closed 2274s # Fetching GSpawn result output with stdin open, stdout already closed, stderr open 2274s # Fetching GSpawn result output with stdin open, stdout already closed, stderr already closed 2274s # Fetching GSpawn result output with stdin already closed, stdout open, stderr open 2274s # Fetching GSpawn result output with stdin already closed, stdout open, stderr already closed 2274s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr open 2274s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr already closed 2274s # Fetching GSpawn result error output with stdin open, stdout open, stderr open 2274s # Fetching GSpawn result error output with stdin open, stdout open, stderr already closed 2274s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr open 2274s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr already closed 2274s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr open 2274s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr already closed 2274s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr open 2274s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr already closed 2274s # Fetching GSpawn result with stdin open, stdout open, stderr open 2274s # Fetching GSpawn result with stdin open, stdout open, stderr already closed 2274s # Fetching GSpawn result with stdin open, stdout already closed, stderr open 2274s # Fetching GSpawn result with stdin open, stdout already closed, stderr already closed 2274s # Fetching GSpawn result with stdin already closed, stdout open, stderr open 2274s ok - glib/spawn-test.test 2274s # Running test: glib/ir-parser.test 2274s # Fetching GSpawn result with stdin already closed, stdout open, stderr already closed 2274s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr open 2274s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr already closed 2274s ok 2 /spawn/stdio-overwrite 2274s # End of spawn tests 2274s TAP version 14 2274s # random seed: R02S38097bcb62c7b728e6b5576716f726f5 2274s 1..1 2274s # Start of ir-parser tests 2274s # /ir-parser/type-parsing summary: Test parsing different valid and invalid types 2274s # GLib-GIRepository-DEBUG: 2274s # GLib-GIRepository-DEBUG: pushing node 1 dummy 2274s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 2274s # GLib-GIRepository-DEBUG: 2274s # GLib-GIRepository-DEBUG: 2274s # GLib-GIRepository-DEBUG: 2274s # GLib-GIRepository-DEBUG: 2274s # GLib-GIRepository-DEBUG: popping node 1 dummy 2274s # GLib-GIRepository-DEBUG: 2274s # GLib-GIRepository-DEBUG: 2274s # GLib-GIRepository-DEBUG: 2274s # GLib-GIRepository-DEBUG: pushing node 1 dummy 2274s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 2274s # GLib-GIRepository-DEBUG: 2274s # GLib-GIRepository-DEBUG: 2274s # GLib-GIRepository-DEBUG: 2274s # GLib-GIRepository-DEBUG: 2274s # GLib-GIRepository-DEBUG: popping node 1 dummy 2274s # GLib-GIRepository-DEBUG: 2274s # GLib-GIRepository-DEBUG: 2274s # GLib-GIRepository-DEBUG: 2274s # GLib-GIRepository-DEBUG: pushing node 1 dummy 2274s # GLib-GIRepository-DEBUG: Failed to parse type: 'GLib.Error" 2354s # MAIN: call iface print-string on test and derived object: 2354s # Iface-FOO: "iface-string-from-test-type" from 0x2aa14704870 2354s # Iface-BAR: "iface-string-from-derived-type" from 0x2aa14704720 2354s # chaining: 2354s # Iface-FOO: "iface-string-from-derived-type" from 0x2aa14704720 2354s # private data after initialization: 54321 == 54321 2354s ok 1 /gobject/basics 2354s # End of gobject tests 2354s ok - glib/basics-gobject.test 2354s # Running test: glib/unicode-encoding.test 2354s TAP version 14 2354s # random seed: R02S724442e6e36534579ee4e4f0f22dd057 2354s 1..1 2354s # Start of unicode tests 2354s ok 1 /unicode/encoding 2354s # End of unicode tests 2354s ok - glib/unicode-encoding.test 2354s # Running test: glib/gdbus-auth.test 2354s TAP version 14 2354s # random seed: R02Sc318289d4c8d9299c39032dbfcb4cda5 2354s 1..5 2354s # Start of gdbus tests 2354s # Start of auth tests 2354s # Start of client tests 2354s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/EXTERNAL/.dirs/home 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/EXTERNAL/.dirs/cache 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/EXTERNAL/.dirs/system-config2 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/EXTERNAL/.dirs/config 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/EXTERNAL/.dirs/system-data2 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/EXTERNAL/.dirs/data 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/EXTERNAL/.dirs/state 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/EXTERNAL/.dirs/runtime 2354s ok 1 /gdbus/auth/client/EXTERNAL 2354s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/home 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/cache 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config2 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/config 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data2 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/data 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/state 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/runtime 2354s # Executing: glib/gdbus-auth.test 2354s ok 2 /gdbus/auth/client/DBUS_COOKIE_SHA1 2354s # End of client tests 2354s # Start of server tests 2354s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/ANONYMOUS/.dirs/home 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/ANONYMOUS/.dirs/cache 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/ANONYMOUS/.dirs/system-config1:/tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/ANONYMOUS/.dirs/system-config2 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/ANONYMOUS/.dirs/config 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/ANONYMOUS/.dirs/system-data1:/tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/ANONYMOUS/.dirs/system-data2 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/ANONYMOUS/.dirs/data 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/ANONYMOUS/.dirs/state 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/ANONYMOUS/.dirs/runtime 2354s ok 3 /gdbus/auth/server/ANONYMOUS 2354s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/EXTERNAL/.dirs/home 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/EXTERNAL/.dirs/cache 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/EXTERNAL/.dirs/system-config2 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/EXTERNAL/.dirs/config 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/EXTERNAL/.dirs/system-data2 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/EXTERNAL/.dirs/data 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/EXTERNAL/.dirs/state 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/EXTERNAL/.dirs/runtime 2354s ok 4 /gdbus/auth/server/EXTERNAL 2354s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/home 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/cache 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config2 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/config 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data2 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/data 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/state 2354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_58L9J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/runtime 2354s ok - glib/gdbus-auth.test 2354s ok 5 /gdbus/auth/server/DBUS_COOKIE_SHA1 2354s # End of server tests 2354s # End of auth tests 2354s # End of gdbus tests 2354s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2354s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2354s # Running test: glib/array-test.test 2354s TAP version 14 2354s # random seed: R02S6d089f48c3072e6c075d7363b7e904ec 2354s 1..120 2354s # Start of array tests 2354s ok 1 /array/ref-count 2354s ok 2 /array/steal 2354s ok 3 /array/clear-func 2354s ok 4 /array/binary-search 2354s ok 5 /array/overflow-append-vals 2354s ok 6 /array/overflow-set-size 2354s # Start of new tests 2354s ok 7 /array/new/zero-terminated 2354s ok 8 /array/new/take 2354s ok 9 /array/new/take-zero-terminated 2354s # Start of take tests 2354s ok 10 /array/new/take/empty 2354s ok 11 /array/new/take/overflow 2354s ok 12 /array/new/take/zero-size 2354s # End of take tests 2354s # Start of take-zero-terminated tests 2354s ok 13 /array/new/take-zero-terminated/zero-size 2354s ok 14 /array/new/take-zero-terminated/null 2354s # End of take-zero-terminated tests 2354s # End of new tests 2354s # Start of copy tests 2354s # /array/copy/sized summary: Test that copying a newly-allocated sized array works. 2354s ok 15 /array/copy/sized 2354s ok 16 /array/copy/zero-terminated 2354s ok 17 /array/copy/non-zero-terminated-no-clear 2354s ok 18 /array/copy/non-zero-terminated-clear 2354s ok 19 /array/copy/zero-terminated-no-clear 2354s ok 20 /array/copy/zero-terminated-clear 2354s # End of copy tests 2354s # Start of remove-range tests 2354s ok 21 /array/remove-range/zero-terminated-null 2354s ok 22 /array/remove-range/non-zero-terminated-no-clear 2354s ok 23 /array/remove-range/non-zero-terminated-clear 2354s ok 24 /array/remove-range/zero-terminated-no-clear 2354s ok 25 /array/remove-range/zero-terminated-clear 2354s # End of remove-range tests 2354s # Start of set-size tests 2354s ok 26 /array/set-size/zero-terminated-null 2354s ok 27 /array/set-size/non-zero-terminated-no-clear 2354s ok 28 /array/set-size/non-zero-terminated-clear 2354s ok 29 /array/set-size/zero-terminated-no-clear 2354s ok 30 /array/set-size/zero-terminated-clear 2354s # Start of sized tests 2354s ok 31 /array/set-size/sized/non-zero-terminated-no-clear 2354s ok 32 /array/set-size/sized/non-zero-terminated-clear 2354s ok 33 /array/set-size/sized/zero-terminated-no-clear 2354s ok 34 /array/set-size/sized/zero-terminated-clear 2354s # End of sized tests 2354s # End of set-size tests 2354s # Start of append-val tests 2354s ok 35 /array/append-val/non-zero-terminated-no-clear 2354s ok 36 /array/append-val/non-zero-terminated-clear 2354s ok 37 /array/append-val/zero-terminated-no-clear 2354s ok 38 /array/append-val/zero-terminated-clear 2354s # End of append-val tests 2354s # Start of prepend-val tests 2354s ok 39 /array/prepend-val/non-zero-terminated-no-clear 2354s ok 40 /array/prepend-val/non-zero-terminated-clear 2354s ok 41 /array/prepend-val/zero-terminated-no-clear 2354s ok 42 /array/prepend-val/zero-terminated-clear 2354s # End of prepend-val tests 2354s # Start of prepend-vals tests 2354s ok 43 /array/prepend-vals/non-zero-terminated-no-clear 2354s ok 44 /array/prepend-vals/non-zero-terminated-clear 2354s ok 45 /array/prepend-vals/zero-terminated-no-clear 2354s ok 46 /array/prepend-vals/zero-terminated-clear 2354s # End of prepend-vals tests 2354s # Start of insert-vals tests 2354s ok 47 /array/insert-vals/non-zero-terminated-no-clear 2354s ok 48 /array/insert-vals/non-zero-terminated-clear 2354s ok 49 /array/insert-vals/zero-terminated-no-clear 2354s ok 50 /array/insert-vals/zero-terminated-clear 2354s # End of insert-vals tests 2354s # Start of remove-index tests 2354s ok 51 /array/remove-index/non-zero-terminated-no-clear 2354s ok 52 /array/remove-index/non-zero-terminated-clear 2354s ok 53 /array/remove-index/zero-terminated-no-clear 2354s ok 54 /array/remove-index/zero-terminated-clear 2354s # End of remove-index tests 2354s # Start of remove-index-fast tests 2354s ok 55 /array/remove-index-fast/non-zero-terminated-no-clear 2354s ok 56 /array/remove-index-fast/non-zero-terminated-clear 2354s ok 57 /array/remove-index-fast/zero-terminated-no-clear 2354s ok 58 /array/remove-index-fast/zero-terminated-clear 2354s # End of remove-index-fast tests 2354s # Start of sort tests 2354s ok 59 /array/sort/non-zero-terminated-no-clear 2354s ok 60 /array/sort/non-zero-terminated-clear 2354s ok 61 /array/sort/zero-terminated-no-clear 2354s ok 62 /array/sort/zero-terminated-clear 2354s # End of sort tests 2354s # Start of sort-with-data tests 2354s ok 63 /array/sort-with-data/non-zero-terminated-no-clear 2354s ok 64 /array/sort-with-data/non-zero-terminated-clear 2354s ok 65 /array/sort-with-data/zero-terminated-no-clear 2354s ok 66 /array/sort-with-data/zero-terminated-clear 2354s # End of sort-with-data tests 2354s # End of array tests 2354s # Start of pointerarray tests 2354s ok 67 /pointerarray/add 2354s ok 68 /pointerarray/insert 2354s ok 69 /pointerarray/new-take 2354s ok 70 /pointerarray/new-take-null-terminated 2354s ok 71 /pointerarray/new-from-array 2354s ok 72 /pointerarray/new-from-null-terminated-array 2354s ok 73 /pointerarray/free-func 2354s ok 74 /pointerarray/array_extend_and_steal 2354s ok 75 /pointerarray/sort 2354s ok 76 /pointerarray/sort-with-data 2354s ok 77 /pointerarray/sort-values 2354s ok 78 /pointerarray/sort-values-with-data 2354s ok 79 /pointerarray/remove-range 2354s ok 80 /pointerarray/steal 2354s # Start of free tests 2354s # /pointerarray/free/null-terminated summary: Check that g_ptr_array_free() on an empty array returns a NULL-terminated empty array 2354s ok 81 /pointerarray/free/null-terminated 2354s # End of free tests 2354s # Start of new-take tests 2354s ok 82 /pointerarray/new-take/empty 2354s ok 83 /pointerarray/new-take/overflow 2354s ok 84 /pointerarray/new-take/with-free-func 2354s # End of new-take tests 2354s # Start of new-take-null-terminated tests 2354s ok 85 /pointerarray/new-take-null-terminated/empty 2354s ok 86 /pointerarray/new-take-null-terminated/with-free-func 2354s ok 87 /pointerarray/new-take-null-terminated/from-gstrv 2354s # End of new-take-null-terminated tests 2354s # Start of new-from-array tests 2354s ok 88 /pointerarray/new-from-array/empty 2354s ok 89 /pointerarray/new-from-array/overflow 2354s ok 90 /pointerarray/new-from-array/with-copy-and-free-func 2354s # End of new-from-array tests 2354s # Start of new-from-null-terminated-array tests 2354s ok 91 /pointerarray/new-from-null-terminated-array/empty 2354s ok 92 /pointerarray/new-from-null-terminated-array/with-copy-and-free-func 2354s ok 93 /pointerarray/new-from-null-terminated-array/from-gstrv 2354s # End of new-from-null-terminated-array tests 2354s # Start of ref-count tests 2354s ok 94 /pointerarray/ref-count/not-null-terminated 2354s ok 95 /pointerarray/ref-count/null-terminated 2354s # End of ref-count tests 2354s # Start of array_copy tests 2354s # /pointerarray/array_copy/not-null-terminated summary: Check all normal behaviour of stealing elements from one array to append to another, covering different array sizes and element copy functions 2354s ok 96 /pointerarray/array_copy/not-null-terminated 2354s # /pointerarray/array_copy/null-terminated summary: Check all normal behaviour of stealing elements from one array to append to another, covering different array sizes and element copy functions 2354s ok 97 /pointerarray/array_copy/null-terminated 2354s # End of array_copy tests 2354s # Start of array_extend tests 2354s ok 98 /pointerarray/array_extend/not-null-terminated 2354s ok 99 /pointerarray/array_extend/null-terminated 2354s # End of array_extend tests 2354s # Start of sort tests 2354s # /pointerarray/sort/example summary: Check that the doc-comment for g_ptr_array_sort() is correct 2354s ok 100 /pointerarray/sort/example 2354s # End of sort tests 2354s # Start of sort-with-data tests 2354s # /pointerarray/sort-with-data/example summary: Check that the doc-comment for g_ptr_array_sort_with_data() is correct 2354s ok 101 /pointerarray/sort-with-data/example 2354s # End of sort-with-data tests 2354s # Start of sort-values tests 2354s ok 102 /pointerarray/sort-values/example 2354s # End of sort-values tests 2354s # Start of sort-values-with-data tests 2354s ok 103 /pointerarray/sort-values-with-data/example 2354s # End of sort-values-with-data tests 2354s # Start of find tests 2354s ok 104 /pointerarray/find/empty 2354s ok 105 /pointerarray/find/non-empty 2354s # End of find tests 2354s # Start of steal_index tests 2354s ok 106 /pointerarray/steal_index/not-null-terminated 2354s ok 107 /pointerarray/steal_index/null-terminated 2354s # End of steal_index tests 2354s # End of pointerarray tests 2354s # Start of bytearray tests 2354s ok 108 /bytearray/steal 2354s ok 109 /bytearray/append 2354s ok 110 /bytearray/prepend 2354s ok 111 /bytearray/remove 2354s ok 112 /bytearray/remove-fast 2354s ok 113 /bytearray/remove-range 2354s ok 114 /bytearray/ref-count 2354s ok 115 /bytearray/set-size 2354s ok 116 /bytearray/sort 2354s ok 117 /bytearray/sort-with-data 2354s ok 118 /bytearray/new-take 2354s ok 119 /bytearray/new-take-overflow 2354s ok 120 /bytearray/free-to-bytes 2354s # End of bytearray tests 2354s ok - glib/array-test.test 2354s # Running test: glib/objects-refcount1.test 2355s TAP version 14 2355s # random seed: R02S3a9d0a9d2838275e6d38def62d6653fe 2355s 1..1 2355s # Start of gobject tests 2355s # Start of refcount tests 2355s # init 0x2aa1e169d90 2355s # 2355s # init 0x2aa1e169e90 2355s # 2359s # Executing: glib/objects-refcount1.test 2360s ok - glib/objects-refcount1.test 2360s # dispose 0x2aa1e169d90! 2360s # 2360s # dispose 0x2aa1e169e90! 2360s # 2360s ok 1 /gobject/refcount/object-basics 2360s # slow test /gobject/refcount/object-basics executed in 5.12 secs 2360s # End of refcount tests 2360s # End of gobject tests 2360s # Running test: glib/gdbus-method-invocation.test 2360s TAP version 14 2360s # random seed: R02Se713fbaf0b6eb046effb8e84521eb366 2360s 1..1 2360s # Start of gdbus tests 2360s # Start of method-invocation tests 2360s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-method-invocation_FYPJK3/gdbus/method-invocation/return/.dirs/home 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-method-invocation_FYPJK3/gdbus/method-invocation/return/.dirs/cache 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-method-invocation_FYPJK3/gdbus/method-invocation/return/.dirs/system-config1:/tmp/test_gdbus-method-invocation_FYPJK3/gdbus/method-invocation/return/.dirs/system-config2 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-method-invocation_FYPJK3/gdbus/method-invocation/return/.dirs/config 2360s ok - glib/gdbus-method-invocation.test 2360s # Running test: glib/gdbus-error.test 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-method-invocation_FYPJK3/gdbus/method-invocation/return/.dirs/system-data1:/tmp/test_gdbus-method-invocation_FYPJK3/gdbus/method-invocation/return/.dirs/system-data2 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-method-invocation_FYPJK3/gdbus/method-invocation/return/.dirs/data 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-method-invocation_FYPJK3/gdbus/method-invocation/return/.dirs/state 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-method-invocation_FYPJK3/gdbus/method-invocation/return/.dirs/runtime 2360s # /gdbus/method-invocation/return summary: Test calling g_dbus_method_invocation_return_*() in various ways 2360s # Calling org.freedesktop.DBus.Properties.Get 2360s # Calling org.freedesktop.DBus.Properties.Get 2360s # Calling org.freedesktop.DBus.Properties.Get 2360s # Calling org.freedesktop.DBus.Properties.Set 2360s # Calling org.freedesktop.DBus.Properties.GetAll 2360s # Calling org.example.Foo.WrongReturnType 2360s # Calling org.example.Foo.GetFDs 2360s # Calling org.example.Foo.GetFDs 2360s # Calling org.example.Foo.ReturnError 2360s # Calling org.example.Foo.CloseBeforeReturning 2360s ok 1 /gdbus/method-invocation/return 2360s # End of method-invocation tests 2360s # End of gdbus tests 2360s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2360s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2360s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2360s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2360s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2360s TAP version 14 2360s # random seed: R02S076c306d4a27a85d8c96493b33f7d912 2360s 1..4 2360s # Start of gdbus tests 2360s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/registered-errors/.dirs/home 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/registered-errors/.dirs/cache 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_PR8JK3/gdbus/registered-errors/.dirs/system-config1:/tmp/test_gdbus-error_PR8JK3/gdbus/registered-errors/.dirs/system-config2 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/registered-errors/.dirs/config 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_PR8JK3/gdbus/registered-errors/.dirs/system-data1:/tmp/test_gdbus-error_PR8JK3/gdbus/registered-errors/.dirs/system-data2 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/registered-errors/.dirs/data 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/registered-errors/.dirs/state 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_PR8JK3/gdbus/registered-errors/.dirs/runtime 2360s ok 1 /gdbus/registered-errors 2360s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/unregistered-errors/.dirs/home 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/unregistered-errors/.dirs/cache 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_PR8JK3/gdbus/unregistered-errors/.dirs/system-config1:/tmp/test_gdbus-error_PR8JK3/gdbus/unregistered-errors/.dirs/system-config2 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/unregistered-errors/.dirs/config 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_PR8JK3/gdbus/unregistered-errors/.dirs/system-data1:/tmp/test_gdbus-error_PR8JK3/gdbus/unregistered-errors/.dirs/system-data2 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/unregistered-errors/.dirs/data 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/unregistered-errors/.dirs/state 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_PR8JK3/gdbus/unregistered-errors/.dirs/runtime 2360s ok 2 /gdbus/unregistered-errors 2360s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/transparent-gerror/.dirs/home 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/transparent-gerror/.dirs/cache 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_PR8JK3/gdbus/transparent-gerror/.dirs/system-config1:/tmp/test_gdbus-error_PR8JK3/gdbus/transparent-gerror/.dirs/system-config2 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/transparent-gerror/.dirs/config 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_PR8JK3/gdbus/transparent-gerror/.dirs/system-data1:/tmp/test_gdbus-error_PR8JK3/gdbus/transparent-gerror/.dirs/system-data2 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/transparent-gerror/.dirs/data 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/transparent-gerror/.dirs/state 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_PR8JK3/gdbus/transparent-gerror/.dirs/runtime 2360s ok 3 /gdbus/transparent-gerror 2360s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/register-error/.dirs/home 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/register-error/.dirs/cache 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_PR8JK3/gdbus/register-error/.dirs/system-config1:/tmp/test_gdbus-error_PR8JK3/gdbus/register-error/.dirs/system-config2 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/register-error/.dirs/config 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_PR8JK3/gdbus/register-error/.dirs/system-data1:/tmp/test_gdbus-error_PR8JK3/gdbus/register-error/.dirs/system-data2 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/register-error/.dirs/data 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_PR8JK3/gdbus/register-error/.dirs/state 2360s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_PR8JK3/gdbus/register-error/.dirs/runtime 2360s ok 4 /gdbus/register-error 2360s # End of gdbus tests 2360s TAP version 14 2360s # random seed: R02S4016a4010f8d05ad6f5bd689ee648a19 2360s 1..3 2360s # Start of gvfs tests 2360s ok 1 /gvfs/local 2360s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 2360s ok 2 /gvfs/register-scheme 2360s # Start of resource tests 2360s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3090 2360s # /gvfs/resource/malformed-escaping summary: Test that g_vfs_get_file_for_uri() returns an invalid file for an invalid URI 2360s ok 3 /gvfs/resource/malformed-escaping 2360s # End of resource tests 2360s # End of gvfs tests 2360s ok - glib/gdbus-error.test 2360s # Running test: glib/vfs.test 2360s ok - glib/vfs.test 2360s # Running test: glib/search-utils.test 2360s TAP version 14 2360s # random seed: R02Sc3e5111862fb7d3613460563ae674549 2360s # GLib-DEBUG: Current user locale: C.UTF-8 2360s 1..6 2360s # Start of search tests 2360s # GLib-DEBUG: Started 2360s # GLib-DEBUG: 'he' - 'Hello World' should match: OK 2360s # GLib-DEBUG: 'wo' - 'Hello World' should match: OK 2360s # GLib-DEBUG: 'lo' - 'Hello World' should NOT match: OK 2360s # GLib-DEBUG: 'ld' - 'Hello World' should NOT match: OK 2360s # GLib-DEBUG: 'wo' - 'Hello-World' should match: OK 2360s # GLib-DEBUG: 'wo' - 'HelloWorld' should NOT match: OK 2360s ok 1 /search/basic 2360s # GLib-DEBUG: Started 2360s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 2360s # GLib-DEBUG: 'gaetan' - 'Gaëtan' should match: OK 2360s # GLib-DEBUG: 'ele' - 'élève' should match: OK 2360s # GLib-DEBUG: 'AzaÏs' - 'Azais' should NOT match: OK 2360s # GLib-DEBUG: 'Azais' - 'AzaÏs' should match: OK 2360s ok 2 /search/composed 2360s # GLib-DEBUG: Started 2360s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 2360s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 2360s ok 3 /search/decomposed 2360s # GLib-DEBUG: Started 2360s ok - glib/search-utils.test 2360s # Running test: glib/unix.test 2360s # GLib-DEBUG: 'ist' - 'İstanbul' should match: OK 2360s # GLib-DEBUG: 'diyarbakir' - 'Diyarbakır' should match: OK 2360s ok 4 /search/turkish 2360s # GLib-DEBUG: Started 2360s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 2360s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 2360s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 2360s ok 5 /search/c_locale_unicode 2360s # GLib-DEBUG: Started 2360s # GLib-DEBUG: 'Xav Cla' - 'Xavier Claessens' should match: OK 2360s # GLib-DEBUG: 'Cla Xav' - 'Xavier Claessens' should match: OK 2360s # GLib-DEBUG: ' b ' - 'Foo Bar Baz' should match: OK 2360s # GLib-DEBUG: 'bar bazz' - 'Foo Bar Baz' should NOT match: OK 2360s ok 6 /search/multi_words 2360s # End of search tests 2360s TAP version 14 2360s # random seed: R02S4fca23c7ff9298313a1518043675a737 2360s 1..20 2360s # Start of glib-unix tests 2360s # /glib-unix/closefrom summary: Test g_closefrom(), g_fdwalk_set_cloexec() 2360s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3247 2360s ok 1 /glib-unix/closefrom 2360s ok 2 /glib-unix/pipe 2360s # /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 2360s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2795 2360s ok 3 /glib-unix/pipe-stdio-overwrite 2360s # /glib-unix/pipe-struct summary: Test GUnixPipe structure 2360s ok 4 /glib-unix/pipe-struct 2360s # /glib-unix/pipe-struct-auto summary: Test g_auto(GUnixPipe) 2360s ok 5 /glib-unix/pipe-struct-auto 2360s ok 6 /glib-unix/error 2360s ok 7 /glib-unix/nonblocking 2360s ok 8 /glib-unix/sighup 2360s # slow test /glib-unix/sighup executed in 0.53 secs 2361s ok 9 /glib-unix/sigterm 2361s # slow test /glib-unix/sigterm executed in 0.51 secs 2361s ok 10 /glib-unix/sighup_again 2361s # slow test /glib-unix/sighup_again executed in 0.59 secs 2361s ok 11 /glib-unix/sighup_add_remove 2361s ok 12 /glib-unix/sighup_nested 2363s ok 13 /glib-unix/callback_after_signal 2363s # slow test /glib-unix/callback_after_signal executed in 2.02 secs 2364s ok 14 /glib-unix/child-wait 2364s # Start of closefrom tests 2364s # Start of subprocess tests 2364s # End of subprocess tests 2364s # End of closefrom tests 2364s # Start of pipe tests 2364s # /glib-unix/pipe/fd-cloexec summary: Test that FD_CLOEXEC is still accepted as an argument to g_unix_open_pipe() 2364s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3459 2364s # GLib-DEBUG: g_unix_open_pipe() called with FD_CLOEXEC; please migrate to using O_CLOEXEC instead 2364s ok 15 /glib-unix/pipe/fd-cloexec 2364s # End of pipe tests 2364s # Start of sighup tests 2364s # Executing: glib/unix.test 2365s ok 16 /glib-unix/sighup/alternate-stack 2365s # slow test /glib-unix/sighup/alternate-stack executed in 1.03 secs 2365s # End of sighup tests 2365s # Start of sigterm tests 2366s ok 17 /glib-unix/sigterm/alternate-stack 2366s # slow test /glib-unix/sigterm/alternate-stack executed in 1.03 secs 2366s # End of sigterm tests 2366s # Start of sighup_again tests 2367s ok 18 /glib-unix/sighup_again/alternate-stack 2367s # slow test /glib-unix/sighup_again/alternate-stack executed in 1.01 secs 2367s # End of sighup_again tests 2367s # Start of get-passwd-entry tests 2367s # /glib-unix/get-passwd-entry/root summary: Tests that g_unix_get_passwd_entry() works for a known-existing username. 2367s ok 19 /glib-unix/get-passwd-entry/root 2367s # /glib-unix/get-passwd-entry/nonexistent summary: Tests that g_unix_get_passwd_entry() returns an error for a nonexistent username. 2367s ok 20 /glib-unix/get-passwd-entry/nonexistent 2367s # End of get-passwd-entry tests 2367s # End of glib-unix tests 2367s ok - glib/unix.test 2367s # Running test: glib/win32-appinfo.test 2367s TAP version 14 2367s # random seed: R02S290b6c0cb65998009e1ef80b5dc90c83 2367s 1..5 2367s # Start of appinfo tests 2367s ok 1 /appinfo/utf16-strfuncs 2367s ok 2 /appinfo/win32-extract-executable 2367s ok 3 /appinfo/win32-rundll32-fixup 2367s ok 4 /appinfo/win32-parse-filename 2367s ok 5 /appinfo/win32-utf16-conversion-fail 2367s # Start of subprocess tests 2367s # End of subprocess tests 2367s # End of appinfo tests 2367s ok - glib/win32-appinfo.test 2367s # Running test: glib/cxx-03.test 2367s TAP version 14 2367s # random seed: R02Sede14b71bc841f88f78078129cd28926 2367s 1..2 2367s # Start of gtask tests 2367s # 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. 2367s ok 1 /gtask/name 2367s # Start of name tests 2367s # 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. 2367s ok 2 /gtask/name/macro-wrapper 2367s # End of name tests 2367s # End of gtask tests 2367s ok - glib/cxx-03.test 2367s # Running test: glib/rec-mutex.test 2367s TAP version 14 2367s # random seed: R02Sa336b846d911a36e056afb38937cca0f 2367s 1..29 2367s # Start of thread tests 2367s ok 1 /thread/rec-mutex1 2367s ok 2 /thread/rec-mutex2 2367s ok 3 /thread/rec-mutex3 2367s ok 4 /thread/rec-mutex4 2367s # Start of rec-mutex tests 2367s # Start of perf tests 2367s # Start of uncontended tests 2367s # max perf: 1.000000 mips 2367s ok 5 /thread/rec-mutex/perf/uncontended/depth1 2367s # max perf: inf mips 2367s ok 6 /thread/rec-mutex/perf/uncontended/depth2 2367s # max perf: inf mips 2367s ok 7 /thread/rec-mutex/perf/uncontended/depth3 2367s # max perf: 1.000000 mips 2367s ok 8 /thread/rec-mutex/perf/uncontended/depth4 2367s # max perf: inf mips 2367s ok 9 /thread/rec-mutex/perf/uncontended/depth5 2367s # End of uncontended tests 2367s # Start of contended1 tests 2367s # max perf: inf mips 2367s ok 10 /thread/rec-mutex/perf/contended1/depth1 2367s # max perf: inf mips 2367s ok 11 /thread/rec-mutex/perf/contended1/depth2 2367s # max perf: inf mips 2367s ok 12 /thread/rec-mutex/perf/contended1/depth3 2367s # max perf: 2.000000 mips 2367s ok 13 /thread/rec-mutex/perf/contended1/depth4 2367s # max perf: 2.000000 mips 2367s ok 14 /thread/rec-mutex/perf/contended1/depth5 2367s # End of contended1 tests 2367s # Start of contended2 tests 2367s # max perf: inf mips 2367s ok 15 /thread/rec-mutex/perf/contended2/depth1 2367s # max perf: inf mips 2367s ok 16 /thread/rec-mutex/perf/contended2/depth2 2367s # max perf: inf mips 2367s ok 17 /thread/rec-mutex/perf/contended2/depth3 2367s # max perf: 3.000000 mips 2367s ok 18 /thread/rec-mutex/perf/contended2/depth4 2367s # max perf: inf mips 2367s ok 19 /thread/rec-mutex/perf/contended2/depth5 2367s # End of contended2 tests 2367s # Start of contended3 tests 2367s # max perf: 4.000000 mips 2367s ok 20 /thread/rec-mutex/perf/contended3/depth1 2367s # max perf: 4.000000 mips 2367s ok 21 /thread/rec-mutex/perf/contended3/depth2 2367s # max perf: inf mips 2367s ok 22 /thread/rec-mutex/perf/contended3/depth3 2367s # max perf: 4.000000 mips 2367s ok 23 /thread/rec-mutex/perf/contended3/depth4 2367s # max perf: 4.000000 mips 2367s ok 24 /thread/rec-mutex/perf/contended3/depth5 2367s # End of contended3 tests 2367s # Start of contended4 tests 2367s # max perf: 5.000000 mips 2367s ok 25 /thread/rec-mutex/perf/contended4/depth1 2367s # max perf: 5.000000 mips 2367s ok 26 /thread/rec-mutex/perf/contended4/depth2 2367s # max perf: 5.000000 mips 2367s ok 27 /thread/rec-mutex/perf/contended4/depth3 2367s # max perf: 2.500000 mips 2367s ok 28 /thread/rec-mutex/perf/contended4/depth4 2367s # max perf: 2.500000 mips 2367s ok 29 /thread/rec-mutex/perf/contended4/depth5 2367s # End of contended4 tests 2367s # End of perf tests 2367s # End of rec-mutex tests 2367s # End of thread tests 2367s ok - glib/rec-mutex.test 2367s # Running test: glib/inet-address.test 2367s ok - glib/inet-address.test 2367s # Running test: glib/atomic-c-99.test 2367s TAP version 14 2367s # random seed: R02Sa6803644801375cebdccf3674c813cc2 2367s 1..11 2367s # Start of inet-address tests 2367s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string ::1::2 2367s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 2001:1:2:3:4:5:6:7] 2367s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7 2367s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7] 2367s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7]:80 2367s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 0:1:2:3:4:5:6:7:8:9 2367s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string ::FFFFFFF 2367s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 204.152.189.116:80 2367s ok 1 /inet-address/parse 2367s ok 2 /inet-address/any 2367s ok 3 /inet-address/loopback 2367s ok 4 /inet-address/bytes 2367s ok 5 /inet-address/property 2367s # End of inet-address tests 2367s # Start of socket-address tests 2367s ok 6 /socket-address/basic 2367s ok 7 /socket-address/to-string 2367s # End of socket-address tests 2367s # Start of address-mask tests 2367s ok 8 /address-mask/parse 2367s ok 9 /address-mask/property 2367s ok 10 /address-mask/equal 2367s ok 11 /address-mask/match 2367s # End of address-mask tests 2367s TAP version 14 2367s # random seed: R02S6e46368eda312a70d1826b944dee339a 2367s 1..2 2367s # Start of atomic tests 2367s ok 1 /atomic/types 2367s ok - glib/atomic-c-99.test 2367s # Running test: glib/flags.test 2367s ok 2 /atomic/threaded 2367s # End of atomic tests 2367s TAP version 14 2367s # random seed: R02S48e9b0c221bce330afafa7d6e9222931 2367s 1..1 2367s # Start of gobject tests 2367s # Start of flags tests 2367s ok 1 /gobject/flags/validate 2367s # End of flags tests 2367s # End of gobject tests 2367s TAP version 14 2367s # random seed: R02S8b197e0c7847f360fca640c47abf3fe2 2367s 1..16 2367s # Start of sequence tests 2367s ok 1 /sequence/out-of-range-jump 2367s ok 2 /sequence/iter-move 2367s ok - glib/flags.test 2367s # Running test: glib/sequence.test 2368s ok 3 /sequence/insert-sorted-non-pointer 2368s # slow test /sequence/insert-sorted-non-pointer executed in 0.55 secs 2368s ok 4 /sequence/stable-sort 2368s # slow test /sequence/stable-sort executed in 0.57 secs 2368s ok 5 /sequence/is_empty 2368s # Start of random tests 2369s # Executing: glib/sequence.test 2374s ok 6 /sequence/random/seed:825541564 2374s # slow test /sequence/random/seed:825541564 executed in 5.72 secs 2374s # Executing: glib/sequence.test 2379s # Executing: glib/sequence.test 2380s ok 7 /sequence/random/seed:801678400 2380s # slow test /sequence/random/seed:801678400 executed in 6.20 secs 2384s # Executing: glib/sequence.test 2386s ok 8 /sequence/random/seed:1477639090 2386s # slow test /sequence/random/seed:1477639090 executed in 6.06 secs 2389s # Executing: glib/sequence.test 2392s ok 9 /sequence/random/seed:3369132895 2392s # slow test /sequence/random/seed:3369132895 executed in 5.59 secs 2394s # Executing: glib/sequence.test 2397s ok 10 /sequence/random/seed:1192944867 2397s # slow test /sequence/random/seed:1192944867 executed in 5.14 secs 2399s # Executing: glib/sequence.test 2403s ok 11 /sequence/random/seed:770458294 2403s # slow test /sequence/random/seed:770458294 executed in 5.76 secs 2404s # Executing: glib/sequence.test 2409s ok 12 /sequence/random/seed:1099575817 2409s # slow test /sequence/random/seed:1099575817 executed in 5.90 secs 2409s # Executing: glib/sequence.test 2414s # Executing: glib/sequence.test 2414s ok 13 /sequence/random/seed:590523467 2414s # slow test /sequence/random/seed:590523467 executed in 5.67 secs 2419s # Executing: glib/sequence.test 2421s ok 14 /sequence/random/seed:3583571454 2421s # slow test /sequence/random/seed:3583571454 executed in 6.36 secs 2424s # Executing: glib/sequence.test 2427s ok 15 /sequence/random/seed:579241222 2427s # slow test /sequence/random/seed:579241222 executed in 6.00 secs 2429s # Executing: glib/sequence.test 2432s ok 16 /sequence/random/seed:626527294 2433s # slow test /sequence/random/seed:626527294 executed in 5.55 secs 2433s ok - glib/sequence.test 2433s # Running test: glib/refstring.test 2433s # End of random tests 2433s # End of sequence tests 2433s TAP version 14 2433s # random seed: R02Sbcb20d65a34123184fa1e221ae0bc174 2433s 1..8 2433s # Start of refstring tests 2433s # s = 'hello, world' (0x2aa2e3c32c0) 2433s ok 1 /refstring/base 2433s ok 2 /refstring/length 2433s ok 3 /refstring/length-auto 2433s ok 4 /refstring/length-nuls 2433s # s = 'hello, world' (0x2aa2e3c3160) 2433s # p = s = 'hello, world' (0x2aa2e3c3160) 2433s # releasing p[0x2aa2e3c3160] ('hello, world') 2433s # p = 'goodbye, world' (0x2aa2e3c32c0) 2433s # releasing p[0x2aa2e3c32c0] ('goodbye, world') 2433s # releasing s[0x2aa2e3c3160] ('hello, world') 2433s ok 5 /refstring/intern 2433s # /refstring/hash_equal summary: Test g_ref_string_equal() in GHashTable 2433s ok 6 /refstring/hash_equal 2433s # /refstring/equal summary: Test g_ref_string_equal() standalone 2433s ok 7 /refstring/equal 2434s ok 8 /refstring/intern-thread-safety 2434s # slow test /refstring/intern-thread-safety executed in 1.36 secs 2434s # End of refstring tests 2434s ok - glib/refstring.test 2434s # Running test: glib/tls-certificate.test 2434s TAP version 14 2434s # random seed: R02Sfe9f5a08092bd83a188eddfaea9cda83 2434s 1..19 2434s # Start of tls-certificate tests 2434s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 2434s ok 1 /tls-certificate/pem-parser 2434s ok 2 /tls-certificate/pem-parser-handles-chain 2434s ok - glib/tls-certificate.test 2434s # Running test: glib/signalgroup.test 2434s ok 3 /tls-certificate/from_file 2434s ok 4 /tls-certificate/from_files 2434s ok 5 /tls-certificate/from_files_crlf 2434s ok 6 /tls-certificate/from_files_pkcs8 2434s ok 7 /tls-certificate/from_files_pkcs8enc 2434s ok 8 /tls-certificate/list_from_file 2434s ok 9 /tls-certificate/pkcs11-uri 2434s ok 10 /tls-certificate/pkcs11-uri-unsupported 2434s ok 11 /tls-certificate/from_pkcs12 2434s ok 12 /tls-certificate/from_pkcs12_file 2434s ok 13 /tls-certificate/not-valid-before 2434s ok 14 /tls-certificate/not-valid-after 2434s ok 15 /tls-certificate/subject-name 2434s ok 16 /tls-certificate/issuer-name 2434s ok 17 /tls-certificate/dns-names 2434s ok 18 /tls-certificate/ip-addresses 2434s ok 19 /tls-certificate/pem-parser-no-sentinel 2434s # End of tls-certificate tests 2434s TAP version 14 2434s # random seed: R02S57ce8dd44d5d9b249908f673787c4ec0 2434s 1..9 2434s # Start of GObject tests 2434s # Start of SignalGroup tests 2434s ok 1 /GObject/SignalGroup/invalid 2434s ok 2 /GObject/SignalGroup/simple 2434s ok 3 /GObject/SignalGroup/changing-target 2434s ok 4 /GObject/SignalGroup/blocking 2434s ok 5 /GObject/SignalGroup/weak-ref-target 2434s ok 6 /GObject/SignalGroup/connect-object 2434s # Executing: glib/signalgroup.test 2434s ok - glib/signalgroup.test 2434s ok 7 /GObject/SignalGroup/signal-parsing 2434s ok 8 /GObject/SignalGroup/properties 2434s ok 9 /GObject/SignalGroup/interface 2434s # Start of signal-parsing tests 2434s # End of signal-parsing tests 2434s # End of SignalGroup tests 2434s # End of GObject tests 2434s # Running test: glib/cmph-bdz.test 2434s TAP version 14 2434s # random seed: R02S6d059237f31a660ddb084c846da9d704 2434s 1..2 2434s # Start of cmph-bdz tests 2434s ok 1 /cmph-bdz/search 2434s ok 2 /cmph-bdz/search-packed 2434s # End of cmph-bdz tests 2434s ok - glib/cmph-bdz.test 2434s # Running test: glib/fileutils.test 2434s TAP version 14 2434s # random seed: R02S08cf3d74ed2c3c6a39bfd02cfb0bcdeb 2434s 1..27 2434s # Start of fileutils tests 2434s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/paths/.dirs/home 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/paths/.dirs/cache 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/paths/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/paths/.dirs/system-config2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/paths/.dirs/config 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/paths/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/paths/.dirs/system-data2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/paths/.dirs/data 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/paths/.dirs/state 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/paths/.dirs/runtime 2434s ok 1 /fileutils/paths 2434s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/build-path/.dirs/home 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/build-path/.dirs/cache 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/build-path/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/build-path/.dirs/system-config2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/build-path/.dirs/config 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/build-path/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/build-path/.dirs/system-data2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/build-path/.dirs/data 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/build-path/.dirs/state 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/build-path/.dirs/runtime 2434s ok 2 /fileutils/build-path 2434s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/build-pathv/.dirs/home 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/build-pathv/.dirs/cache 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/build-pathv/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/build-pathv/.dirs/system-config2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/build-pathv/.dirs/config 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/build-pathv/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/build-pathv/.dirs/system-data2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/build-pathv/.dirs/data 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/build-pathv/.dirs/state 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/build-pathv/.dirs/runtime 2434s ok 3 /fileutils/build-pathv 2434s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/build-filename/.dirs/home 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/build-filename/.dirs/cache 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/build-filename/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/build-filename/.dirs/system-config2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/build-filename/.dirs/config 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/build-filename/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/build-filename/.dirs/system-data2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/build-filename/.dirs/data 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/build-filename/.dirs/state 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/build-filename/.dirs/runtime 2434s ok 4 /fileutils/build-filename 2434s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/build-filenamev/.dirs/home 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/build-filenamev/.dirs/cache 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/build-filenamev/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/build-filenamev/.dirs/system-config2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/build-filenamev/.dirs/config 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/build-filenamev/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/build-filenamev/.dirs/system-data2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/build-filenamev/.dirs/data 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/build-filenamev/.dirs/state 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/build-filenamev/.dirs/runtime 2434s ok 5 /fileutils/build-filenamev 2434s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents/.dirs/home 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents/.dirs/cache 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents/.dirs/system-config2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents/.dirs/config 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents/.dirs/system-data2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents/.dirs/data 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents/.dirs/state 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents/.dirs/runtime 2434s # We do not have CAP_DAC_OVERRIDE or equivalent 2434s # Checking g_mkdir_with_parents() in subdir ./hum/ 2434s # Checking g_mkdir_with_parents() in subdir ./hii///haa/hee/ 2434s ok 6 /fileutils/mkdir-with-parents 2434s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents-permission/.dirs/home 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents-permission/.dirs/cache 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents-permission/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents-permission/.dirs/system-config2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents-permission/.dirs/config 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents-permission/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents-permission/.dirs/system-data2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents-permission/.dirs/data 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents-permission/.dirs/state 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/mkdir-with-parents-permission/.dirs/runtime 2434s # We do not have CAP_DAC_OVERRIDE or equivalent 2434s ok 7 /fileutils/mkdir-with-parents-permission 2434s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/format-size-for-display/.dirs/home 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/format-size-for-display/.dirs/cache 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/format-size-for-display/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/format-size-for-display/.dirs/system-config2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/format-size-for-display/.dirs/config 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/format-size-for-display/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/format-size-for-display/.dirs/system-data2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/format-size-for-display/.dirs/data 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/format-size-for-display/.dirs/state 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/format-size-for-display/.dirs/runtime 2434s ok 8 /fileutils/format-size-for-display 2434s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/errors/.dirs/home 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/errors/.dirs/cache 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/errors/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/errors/.dirs/system-config2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/errors/.dirs/config 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/errors/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/errors/.dirs/system-data2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/errors/.dirs/data 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/errors/.dirs/state 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/errors/.dirs/runtime 2434s ok 9 /fileutils/errors 2434s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/basename/.dirs/home 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/basename/.dirs/cache 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/basename/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/basename/.dirs/system-config2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/basename/.dirs/config 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/basename/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/basename/.dirs/system-data2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/basename/.dirs/data 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/basename/.dirs/state 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/basename/.dirs/runtime 2434s ok 10 /fileutils/basename 2434s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/get-basename/.dirs/home 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/get-basename/.dirs/cache 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/get-basename/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/get-basename/.dirs/system-config2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/get-basename/.dirs/config 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/get-basename/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/get-basename/.dirs/system-data2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/get-basename/.dirs/data 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/get-basename/.dirs/state 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/get-basename/.dirs/runtime 2434s ok 11 /fileutils/get-basename 2434s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/dirname/.dirs/home 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/dirname/.dirs/cache 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/dirname/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/dirname/.dirs/system-config2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/dirname/.dirs/config 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/dirname/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/dirname/.dirs/system-data2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/dirname/.dirs/data 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/dirname/.dirs/state 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/dirname/.dirs/runtime 2434s ok 12 /fileutils/dirname 2434s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/dir-make-tmp/.dirs/home 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/dir-make-tmp/.dirs/cache 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/dir-make-tmp/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/dir-make-tmp/.dirs/system-config2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/dir-make-tmp/.dirs/config 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/dir-make-tmp/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/dir-make-tmp/.dirs/system-data2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/dir-make-tmp/.dirs/data 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/dir-make-tmp/.dirs/state 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/dir-make-tmp/.dirs/runtime 2434s ok 13 /fileutils/dir-make-tmp 2434s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/file-open-tmp/.dirs/home 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/file-open-tmp/.dirs/cache 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/file-open-tmp/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/file-open-tmp/.dirs/system-config2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/file-open-tmp/.dirs/config 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/file-open-tmp/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/file-open-tmp/.dirs/system-data2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/file-open-tmp/.dirs/data 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/file-open-tmp/.dirs/state 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/file-open-tmp/.dirs/runtime 2434s ok 14 /fileutils/file-open-tmp 2434s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/file-test/.dirs/home 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/file-test/.dirs/cache 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/file-test/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/file-test/.dirs/system-config2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/file-test/.dirs/config 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/file-test/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/file-test/.dirs/system-data2 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/file-test/.dirs/data 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/file-test/.dirs/state 2434s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/file-test/.dirs/runtime 2435s ok 15 /fileutils/file-test 2435s # slow test /fileutils/file-test executed in 0.61 secs 2435s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/mkstemp/.dirs/home 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/mkstemp/.dirs/cache 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/mkstemp/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/mkstemp/.dirs/system-config2 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/mkstemp/.dirs/config 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/mkstemp/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/mkstemp/.dirs/system-data2 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/mkstemp/.dirs/data 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/mkstemp/.dirs/state 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/mkstemp/.dirs/runtime 2435s ok 16 /fileutils/mkstemp 2435s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/mkdtemp/.dirs/home 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/mkdtemp/.dirs/cache 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/mkdtemp/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/mkdtemp/.dirs/system-config2 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/mkdtemp/.dirs/config 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/mkdtemp/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/mkdtemp/.dirs/system-data2 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/mkdtemp/.dirs/data 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/mkdtemp/.dirs/state 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/mkdtemp/.dirs/runtime 2435s ok 17 /fileutils/mkdtemp 2435s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/get-contents/.dirs/home 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/get-contents/.dirs/cache 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/get-contents/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/get-contents/.dirs/system-config2 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/get-contents/.dirs/config 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/get-contents/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/get-contents/.dirs/system-data2 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/get-contents/.dirs/data 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/get-contents/.dirs/state 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/get-contents/.dirs/runtime 2435s ok 18 /fileutils/get-contents 2435s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/get-contents-large-file/.dirs/home 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/get-contents-large-file/.dirs/cache 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/get-contents-large-file/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/get-contents-large-file/.dirs/system-config2 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/get-contents-large-file/.dirs/config 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/get-contents-large-file/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/get-contents-large-file/.dirs/system-data2 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/get-contents-large-file/.dirs/data 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/get-contents-large-file/.dirs/state 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/get-contents-large-file/.dirs/runtime 2435s ok 19 /fileutils/get-contents-large-file # SKIP Skipping slow largefile test 2435s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents/.dirs/home 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents/.dirs/cache 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/set-contents/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/set-contents/.dirs/system-config2 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents/.dirs/config 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/set-contents/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/set-contents/.dirs/system-data2 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents/.dirs/data 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents/.dirs/state 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/set-contents/.dirs/runtime 2435s ok 20 /fileutils/set-contents 2435s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/.dirs/home 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/.dirs/cache 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/set-contents-full/.dirs/system-config2 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/.dirs/config 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/set-contents-full/.dirs/system-data2 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/.dirs/data 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/.dirs/state 2435s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/.dirs/runtime 2435s # /fileutils/set-contents-full summary: Test g_file_set_contents_full() with various flags 2435s # Flags 0 and test 0 2435s # Flags 0 and test 1 2435s # Flags 0 and test 2 2435s # Flags 0 and test 3 2435s # Flags 0 and test 4 2435s # Flags 0 and test 5 2436s # Flags 0 and test 6 2436s # Flags 1 and test 0 2436s # Flags 1 and test 1 2436s # Flags 1 and test 2 2436s # Flags 1 and test 3 2436s # Flags 1 and test 4 2436s # Flags 1 and test 5 2437s # Flags 1 and test 6 2437s # Flags 2 and test 0 2437s # Flags 2 and test 1 2437s # Flags 2 and test 2 2437s # Flags 2 and test 3 2437s # Flags 2 and test 4 2437s # Flags 2 and test 5 2438s # Flags 2 and test 6 2438s # Flags 3 and test 0 2438s # Flags 3 and test 1 2438s # Flags 3 and test 2 2438s # Flags 3 and test 3 2438s # Flags 3 and test 4 2438s # Flags 3 and test 5 2439s # Flags 3 and test 6 2439s # Flags 4 and test 0 2439s # Flags 4 and test 1 2439s # Flags 4 and test 2 2439s # Flags 4 and test 3 2439s # Flags 4 and test 4 2439s # Flags 4 and test 5 2439s # Flags 4 and test 6 2439s # Flags 5 and test 0 2439s # Flags 5 and test 1 2439s # Flags 5 and test 2 2439s # Flags 5 and test 3 2439s # Flags 5 and test 4 2439s # Flags 5 and test 5 2439s # Flags 5 and test 6 2439s # Flags 6 and test 0 2439s # Flags 6 and test 1 2439s # Flags 6 and test 2 2439s # Flags 6 and test 3 2439s # Executing: glib/fileutils.test 2439s # Flags 6 and test 4 2439s # Flags 6 and test 5 2439s # Flags 6 and test 6 2439s ok 21 /fileutils/set-contents-full 2439s # slow test /fileutils/set-contents-full executed in 4.30 secs 2439s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/read-link/.dirs/home 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/read-link/.dirs/cache 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/read-link/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/read-link/.dirs/system-config2 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/read-link/.dirs/config 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/read-link/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/read-link/.dirs/system-data2 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/read-link/.dirs/data 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/read-link/.dirs/state 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/read-link/.dirs/runtime 2439s ok 22 /fileutils/read-link 2439s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/stdio-wrappers/.dirs/home 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/stdio-wrappers/.dirs/cache 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/stdio-wrappers/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/stdio-wrappers/.dirs/system-config2 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/stdio-wrappers/.dirs/config 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/stdio-wrappers/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/stdio-wrappers/.dirs/system-data2 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/stdio-wrappers/.dirs/data 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/stdio-wrappers/.dirs/state 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/stdio-wrappers/.dirs/runtime 2439s # We do not have CAP_DAC_OVERRIDE or equivalent 2439s ok 23 /fileutils/stdio-wrappers 2439s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/fopen-modes/.dirs/home 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/fopen-modes/.dirs/cache 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/fopen-modes/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/fopen-modes/.dirs/system-config2 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/fopen-modes/.dirs/config 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/fopen-modes/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/fopen-modes/.dirs/system-data2 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/fopen-modes/.dirs/data 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/fopen-modes/.dirs/state 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/fopen-modes/.dirs/runtime 2439s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/119 2439s # Testing fopen() mode 'w' 2439s # Testing fopen() mode 'r' 2439s # Testing fopen() mode 'a' 2439s # Testing fopen() mode 'w+' 2439s # Testing fopen() mode 'r+' 2439s # Testing fopen() mode 'a+' 2439s # Testing fopen() mode 'wb' 2439s # Testing fopen() mode 'rb' 2439s # Testing fopen() mode 'ab' 2439s # Testing fopen() mode 'w+b' 2439s # Testing fopen() mode 'r+b' 2439s # Testing fopen() mode 'a+b' 2439s # Testing fopen() mode 'wb+' 2439s # Testing fopen() mode 'rb+' 2439s # Testing fopen() mode 'ab+' 2439s # Testing fopen() mode 'we' 2439s # Testing fopen() mode 're' 2439s # Testing fopen() mode 'ae' 2439s # Testing fopen() mode 'w+e' 2439s # Testing fopen() mode 'r+e' 2439s # Testing fopen() mode 'a+e' 2439s # Testing fopen() mode 'wbe' 2439s # Testing fopen() mode 'rbe' 2439s # Testing fopen() mode 'abe' 2439s # Testing fopen() mode 'w+be' 2439s # Testing fopen() mode 'r+be' 2439s # Testing fopen() mode 'a+be' 2439s # Testing fopen() mode 'wb+e' 2439s # Testing fopen() mode 'rb+e' 2439s # Testing fopen() mode 'ab+e' 2439s # Testing fopen() mode 'web' 2439s # Testing fopen() mode 'reb' 2439s # Testing fopen() mode 'aeb' 2439s # Testing fopen() mode 'w+eb' 2439s # Testing fopen() mode 'r+eb' 2439s # Testing fopen() mode 'a+eb' 2439s # Testing fopen() mode 'web+' 2439s # Testing fopen() mode 'reb+' 2439s # Testing fopen() mode 'aeb+' 2439s ok 24 /fileutils/fopen-modes 2439s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/clear-fd/.dirs/home 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/clear-fd/.dirs/cache 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/clear-fd/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/clear-fd/.dirs/system-config2 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/clear-fd/.dirs/config 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/clear-fd/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/clear-fd/.dirs/system-data2 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/clear-fd/.dirs/data 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/clear-fd/.dirs/state 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/clear-fd/.dirs/runtime 2439s # /fileutils/clear-fd summary: Test g_clear_fd() and g_autofd 2439s # Will be closed by autocleanup: 3, -42 2439s # Testing error handling 2439s ok 25 /fileutils/clear-fd 2439s # Start of set-contents-full tests 2439s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-file/.dirs/home 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-file/.dirs/cache 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-file/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-file/.dirs/system-config2 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-file/.dirs/config 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-file/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-file/.dirs/system-data2 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-file/.dirs/data 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-file/.dirs/state 2439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-file/.dirs/runtime 2439s # We do not have CAP_DAC_OVERRIDE or equivalent 2439s # /fileutils/set-contents-full/read-only-file summary: Test g_file_set_contents_full() on a read-only file 2440s ok 26 /fileutils/set-contents-full/read-only-file 2440s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-directory/.dirs/home 2440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-directory/.dirs/cache 2440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-directory/.dirs/system-config1:/tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-directory/.dirs/system-config2 2440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-directory/.dirs/config 2440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-directory/.dirs/system-data1:/tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-directory/.dirs/system-data2 2440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-directory/.dirs/data 2440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-directory/.dirs/state 2440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_C044J3/fileutils/set-contents-full/read-only-directory/.dirs/runtime 2440s # /fileutils/set-contents-full/read-only-directory summary: Test g_file_set_contents_full() on a file in a read-only directory 2440s # Flags 0 2440s # We do not have CAP_DAC_OVERRIDE or equivalent 2440s # Flags 1 2440s # We do not have CAP_DAC_OVERRIDE or equivalent 2440s # Flags 2 2440s # We do not have CAP_DAC_OVERRIDE or equivalent 2440s # Flags 3 2440s # We do not have CAP_DAC_OVERRIDE or equivalent 2440s # Flags 4 2440s # We do not have CAP_DAC_OVERRIDE or equivalent 2440s # Flags 5 2440s # We do not have CAP_DAC_OVERRIDE or equivalent 2440s # Flags 6 2440s # We do not have CAP_DAC_OVERRIDE or equivalent 2440s ok 27 /fileutils/set-contents-full/read-only-directory 2440s # End of set-contents-full tests 2440s # Start of clear-fd tests 2440s # Start of subprocess tests 2440s # End of subprocess tests 2440s # End of clear-fd tests 2440s # End of fileutils tests 2440s Unable to clean up temporary directory /tmp/test_fileutils_C044J3/glib-file-set-contents-full-rodir-2AMMK3: Directory not empty 2440s Unable to clean up temporary directory /tmp/test_fileutils_C044J3/glib-file-set-contents-full-rodir-9NQMK3: Directory not empty 2440s Unable to clean up temporary directory /tmp/test_fileutils_C044J3/glib-file-set-contents-full-rodir-65HMK3: Directory not empty 2440s ok - glib/fileutils.test 2440s # Running test: glib/properties-refcount1.test 2440s Unable to clean up temporary directory /tmp/test_fileutils_C044J3/glib-file-set-contents-full-rodir-39QMK3: Directory not empty 2440s Unable to clean up temporary directory /tmp/test_fileutils_C044J3/glib-file-set-contents-full-rodir-1AQMK3: Directory not empty 2440s Unable to clean up temporary directory /tmp/test_fileutils_C044J3/glib-file-set-contents-full-rodir-LSNMK3: Directory not empty 2440s Unable to clean up temporary directory /tmp/test_fileutils_C044J3/glib-file-set-contents-full-rodir-HZMMK3: Directory not empty 2440s Unable to clean up temporary directory /tmp/test_fileutils_C044J3: Directory not empty 2440s TAP version 14 2440s # random seed: R02S40bcef66d152074b690ccaae51c13f76 2440s 1..1 2440s # Start of gobject tests 2440s # Start of refcount tests 2440s # .b 2440s # .e 2440s # .f 2440s # .f 2440s # .e 2440s # .b 2440s # .d 2440s # .c 2440s # .f 2440s # .d 2440s # .f 2440s # .f 2440s # .c 2440s # .b 2440s # .e 2440s # .b 2440s # .d 2440s # .b 2441s # .f 2441s # .b 2441s # .f 2441s # .d 2441s # .e 2441s # .e 2441s # .c 2441s # .b 2441s # .d 2441s # .f 2441s # .f 2441s # .e 2441s # .c 2441s # .c 2441s # .d 2441s # .d 2441s # .d 2441s # .d 2441s # .f 2441s # .f 2441s # .b 2441s # .e 2441s # .f 2441s # .c 2441s # .b 2441s # .b 2442s # .b 2442s # .c 2442s # .e 2442s # .f 2442s # .e 2442s # .f 2442s # .e 2442s # .e 2442s # .b 2442s # .b 2442s # .c 2442s # .b 2442s # .b 2442s # .e 2442s # .d 2442s # .d 2442s # .c 2442s # .f 2442s # .f 2442s # .b 2442s # .b 2442s # .e 2442s # .e 2442s # .d 2442s # .d 2442s # .d 2442s # .e 2442s # .b 2442s # .e 2442s # .b 2442s # .e 2442s # .c 2443s # .c 2443s # .f 2443s # .c 2443s # .f 2443s # .f 2443s # .d 2443s # .c 2443s # .c 2443s ok 1 /gobject/refcount/properties-1 2443s # slow test /gobject/refcount/properties-1 executed in 3.02 secs 2443s ok - glib/properties-refcount1.test 2443s # Running test: glib/gdbus-connection-slow.test 2443s # End of refcount tests 2443s # End of gobject tests 2443s TAP version 14 2443s # random seed: R02Sbecb03025926d6d0fac099340c6c55f1 2443s 1..2 2443s # Start of gdbus tests 2443s # Start of connection tests 2443s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/flush/.dirs/home 2443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/flush/.dirs/cache 2443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/flush/.dirs/system-config1:/tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/flush/.dirs/system-config2 2443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/flush/.dirs/config 2443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/flush/.dirs/system-data1:/tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/flush/.dirs/system-data2 2443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/flush/.dirs/data 2443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/flush/.dirs/state 2443s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/flush/.dirs/runtime 2444s # Executing: glib/gdbus-connection-slow.test 2446s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2446s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2446s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2446s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2446s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2446s ok 1 /gdbus/connection/flush 2446s # slow test /gdbus/connection/flush executed in 2.92 secs 2446s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/large_message/.dirs/home 2446s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/large_message/.dirs/cache 2446s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/large_message/.dirs/system-config1:/tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/large_message/.dirs/system-config2 2446s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/large_message/.dirs/config 2446s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/large_message/.dirs/system-data1:/tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/large_message/.dirs/system-data2 2446s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/large_message/.dirs/data 2446s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/large_message/.dirs/state 2446s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_BVKKK3/gdbus/connection/large_message/.dirs/runtime 2446s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2446s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2446s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2446s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2446s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2446s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2448s ok - glib/gdbus-connection-slow.test 2448s # Running test: glib/object-info.test 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s ok 2 /gdbus/connection/large_message 2448s # slow test /gdbus/connection/large_message executed in 2.50 secs 2448s # End of connection tests 2448s # End of gdbus tests 2448s TAP version 14 2448s # random seed: R02S04a57f3e18a9912c89afe989e1444b4a 2448s 1..2 2448s # Start of object-info tests 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_ZGHBK3/object-info/find-method-using-interfaces/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_ZGHBK3/object-info/find-method-using-interfaces/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_ZGHBK3/object-info/find-method-using-interfaces/.dirs/system-config1:/tmp/test_object-info_ZGHBK3/object-info/find-method-using-interfaces/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_ZGHBK3/object-info/find-method-using-interfaces/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_ZGHBK3/object-info/find-method-using-interfaces/.dirs/system-data1:/tmp/test_object-info_ZGHBK3/object-info/find-method-using-interfaces/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_ZGHBK3/object-info/find-method-using-interfaces/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_ZGHBK3/object-info/find-method-using-interfaces/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_ZGHBK3/object-info/find-method-using-interfaces/.dirs/runtime 2448s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2448s ok 1 /object-info/find-method-using-interfaces 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_ZGHBK3/object-info/find-vfunc-using-interfaces/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_ZGHBK3/object-info/find-vfunc-using-interfaces/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_ZGHBK3/object-info/find-vfunc-using-interfaces/.dirs/system-config1:/tmp/test_object-info_ZGHBK3/object-info/find-vfunc-using-interfaces/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_ZGHBK3/object-info/find-vfunc-using-interfaces/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_ZGHBK3/object-info/find-vfunc-using-interfaces/.dirs/system-data1:/tmp/test_object-info_ZGHBK3/object-info/find-vfunc-using-interfaces/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_ZGHBK3/object-info/find-vfunc-using-interfaces/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_ZGHBK3/object-info/find-vfunc-using-interfaces/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_ZGHBK3/object-info/find-vfunc-using-interfaces/.dirs/runtime 2448s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2448s ok 2 /object-info/find-vfunc-using-interfaces 2448s # End of object-info tests 2448s ok - glib/object-info.test 2448s # Running test: glib/buffered-output-stream.test 2448s ok - glib/buffered-output-stream.test 2448s TAP version 14 2448s # random seed: R02S6200da046b65bd3b4b7906f155b9352a 2448s 1..5 2448s # Start of buffered-output-stream tests 2448s ok 1 /buffered-output-stream/write 2448s ok 2 /buffered-output-stream/grow 2448s ok 3 /buffered-output-stream/seek 2448s ok 4 /buffered-output-stream/truncate 2448s # End of buffered-output-stream tests 2448s # Start of filter-output-stream tests 2448s ok 5 /filter-output-stream/close 2448s # End of filter-output-stream tests 2448s # Running test: glib/sandbox.test 2448s TAP version 14 2448s # random seed: R02S447075f7f6f068710593878f0b2319c9 2448s 1..4 2448s # Start of sandbox tests 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_YEQ7J3/sandbox/none/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_YEQ7J3/sandbox/none/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_YEQ7J3/sandbox/none/.dirs/system-config1:/tmp/test_sandbox_YEQ7J3/sandbox/none/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_YEQ7J3/sandbox/none/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_YEQ7J3/sandbox/none/.dirs/system-data1:/tmp/test_sandbox_YEQ7J3/sandbox/none/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_YEQ7J3/sandbox/none/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_YEQ7J3/sandbox/none/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_YEQ7J3/sandbox/none/.dirs/runtime 2448s ok 1 /sandbox/none 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_YEQ7J3/sandbox/snap/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_YEQ7J3/sandbox/snap/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_YEQ7J3/sandbox/snap/.dirs/system-config1:/tmp/test_sandbox_YEQ7J3/sandbox/snap/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_YEQ7J3/sandbox/snap/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_YEQ7J3/sandbox/snap/.dirs/system-data1:/tmp/test_sandbox_YEQ7J3/sandbox/snap/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_YEQ7J3/sandbox/snap/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_YEQ7J3/sandbox/snap/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_YEQ7J3/sandbox/snap/.dirs/runtime 2448s # Created snap.yaml in /tmp/test_sandbox_YEQ7J3/snap/current/meta/snap.yaml 2448s ok 2 /sandbox/snap 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_YEQ7J3/sandbox/classic-snap/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_YEQ7J3/sandbox/classic-snap/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_YEQ7J3/sandbox/classic-snap/.dirs/system-config1:/tmp/test_sandbox_YEQ7J3/sandbox/classic-snap/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_YEQ7J3/sandbox/classic-snap/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_YEQ7J3/sandbox/classic-snap/.dirs/system-data1:/tmp/test_sandbox_YEQ7J3/sandbox/classic-snap/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_YEQ7J3/sandbox/classic-snap/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_YEQ7J3/sandbox/classic-snap/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_YEQ7J3/sandbox/classic-snap/.dirs/runtime 2448s # Created snap.yaml in /tmp/test_sandbox_YEQ7J3/snap/current/meta/snap.yaml 2448s ok 3 /sandbox/classic-snap 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_YEQ7J3/sandbox/flatpak/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_YEQ7J3/sandbox/flatpak/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_YEQ7J3/sandbox/flatpak/.dirs/system-config1:/tmp/test_sandbox_YEQ7J3/sandbox/flatpak/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_YEQ7J3/sandbox/flatpak/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_YEQ7J3/sandbox/flatpak/.dirs/system-data1:/tmp/test_sandbox_YEQ7J3/sandbox/flatpak/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_YEQ7J3/sandbox/flatpak/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_YEQ7J3/sandbox/flatpak/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_YEQ7J3/sandbox/flatpak/.dirs/runtime 2448s # Creating .flatpak-info in /tmp/test_sandbox_YEQ7J3/sandbox/flatpak/.dirs/runtime/.flatpak-info 2448s ok 4 /sandbox/flatpak 2448s # End of sandbox tests 2448s ok - glib/sandbox.test 2448s # Running test: glib/appmonitor.test 2448s TAP version 14 2448s # random seed: R02Sa74ceb50f4572dbe28a29292c2e133bd 2448s 1..1 2448s # Start of monitor tests 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appmonitor_P064J3/monitor/app/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appmonitor_P064J3/monitor/app/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appmonitor_P064J3/monitor/app/.dirs/system-config1:/tmp/test_appmonitor_P064J3/monitor/app/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appmonitor_P064J3/monitor/app/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appmonitor_P064J3/monitor/app/.dirs/system-data1:/tmp/test_appmonitor_P064J3/monitor/app/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appmonitor_P064J3/monitor/app/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_appmonitor_P064J3/monitor/app/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appmonitor_P064J3/monitor/app/.dirs/runtime 2448s # Using data directory: /tmp/test_appmonitor_P064J3/monitor/app/.dirs/data 2448s ok 1 /monitor/app 2448s # End of monitor tests 2448s ok - glib/appmonitor.test 2448s # Running test: glib/gdbus-names.test 2448s TAP version 14 2448s # random seed: R02Se46396b6c22867ce32ff3a1193ebdbc8 2448s 1..10 2448s # Start of gdbus tests 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_9834J3/gdbus/validate-names/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/validate-names/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/validate-names/.dirs/system-config1:/tmp/test_gdbus-names_9834J3/gdbus/validate-names/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_9834J3/gdbus/validate-names/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/validate-names/.dirs/system-data1:/tmp/test_gdbus-names_9834J3/gdbus/validate-names/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_9834J3/gdbus/validate-names/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/validate-names/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_9834J3/gdbus/validate-names/.dirs/runtime 2448s ok 1 /gdbus/validate-names 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-own-name/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-own-name/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/bus-own-name/.dirs/system-config1:/tmp/test_gdbus-names_9834J3/gdbus/bus-own-name/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-own-name/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/bus-own-name/.dirs/system-data1:/tmp/test_gdbus-names_9834J3/gdbus/bus-own-name/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-own-name/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-own-name/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_9834J3/gdbus/bus-own-name/.dirs/runtime 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s ok 2 /gdbus/bus-own-name 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name/.dirs/system-config1:/tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name/.dirs/system-data1:/tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name/.dirs/runtime 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s ok 3 /gdbus/bus-watch-name 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start/.dirs/runtime 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s ok 4 /gdbus/bus-watch-name-auto-start 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config1:/tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data1:/tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/runtime 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2448s dbus-daemon[39462]: [session uid=1000 pid=39462 pidfd=4] Activating service name='org.gtk.GDBus.FakeService' requested by ':1.0' (uid=1000 pid=39452 comm="/usr/libexec/installed-tests/glib/gdbus-names" label="unconfined") 2448s # Acquired a message bus connection 2448s dbus-daemon[39462]: [session uid=1000 pid=39462 pidfd=4] Successfully activated service 'org.gtk.GDBus.FakeService' 2448s # Acquired the name org.gtk.GDBus.FakeService 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s ok - glib/gdbus-names.test 2448s ok 5 /gdbus/bus-watch-name-auto-start-service-exist 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures/.dirs/system-config1:/tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures/.dirs/system-data1:/tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures/.dirs/runtime 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s ok 6 /gdbus/bus-watch-name-closures 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures-auto-start/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures-auto-start/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures-auto-start/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures-auto-start/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures-auto-start/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-name-closures-auto-start/.dirs/runtime 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s ok 7 /gdbus/bus-watch-name-closures-auto-start 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-different-context/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-different-context/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-different-context/.dirs/system-config1:/tmp/test_gdbus-names_9834J3/gdbus/bus-watch-different-context/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-different-context/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-different-context/.dirs/system-data1:/tmp/test_gdbus-names_9834J3/gdbus/bus-watch-different-context/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-different-context/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-different-context/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_9834J3/gdbus/bus-watch-different-context/.dirs/runtime 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s ok 8 /gdbus/bus-watch-different-context 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-unwatch-early/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-unwatch-early/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/bus-unwatch-early/.dirs/system-config1:/tmp/test_gdbus-names_9834J3/gdbus/bus-unwatch-early/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-unwatch-early/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/bus-unwatch-early/.dirs/system-data1:/tmp/test_gdbus-names_9834J3/gdbus/bus-unwatch-early/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-unwatch-early/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/bus-unwatch-early/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_9834J3/gdbus/bus-unwatch-early/.dirs/runtime 2448s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/604 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2448s ok 9 /gdbus/bus-unwatch-early 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_9834J3/gdbus/escape-object-path/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/escape-object-path/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/escape-object-path/.dirs/system-config1:/tmp/test_gdbus-names_9834J3/gdbus/escape-object-path/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_9834J3/gdbus/escape-object-path/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_9834J3/gdbus/escape-object-path/.dirs/system-data1:/tmp/test_gdbus-names_9834J3/gdbus/escape-object-path/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_9834J3/gdbus/escape-object-path/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_9834J3/gdbus/escape-object-path/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_9834J3/gdbus/escape-object-path/.dirs/runtime 2448s ok 10 /gdbus/escape-object-path 2448s # End of gdbus tests 2448s # Running test: glib/cxx-11.test 2448s TAP version 14 2448s # random seed: R02Sebdb2654c38ae5848b475b4d1868db6b 2448s 1..2 2448s # Start of gtask tests 2448s # 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. 2448s ok 1 /gtask/name 2448s # Start of name tests 2448s # 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. 2448s ok 2 /gtask/name/macro-wrapper 2448s # End of name tests 2448s # End of gtask tests 2448s ok - glib/cxx-11.test 2448s # Running test: glib/dynamictype.test 2448s TAP version 14 2448s # random seed: R02S5ee85d174a741d16cc0e97df4e8e3109 2448s 1..2 2448s ok - glib/dynamictype.test 2448s # Running test: glib/credentials.test 2448s ok - glib/credentials.test 2448s # Running test: glib/mimeapps.test 2448s # Start of gobject tests 2448s ok 1 /gobject/dynamic-type 2448s # Start of dynamic-type tests 2448s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/623 2448s ok 2 /gobject/dynamic-type/query 2448s # End of dynamic-type tests 2448s # End of gobject tests 2448s TAP version 14 2448s # random seed: R02Sa964b9bce532c818a44fed03ef724527 2448s 1..1 2448s # Start of credentials tests 2448s # GCredentials:linux-ucred:pid=39482,uid=1000,gid=1000 2448s # GCredentials:linux-ucred:pid=39482,uid=0,gid=1000 2448s ok 1 /credentials/basic 2448s # End of credentials tests 2448s TAP version 14 2448s # random seed: R02S840cdd3c54bd4541613e2adb2f194f84 2448s 1..13 2448s # Start of appinfo tests 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/system-config1:/tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/system-data1:/tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/runtime 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/system-data1/applications' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/system-data1/applications/mimeapps.list' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/data/applications' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/data/applications/myapp.desktop' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/data/applications/myapp2.desktop' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/data/applications/myapp3.desktop' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/data/applications/myapp4.desktop' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/data/applications/myapp5.desktop' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/data/applications/nosuchapp.desktop' 2448s # removing '/tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/data/applications/mimeapps.list' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/data/applications/mimeinfo.cache' 2448s ok 1 /appinfo/all 2448s # Start of mime tests 2448s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/home 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/cache 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/system-config1:/tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/system-config2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/config 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/system-data1:/tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/system-data2 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/data 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/state 2448s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/runtime 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/system-data1/applications' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/system-data1/applications/mimeapps.list' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/data/applications' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/data/applications/myapp.desktop' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/data/applications/myapp2.desktop' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/data/applications/myapp3.desktop' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/data/applications/myapp4.desktop' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/data/applications/myapp5.desktop' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/data/applications/nosuchapp.desktop' 2448s # removing '/tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/data/applications/mimeapps.list' 2448s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/data/applications/mimeinfo.cache' 2448s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/config 2448s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_UC83J3/appinfo/all/.dirs/config to /tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/config 2448s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/config 2448s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/config 2449s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/config 2449s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/config 2449s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/config 2449s ok 2 /appinfo/mime/api 2449s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/home 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/cache 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/system-config1:/tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/system-config2 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/config 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/system-data1:/tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/system-data2 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/data 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/state 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/runtime 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/system-data1/applications' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/system-data1/applications/mimeapps.list' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/data/applications' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/data/applications/myapp.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/data/applications/myapp2.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/data/applications/myapp3.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/data/applications/myapp4.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/data/applications/myapp5.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/data/applications/nosuchapp.desktop' 2449s # removing '/tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/data/applications/mimeapps.list' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/data/applications/mimeinfo.cache' 2449s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/config 2449s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_UC83J3/appinfo/mime/api/.dirs/config to /tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/config 2449s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/config 2449s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/config 2449s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/config 2449s ok 3 /appinfo/mime/default 2449s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/home 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/cache 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/system-config1:/tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/system-config2 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/config 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/system-data1:/tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/system-data2 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/data 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/state 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/runtime 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/system-data1/applications' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/system-data1/applications/mimeapps.list' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/data/applications' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/data/applications/myapp.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/data/applications/myapp2.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/data/applications/myapp3.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/data/applications/myapp4.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/data/applications/myapp5.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/data/applications/nosuchapp.desktop' 2449s # removing '/tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/data/applications/mimeapps.list' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/data/applications/mimeinfo.cache' 2449s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/config 2449s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_UC83J3/appinfo/mime/default/.dirs/config to /tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/config 2449s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/config 2449s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/config 2449s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/config 2449s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/config 2449s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/config 2449s # Executing: glib/mimeapps.test 2449s ok 4 /appinfo/mime/file 2449s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/home 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/cache 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/system-config2 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/config 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/system-data2 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/data 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/state 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/runtime 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/system-data1/applications' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/system-data1/applications/mimeapps.list' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/data/applications' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp2.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp3.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp4.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp5.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 2449s # removing '/tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/data/applications/mimeapps.list' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/data/applications/mimeinfo.cache' 2449s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_UC83J3/appinfo/mime/file/.dirs/config to /tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/config 2449s ok 5 /appinfo/mime/scheme-handler 2449s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/home 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/cache 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/system-config2 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/config 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/system-data2 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/data 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/state 2449s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/runtime 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/system-data1/applications' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/system-data1/applications/mimeapps.list' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/data/applications' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/data/applications/myapp.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/data/applications/myapp2.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/data/applications/myapp3.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/data/applications/myapp4.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/data/applications/myapp5.desktop' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/data/applications/nosuchapp.desktop' 2449s # removing '/tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/data/applications/mimeapps.list' 2449s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/data/applications/mimeinfo.cache' 2449s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/config 2449s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_UC83J3/appinfo/mime/scheme-handler/.dirs/config to /tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/config 2449s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/config 2449s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/config 2449s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/config 2450s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/config 2450s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/config 2450s ok 6 /appinfo/mime/default-last-used 2450s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/home 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/cache 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/system-config2 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/config 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/system-data2 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/data 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/state 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/runtime 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 2450s # removing '/tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 2450s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_UC83J3/appinfo/mime/default-last-used/.dirs/config to /tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/config 2450s ok 7 /appinfo/mime/ignore-nonexisting 2450s # End of mime tests 2450s # Start of mime-symlinked tests 2450s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/home 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/cache 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/system-config1:/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/system-config2 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/config 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/system-data1:/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/system-data2 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/data 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/state 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/runtime 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/system-data1/applications' 2450s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/system-data1/applications/mimeapps.list.c' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/data/applications' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp2.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp3.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp4.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp5.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/data/applications/nosuchapp.desktop' 2450s # removing '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/data/applications/mimeapps.list' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/data/applications/mimeinfo.cache' 2450s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/config 2450s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_UC83J3/appinfo/mime/ignore-nonexisting/.dirs/config to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/config 2450s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/config 2450s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/config 2450s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/config 2450s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/config 2450s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/config 2450s ok 8 /appinfo/mime-symlinked/api 2450s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/home 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/cache 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/system-config1:/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/system-config2 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/config 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/system-data1:/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/system-data2 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/data 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/state 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/runtime 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/system-data1/applications' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/system-data1/applications/mimeapps.list.c' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/data/applications' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp2.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp3.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp4.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp5.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/data/applications/nosuchapp.desktop' 2450s # removing '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/data/applications/mimeapps.list' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/data/applications/mimeinfo.cache' 2450s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/config 2450s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/api/.dirs/config to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/config 2450s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/config 2450s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/config 2450s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/config 2450s ok 9 /appinfo/mime-symlinked/default 2450s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/home 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/cache 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/system-config1:/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/system-config2 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/config 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/system-data1:/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/system-data2 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/data 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/state 2450s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/runtime 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/system-data1/applications' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/system-data1/applications/mimeapps.list.c' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/data/applications' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp2.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp3.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp4.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp5.desktop' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/data/applications/nosuchapp.desktop' 2450s # removing '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/data/applications/mimeapps.list' 2450s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/data/applications/mimeinfo.cache' 2450s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/config 2450s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default/.dirs/config to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/config 2450s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/config 2450s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/config 2451s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/config 2451s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/config 2451s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/config 2452s ok 10 /appinfo/mime-symlinked/file 2452s # slow test /appinfo/mime-symlinked/file executed in 1.59 secs 2452s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/home 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/cache 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/system-config2 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/config 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data2 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/data 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/state 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/runtime 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1/applications' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1/applications/mimeapps.list.c' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp.desktop' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp2.desktop' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp3.desktop' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp4.desktop' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp5.desktop' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 2452s # removing '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/mimeapps.list' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/mimeinfo.cache' 2452s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/file/.dirs/config to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/config 2452s ok 11 /appinfo/mime-symlinked/scheme-handler 2452s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/home 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/cache 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/system-config2 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/config 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/system-data2 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/data 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/state 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/runtime 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1/applications' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1/applications/mimeapps.list.c' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp.desktop' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp2.desktop' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp3.desktop' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp4.desktop' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp5.desktop' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/nosuchapp.desktop' 2452s # removing '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/mimeapps.list' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/mimeinfo.cache' 2452s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/config 2452s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/scheme-handler/.dirs/config to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/config 2452s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/config 2452s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/config 2452s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/config 2452s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/config 2452s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/config 2452s ok 12 /appinfo/mime-symlinked/default-last-used 2452s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/home 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/cache 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-config2 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/config 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data2 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/state 2452s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/runtime 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1/applications' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list.c' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications' 2452s ok - glib/mimeapps.test 2452s # Running test: glib/bindinggroup.test 2452s ok - glib/bindinggroup.test 2452s # Running test: glib/hostutils.test 2452s ok - glib/hostutils.test 2452s # Running test: glib/gnotification.test 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 2452s # removing '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 2452s # creating '/tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 2452s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/default-last-used/.dirs/config to /tmp/test_mimeapps_UC83J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/config 2452s ok 13 /appinfo/mime-symlinked/ignore-nonexisting 2452s # End of mime-symlinked tests 2452s # End of appinfo tests 2452s TAP version 14 2452s # random seed: R02S89948cae3fec50fce41dbdcdc5cc6726 2452s 1..11 2452s # Start of GObject tests 2452s # Start of BindingGroup tests 2452s ok 1 /GObject/BindingGroup/invalid 2452s ok 2 /GObject/BindingGroup/default 2452s ok 3 /GObject/BindingGroup/bidirectional 2452s ok 4 /GObject/BindingGroup/transform 2452s ok 5 /GObject/BindingGroup/transform-closures 2452s ok 6 /GObject/BindingGroup/same-object 2452s ok 7 /GObject/BindingGroup/weak-ref-source 2452s ok 8 /GObject/BindingGroup/weak-ref-target 2452s ok 9 /GObject/BindingGroup/properties 2452s ok 10 /GObject/BindingGroup/weak-notify-no-bindings 2452s ok 11 /GObject/BindingGroup/empty-closures 2452s # End of BindingGroup tests 2452s # End of GObject tests 2452s TAP version 14 2452s # random seed: R02S01dab1ca32a22e202dc81907a40d77e4 2452s 1..4 2452s # Start of hostutils tests 2452s ok 1 /hostutils/hostname_is_non_ascii 2452s ok 2 /hostutils/to_ascii 2452s ok 3 /hostutils/to_unicode 2452s ok 4 /hostutils/is_ip_addr 2452s # End of hostutils tests 2452s TAP version 14 2452s # random seed: R02Sfd653eb31ff6e7a459b5e2b4de91b1d0 2452s 1..2 2452s # Start of gnotification tests 2453s ok 1 /gnotification/basic 2453s ok 2 /gnotification/properties 2453s # End of gnotification tests 2453s ok - glib/gnotification.test 2453s # Running test: glib/permission.test 2453s TAP version 14 2453s ok - glib/permission.test 2453s # Running test: glib/messages-low-memory.py.test 2453s # random seed: R02S271c42f36a271d9f7bcfc7629434ceb5 2453s 1..1 2453s # Start of permission tests 2453s ok 1 /permission/simple 2453s # End of permission tests 2453s TAP version 13 2453s ok 1 __main__.TestMessagesLowMemory.test_message_memory_allocation_failure 2453s # messages-low-memory: /usr/libexec/installed-tests/glib/messages-low-memory 2453s # tmpdir: /tmp/tmpoxymthec 2453s # Running: ['/usr/libexec/installed-tests/glib/messages-low-memory'] 2453s # Return code: -6 2453s # Output: 2453s # 2453s # Error: 2453s # GLib-Message: 10:07:07.041: Simulates a situation in which we were crashing because of low-memory, leading malloc to fail instead of aborting 2453s # GLib-Message: 10:07:07.042: bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2753 2453s # ../../../glib/gprintf.c:351: failed to allocate memory 2453s 1..1 2453s ok - glib/messages-low-memory.py.test 2453s # Running test: glib/debugcontroller.test 2453s TAP version 14 2453s # random seed: R02Saf3d11e5ff79f6ffd0716a8f48f7c412 2453s 1..3 2453s # Start of debug-controller tests 2453s # Start of dbus tests 2453s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 2453s # GLib-GIO-DEBUG: Debug output enabled 2453s # GLib-GIO-DEBUG: Debug output disabled 2453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2453s ok 1 /debug-controller/dbus/basic 2453s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 2453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2453s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2453s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2453s ok 2 /debug-controller/dbus/duplicate 2453s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 2453s ok 3 /debug-controller/dbus/properties # SKIP https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2486#note_1384102 2453s # End of dbus tests 2453s # End of debug-controller tests 2453s ok - glib/debugcontroller.test 2453s # Running test: glib/network-monitor.test 2453s TAP version 14 2453s # random seed: R02S7eb3520a573df7913b4021609571e2aa 2453s 1..4 2453s # Start of network-monitor tests 2453s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 2453s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 2453s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ‘gio-network-monitor’ 2453s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 2453s ok 1 /network-monitor/default 2453s ok 2 /network-monitor/remove_default 2453s ok 3 /network-monitor/add_networks 2453s ok 4 /network-monitor/remove_networks 2453s # End of network-monitor tests 2453s ok - glib/network-monitor.test 2453s # Running test: glib/socket-address.test 2453s ok - glib/socket-address.test 2453s # Running test: glib/signals-refcount1.test 2453s TAP version 14 2453s # random seed: R02S4fe8e5dec215c5b7ded55d5f394e9dcd 2453s 1..2 2453s # Start of socket tests 2453s # Start of address tests 2453s # Start of unix tests 2453s ok 1 /socket/address/unix/construct 2453s ok 2 /socket/address/unix/to-string 2453s # End of unix tests 2453s # End of address tests 2453s # End of socket tests 2453s TAP version 14 2453s # random seed: R02S4d39d960b1926d4c5b84a1ddef2965cb 2453s 1..1 2453s # Start of gobject tests 2453s # Start of refcount tests 2453s # init 0x2aa16fc84a0 2453s # 2453s # init 0x2aa16fc0580 2453s # 2454s # Executing: glib/signals-refcount1.test 2458s # dispose 0x2aa16fc84a0! 2458s # 2458s # dispose 0x2aa16fc0580! 2458s # 2458s ok 1 /gobject/refcount/signals 2458s # slow test /gobject/refcount/signals executed in 5.03 secs 2458s # End of refcount tests 2458s # End of gobject tests 2458s ok - glib/signals-refcount1.test 2458s # Running test: glib/type.test 2458s TAP version 14 2458s # random seed: R02Sbda0e8ee2bcc6718ac299a7344fc33cb 2458s 1..6 2458s # Start of type tests 2458s ok 1 /type/registration-serial 2458s ok 2 /type/interface-prerequisite 2458s ok 3 /type/interface-check 2458s ok 4 /type/next-base 2458s ok 5 /type/is-a 2458s # Invalid types can’t be queried. 2458s # Unclassed types can’t be queried. 2458s ok 6 /type/query 2458s # End of type tests 2458s ok - glib/type.test 2458s # Running test: glib/gdbus-proxy-unique-name.test 2458s TAP version 14 2458s # random seed: R02Sc3dde98e8c00f9d59e1fe6b3fe0447c6 2458s 1..1 2458s # Start of gdbus tests 2458s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-unique-name_J55MK3/gdbus/proxy-unique-name/.dirs/home 2458s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-unique-name_J55MK3/gdbus/proxy-unique-name/.dirs/cache 2458s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-unique-name_J55MK3/gdbus/proxy-unique-name/.dirs/system-config1:/tmp/test_gdbus-proxy-unique-name_J55MK3/gdbus/proxy-unique-name/.dirs/system-config2 2458s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-unique-name_J55MK3/gdbus/proxy-unique-name/.dirs/config 2458s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-unique-name_J55MK3/gdbus/proxy-unique-name/.dirs/system-data1:/tmp/test_gdbus-proxy-unique-name_J55MK3/gdbus/proxy-unique-name/.dirs/system-data2 2458s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-unique-name_J55MK3/gdbus/proxy-unique-name/.dirs/data 2458s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-unique-name_J55MK3/gdbus/proxy-unique-name/.dirs/state 2458s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-unique-name_J55MK3/gdbus/proxy-unique-name/.dirs/runtime 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s ok 1 /gdbus/proxy-unique-name 2459s # End of gdbus tests 2459s ok - glib/gdbus-proxy-unique-name.test 2459s # Running test: glib/strvbuilder.test 2459s TAP version 14 2459s # random seed: R02Sb16323c166ab79aa356e57f2e10f6da2 2459s 1..7 2459s # Start of strvbuilder tests 2459s ok - glib/strvbuilder.test 2459s # Running test: glib/fdo-notification-backend.test 2459s ok 1 /strvbuilder/empty 2459s ok 2 /strvbuilder/add 2459s ok 3 /strvbuilder/addv 2459s ok 4 /strvbuilder/add_many 2459s ok 5 /strvbuilder/take 2459s ok 6 /strvbuilder/ref 2459s ok 7 /strvbuilder/unref_to_strv 2459s # End of strvbuilder tests 2459s TAP version 14 2459s # random seed: R02Sa8dbb16b6fa7085d487a36aa852de34f 2459s 1..2 2459s # Start of fdo-notification-backend tests 2459s # Test constructing a GFdoNotificationBackend 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s ok 1 /fdo-notification-backend/construction 2459s # Start of dbus tests 2459s # /fdo-notification-backend/dbus/activate-action summary: Test how the backend handles valid and invalid ActionInvoked signals from the daemon 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2459s ok - glib/fdo-notification-backend.test 2459s # Running test: glib/gdbus-addresses.test 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2459s ok 2 /fdo-notification-backend/dbus/activate-action 2459s # End of dbus tests 2459s # End of fdo-notification-backend tests 2459s TAP version 14 2459s # random seed: R02Sabcb37a04db6b6161b43a0f5fecb66f8 2459s 1..9 2459s # Start of gdbus tests 2459s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/empty-address/.dirs/home 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/empty-address/.dirs/cache 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/empty-address/.dirs/system-config1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/empty-address/.dirs/system-config2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/empty-address/.dirs/config 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/empty-address/.dirs/system-data1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/empty-address/.dirs/system-data2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/empty-address/.dirs/data 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/empty-address/.dirs/state 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/empty-address/.dirs/runtime 2459s ok 1 /gdbus/empty-address 2459s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/unsupported-address/.dirs/home 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/unsupported-address/.dirs/cache 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/unsupported-address/.dirs/system-config1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/unsupported-address/.dirs/system-config2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/unsupported-address/.dirs/config 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/unsupported-address/.dirs/system-data1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/unsupported-address/.dirs/system-data2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/unsupported-address/.dirs/data 2459s ok - glib/gdbus-addresses.test 2459s # Running test: glib/overflow.test 2459s ok - glib/overflow.test 2459s # Running test: glib/properties-refcount3.test 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/unsupported-address/.dirs/state 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/unsupported-address/.dirs/runtime 2459s ok 2 /gdbus/unsupported-address 2459s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/address-parsing/.dirs/home 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/address-parsing/.dirs/cache 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/address-parsing/.dirs/system-config1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/address-parsing/.dirs/system-config2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/address-parsing/.dirs/config 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/address-parsing/.dirs/system-data1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/address-parsing/.dirs/system-data2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/address-parsing/.dirs/data 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/address-parsing/.dirs/state 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/address-parsing/.dirs/runtime 2459s ok 3 /gdbus/address-parsing 2459s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/unix-address/.dirs/home 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/unix-address/.dirs/cache 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/unix-address/.dirs/system-config1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/unix-address/.dirs/system-config2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/unix-address/.dirs/config 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/unix-address/.dirs/system-data1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/unix-address/.dirs/system-data2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/unix-address/.dirs/data 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/unix-address/.dirs/state 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/unix-address/.dirs/runtime 2459s ok 4 /gdbus/unix-address 2459s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/nonce-tcp-address/.dirs/home 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/nonce-tcp-address/.dirs/cache 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/nonce-tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/nonce-tcp-address/.dirs/system-config2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/nonce-tcp-address/.dirs/config 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/nonce-tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/nonce-tcp-address/.dirs/system-data2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/nonce-tcp-address/.dirs/data 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/nonce-tcp-address/.dirs/state 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/nonce-tcp-address/.dirs/runtime 2459s ok 5 /gdbus/nonce-tcp-address 2459s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/tcp-address/.dirs/home 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/tcp-address/.dirs/cache 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/tcp-address/.dirs/system-config2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/tcp-address/.dirs/config 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/tcp-address/.dirs/system-data2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/tcp-address/.dirs/data 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/tcp-address/.dirs/state 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/tcp-address/.dirs/runtime 2459s ok 6 /gdbus/tcp-address 2459s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/autolaunch-address/.dirs/home 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/autolaunch-address/.dirs/cache 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/autolaunch-address/.dirs/system-config1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/autolaunch-address/.dirs/system-config2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/autolaunch-address/.dirs/config 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/autolaunch-address/.dirs/system-data1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/autolaunch-address/.dirs/system-data2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/autolaunch-address/.dirs/data 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/autolaunch-address/.dirs/state 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/autolaunch-address/.dirs/runtime 2459s ok 7 /gdbus/autolaunch-address 2459s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/mixed-address/.dirs/home 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/mixed-address/.dirs/cache 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/mixed-address/.dirs/system-config1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/mixed-address/.dirs/system-config2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/mixed-address/.dirs/config 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/mixed-address/.dirs/system-data1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/mixed-address/.dirs/system-data2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/mixed-address/.dirs/data 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/mixed-address/.dirs/state 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/mixed-address/.dirs/runtime 2459s ok 8 /gdbus/mixed-address 2459s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/escape-address/.dirs/home 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/escape-address/.dirs/cache 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/escape-address/.dirs/system-config1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/escape-address/.dirs/system-config2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/escape-address/.dirs/config 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/escape-address/.dirs/system-data1:/tmp/test_gdbus-addresses_ZQZLK3/gdbus/escape-address/.dirs/system-data2 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/escape-address/.dirs/data 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/escape-address/.dirs/state 2459s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_ZQZLK3/gdbus/escape-address/.dirs/runtime 2459s ok 9 /gdbus/escape-address 2459s # End of gdbus tests 2459s TAP version 14 2459s # random seed: R02S838aff6d81ea32f57f997bf1956b2815 2459s 1..6 2459s # Start of glib tests 2459s # Start of checked-math tests 2459s ok 1 /glib/checked-math/guint-add 2459s ok 2 /glib/checked-math/guint-mul 2459s ok 3 /glib/checked-math/guint64-add 2459s ok 4 /glib/checked-math/guint64-mul 2459s ok 5 /glib/checked-math/gsize-add 2459s ok 6 /glib/checked-math/gsize-mul 2459s # End of checked-math tests 2459s # End of glib tests 2459s TAP version 14 2459s # random seed: R02S827bb77fb8c082fa74b5962b9b4bc625 2459s 1..1 2459s # Start of gobject tests 2459s # Start of refcount tests 2459s # Executing: glib/properties-refcount3.test 2464s # Executing: glib/properties-refcount3.test 2469s # Executing: glib/properties-refcount3.test 2474s # Executing: glib/properties-refcount3.test 2479s # Executing: glib/properties-refcount3.test 2484s # Executing: glib/properties-refcount3.test 2489s # 2489s # stopping 2489s # 2489s # stopped 2489s # 2489s # 14822399 583384 2489s # 2489s ok 1 /gobject/refcount/properties-3 2489s # slow test /gobject/refcount/properties-3 executed in 30.05 secs 2489s # End of refcount tests 2489s # End of gobject tests 2489s ok - glib/properties-refcount3.test 2489s # Running test: glib/trash.test 2489s TAP version 14 2489s # random seed: R02S506b1f85c5d21c2fccaf768709d0ac92 2489s 1..3 2489s # Start of trash tests 2489s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/251 2489s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 2489s # File: /tmp/test-trashVGILK3 (parent st_dev: 64769) 2489s # Home: /home/ubuntu (st_dev: 64769) 2489s ok 1 /trash/not-supported # SKIP The file has to be on another filesystem than the home trash to run this test 2489s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1522 2489s ok 2 /trash/symlinks # SKIP Directory '/home/ubuntu/.local' does not exist 2489s ok 3 /trash/long-filename 2489s # End of trash tests 2489s ok - glib/trash.test 2489s # Running test: glib/async-close-output-stream.test 2489s TAP version 14 2489s # random seed: R02S4dc9f1b8d5bbae13746f7f528d61a8dd 2489s 1..3 2489s # Start of close-async tests 2489s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 2489s ok 1 /close-async/without-flush 2489s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 2489s ok - glib/async-close-output-stream.test 2489s ok 2 /close-async/with-flush 2489s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 2489s ok 3 /close-async/with-async-flush 2489s # End of close-async tests 2489s # Running test: glib/performance.test 2489s # Executing: glib/performance.test 2494s # Executing: glib/performance.test 2499s # Executing: glib/performance.test 2504s # Executing: glib/performance.test 2509s # Executing: glib/performance.test 2514s # Executing: glib/performance.test 2519s # Executing: glib/performance.test 2524s # Executing: glib/performance.test 2529s # Executing: glib/performance.test 2534s # Executing: glib/performance.test 2539s simple-construction: Millions of constructed objects per second: 20.481 2539s # Executing: glib/performance.test 2544s # Executing: glib/performance.test 2549s # Executing: glib/performance.test 2554s # Executing: glib/performance.test 2557s simple-construction1: Millions of constructed objects per second: 69.084 2559s # Executing: glib/performance.test 2563s complex-construction: Millions of constructed objects per second: 7.104 2564s # Executing: glib/performance.test 2569s # Executing: glib/performance.test 2574s # Executing: glib/performance.test 2579s # Executing: glib/performance.test 2580s complex-construction1: Millions of constructed objects per second: 12.611 2584s # Executing: glib/performance.test 2588s complex-construction2: Millions of constructed objects per second: 14.619 2589s # Executing: glib/performance.test 2594s # Executing: glib/performance.test 2599s finalization: Millions of finalized objects per second: 4.434 2599s # Executing: glib/performance.test 2606s # Executing: glib/performance.test 2608s type-check: Million type checks per second: 79.39 2609s # Executing: glib/performance.test 2614s # Executing: glib/performance.test 2616s emit-unhandled: Emissions per second: 6796585 2619s # Executing: glib/performance.test 2624s emit-unhandled-empty: Emissions per second: 44947823 2624s # Executing: glib/performance.test 2629s # Executing: glib/performance.test 2631s emit-unhandled-generic: Emissions per second: 10978737 2635s # Executing: glib/performance.test 2639s emit-unhandled-generic-empty: Emissions per second: 45067410 2639s # Executing: glib/performance.test 2644s # Executing: glib/performance.test 2647s emit-unhandled-args: Emissions per second: 5606347 2649s # Executing: glib/performance.test 2652s emit-handled: Emissions per second: 4566699 2654s emit-handled-empty: Emissions per second: 4949225 2654s # Executing: glib/performance.test 2659s emit-handled-generic: Emissions per second: 4755358 2659s # Executing: glib/performance.test 2661s emit-handled-generic-empty: Emissions per second: 9012950 2664s # Executing: glib/performance.test 2669s # Executing: glib/performance.test 2670s emit-handled-args: Emissions per second: 4018375 2674s # Executing: glib/performance.test 2679s # Executing: glib/performance.test 2681s notify-unhandled: Notify (unhandled) per second: 31802210 2684s # Executing: glib/performance.test 2687s notify-by-pspec-unhandled: Notify (unhandled) per second: 117011314 2689s # Executing: glib/performance.test 2694s # Executing: glib/performance.test 2695s notify-handled: Notify per second: 2428770 2699s # Executing: glib/performance.test 2704s notify-by-pspec-handled: Notify per second: 2580407 2704s # Executing: glib/performance.test 2708s property-set: Property set per second: 19207332 2709s # Executing: glib/performance.test 2714s # Executing: glib/performance.test 2717s property-set-signaled: Property set per second: 4941102 2719s # Executing: glib/performance.test 2724s # Executing: glib/performance.test 2725s property-get: Property get per second: 19020109 2730s # Executing: glib/performance.test 2734s # Executing: glib/performance.test 2735s refcount: Million refs+unref per second: 49.51 2739s # Executing: glib/performance.test 2744s # Executing: glib/performance.test 2745s refcount-1: Million refs+unref per second: 139.34 2749s # Executing: glib/performance.test 2751s refcount-toggle: Million refs+unref per second: 85.42 2751s ok - glib/performance.test 2751s # Running test: glib/throws.test 2752s TAP version 14 2752s # random seed: R02Secea338f760db08b9f402e81bf1c6263 2752s 1..3 2752s # Start of throws tests 2752s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_1DQMK3/throws/invoke-gerror/.dirs/home 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_1DQMK3/throws/invoke-gerror/.dirs/cache 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_1DQMK3/throws/invoke-gerror/.dirs/system-config1:/tmp/test_throws_1DQMK3/throws/invoke-gerror/.dirs/system-config2 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_1DQMK3/throws/invoke-gerror/.dirs/config 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_1DQMK3/throws/invoke-gerror/.dirs/system-data1:/tmp/test_throws_1DQMK3/throws/invoke-gerror/.dirs/system-data2 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_1DQMK3/throws/invoke-gerror/.dirs/data 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_1DQMK3/throws/invoke-gerror/.dirs/state 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_1DQMK3/throws/invoke-gerror/.dirs/runtime 2752s ok - glib/throws.test 2752s # Running test: glib/memory-monitor.test 2752s ok - glib/memory-monitor.test 2752s # Running test: glib/thread.test 2752s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2752s # /throws/invoke-gerror summary: Test invoking a function that throws a GError 2752s ok 1 /throws/invoke-gerror 2752s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_1DQMK3/throws/vfunc-can-throw-gerror/.dirs/home 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_1DQMK3/throws/vfunc-can-throw-gerror/.dirs/cache 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_1DQMK3/throws/vfunc-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_1DQMK3/throws/vfunc-can-throw-gerror/.dirs/system-config2 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_1DQMK3/throws/vfunc-can-throw-gerror/.dirs/config 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_1DQMK3/throws/vfunc-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_1DQMK3/throws/vfunc-can-throw-gerror/.dirs/system-data2 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_1DQMK3/throws/vfunc-can-throw-gerror/.dirs/data 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_1DQMK3/throws/vfunc-can-throw-gerror/.dirs/state 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_1DQMK3/throws/vfunc-can-throw-gerror/.dirs/runtime 2752s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2752s # /throws/vfunc-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a vfunc 2752s ok 2 /throws/vfunc-can-throw-gerror 2752s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_1DQMK3/throws/callback-can-throw-gerror/.dirs/home 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_1DQMK3/throws/callback-can-throw-gerror/.dirs/cache 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_1DQMK3/throws/callback-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_1DQMK3/throws/callback-can-throw-gerror/.dirs/system-config2 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_1DQMK3/throws/callback-can-throw-gerror/.dirs/config 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_1DQMK3/throws/callback-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_1DQMK3/throws/callback-can-throw-gerror/.dirs/system-data2 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_1DQMK3/throws/callback-can-throw-gerror/.dirs/data 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_1DQMK3/throws/callback-can-throw-gerror/.dirs/state 2752s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_1DQMK3/throws/callback-can-throw-gerror/.dirs/runtime 2752s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2752s # /throws/callback-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a callback 2752s ok 3 /throws/callback-can-throw-gerror 2752s # End of throws tests 2752s TAP version 14 2752s # random seed: R02Se16342a7ef97fc88b784025701d23dc5 2752s 1..1 2752s # Start of memory-monitor tests 2752s # GLib-GIO-DEBUG: Failed to initialize portal (GMemoryMonitorPortal) for gio-memory-monitor: Not using portals 2752s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GMemoryMonitorDBus) for ‘gio-memory-monitor’ 2752s ok 1 /memory-monitor/default 2752s # End of memory-monitor tests 2752s TAP version 14 2752s # random seed: R02S7d41d9caeb6667c4b3f259ac7d424856 2752s 1..7 2752s # Start of thread tests 2752s ok 1 /thread/thread1 2752s ok 2 /thread/thread2 2752s ok - glib/thread.test 2752s # Running test: glib/regex.test 2752s ok 3 /thread/thread3 2752s ok 4 /thread/thread4 2752s ok 5 /thread/thread5 2752s ok 6 /thread/thread6 2752s ok 7 /thread/thread7 2752s # End of thread tests 2752s TAP version 14 2752s # random seed: R02S6a01d1123d8cb20265cef5323835e2c0 2752s 1..849 2752s # Start of regex tests 2752s ok 1 /regex/properties 2752s ok 2 /regex/class 2752s ok 3 /regex/lookahead 2752s ok 4 /regex/lookbehind 2752s ok 5 /regex/subpattern 2752s ok 6 /regex/condition 2752s ok 7 /regex/recursion 2752s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640489 2752s ok 8 /regex/multiline 2752s ok 9 /regex/explicit-crlf 2752s ok 10 /regex/max-lookbehind 2752s ok 11 /regex/compile-errors 2752s ok 12 /regex/jit-unsupported-matching 2752s # /regex/unmatched-named-subpattern summary: Test that unmatched subpatterns can still be queried 2752s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2881 2752s ok 13 /regex/unmatched-named-subpattern 2752s # /regex/compiled-regex-after-jit-failure summary: Test that failed OPTIMIZE regex doesn't cause issues on subsequent matches 2752s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2824 2752s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 2752s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 2752s ok 14 /regex/compiled-regex-after-jit-failure 2752s # slow test /regex/compiled-regex-after-jit-failure executed in 0.66 secs 2752s # Start of new tests 2752s ok 15 /regex/new/1 2752s ok 16 /regex/new/2 2752s ok 17 /regex/new/3 2752s ok 18 /regex/new/4 2752s ok 19 /regex/new/5 2752s ok 20 /regex/new/6 2752s ok 21 /regex/new/7 2752s ok 22 /regex/new/8 2752s ok 23 /regex/new/9 2752s ok 24 /regex/new/10 2752s ok 25 /regex/new/11 2752s ok 26 /regex/new/12 2752s ok 27 /regex/new/13 2752s ok 28 /regex/new/14 2752s ok 29 /regex/new/15 2752s ok 30 /regex/new/16 2752s ok 31 /regex/new/17 2752s ok 32 /regex/new/18 2752s ok 33 /regex/new/19 2752s ok 34 /regex/new/71 2752s ok 35 /regex/new/81 2752s ok 36 /regex/new/83 2752s # End of new tests 2752s # Start of new-check-flags tests 2752s ok 37 /regex/new-check-flags/20 2752s ok 38 /regex/new-check-flags/21 2752s ok 39 /regex/new-check-flags/22 2752s ok 40 /regex/new-check-flags/23 2752s ok 41 /regex/new-check-flags/24 2752s ok 42 /regex/new-check-flags/25 2752s ok 43 /regex/new-check-flags/26 2752s ok 44 /regex/new-check-flags/27 2752s ok 45 /regex/new-check-flags/28 2752s ok 46 /regex/new-check-flags/29 2752s ok 47 /regex/new-check-flags/30 2752s ok 48 /regex/new-check-flags/31 2752s ok 49 /regex/new-check-flags/32 2752s ok 50 /regex/new-check-flags/33 2752s ok 51 /regex/new-check-flags/34 2752s ok 52 /regex/new-check-flags/35 2752s ok 53 /regex/new-check-flags/36 2752s # End of new-check-flags tests 2752s # Start of new-fail tests 2752s # Compiling pattern /(/ failed with error: Error while compiling regular expression ‘(’ at char 1: missing terminating ) 2752s ok 54 /regex/new-fail/37 2752s # Compiling pattern /)/ failed with error: Error while compiling regular expression ‘)’ at char 0: missing terminating ) 2752s ok 55 /regex/new-fail/38 2752s # Compiling pattern /[/ failed with error: Error while compiling regular expression ‘[’ at char 1: missing terminating ] for character class 2752s ok 56 /regex/new-fail/39 2752s # Compiling pattern /*/ failed with error: Error while compiling regular expression ‘*’ at char 0: nothing to repeat 2752s ok 57 /regex/new-fail/40 2752s # Compiling pattern /?/ failed with error: Error while compiling regular expression ‘?’ at char 0: nothing to repeat 2752s ok 58 /regex/new-fail/41 2752s # Compiling pattern /(?Px)|(?Py)/ failed with error: Error while compiling regular expression ‘(?Px)|(?Py)’ at char 15: two named subpatterns have the same name 2752s ok 59 /regex/new-fail/42 2752s # Compiling pattern /a\/ failed with error: Error while compiling regular expression ‘a\’ at char 2: \ at end of pattern 2752s ok 60 /regex/new-fail/43 2752s # Compiling pattern /a\c/ failed with error: Error while compiling regular expression ‘a\c’ at char 3: \c at end of pattern 2752s ok 61 /regex/new-fail/44 2752s # Compiling pattern /a\l/ failed with error: Error while compiling regular expression ‘a\l’ at char 3: unrecognized character following \ 2752s ok 62 /regex/new-fail/45 2752s # Compiling pattern /a{4,2}/ failed with error: Error while compiling regular expression ‘a{4,2}’ at char 5: numbers out of order in {} quantifier 2752s ok 63 /regex/new-fail/46 2752s # Compiling pattern /a{999999,}/ failed with error: Error while compiling regular expression ‘a{999999,}’ at char 8: number too big in {} quantifier 2752s ok 64 /regex/new-fail/47 2752s # Compiling pattern /[a-z/ failed with error: Error while compiling regular expression ‘[a-z’ at char 4: missing terminating ] for character class 2752s ok 65 /regex/new-fail/48 2752s # Compiling pattern /[\B]/ failed with error: Error while compiling regular expression ‘[\B]’ at char 2: invalid escape sequence in character class 2752s ok 66 /regex/new-fail/49 2752s # Compiling pattern /[z-a]/ failed with error: Error while compiling regular expression ‘[z-a]’ at char 3: range out of order in character class 2752s ok 67 /regex/new-fail/50 2752s # Compiling pattern /^[[:alnum:]-_.]+$/ failed with error: Error while compiling regular expression ‘^[[:alnum:]-_.]+$’ at char 12: invalid range in character class 2752s ok 68 /regex/new-fail/51 2752s # Compiling pattern /{2,4}/ failed with error: Error while compiling regular expression ‘{2,4}’ at char 4: nothing to repeat 2752s ok 69 /regex/new-fail/52 2752s # Compiling pattern /a(?u)/ failed with error: Error while compiling regular expression ‘a(?u)’ at char 3: unrecognized character after (? or (?- 2752s ok 70 /regex/new-fail/53 2752s # Compiling pattern /a(?<$foo)bar/ failed with error: Error while compiling regular expression ‘a(?<$foo)bar’ at char 4: missing subpattern name after (?& 2752s ok 71 /regex/new-fail/54 2752s # Compiling pattern /a[:alpha:]b/ failed with error: Error while compiling regular expression ‘a[:alpha:]b’ at char 1: POSIX named classes are supported only within a class 2752s ok 72 /regex/new-fail/55 2752s # Compiling pattern /a(b/ failed with error: Error while compiling regular expression ‘a(b’ at char 3: missing terminating ) 2752s ok 73 /regex/new-fail/56 2752s # Compiling pattern /a)b/ failed with error: Error while compiling regular expression ‘a)b’ at char 1: missing terminating ) 2752s ok 74 /regex/new-fail/57 2752s # Compiling pattern /a(?R/ failed with error: Error while compiling regular expression ‘a(?R’ at char 4: missing terminating ) 2752s ok 75 /regex/new-fail/58 2752s # Compiling pattern /a(?-54/ failed with error: Error while compiling regular expression ‘a(?-54’ at char 6: reference to non-existent subpattern 2752s ok 76 /regex/new-fail/59 2752s # Compiling pattern /(ab\2)/ failed with error: Error while compiling regular expression ‘(ab\2)’ at char 4: reference to non-existent subpattern 2752s ok 77 /regex/new-fail/60 2752s # Compiling pattern /a(?#abc/ failed with error: Error while compiling regular expression ‘a(?#abc’ at char 7: missing ) after comment 2752s ok 78 /regex/new-fail/61 2752s # Compiling pattern /(?<=a+)b/ failed with error: Error while compiling regular expression ‘(?<=a+)b’ at char 0: lookbehind assertion is not fixed length 2752s ok 79 /regex/new-fail/62 2752s # Compiling pattern /(?(1?)a|b)/ failed with error: Error while compiling regular expression ‘(?(1?)a|b)’ at char 4: malformed number or name after (?( 2752s ok 80 /regex/new-fail/63 2752s # Compiling pattern /(a)(?(1)a|b|c)/ failed with error: Error while compiling regular expression ‘(a)(?(1)a|b|c)’ at char 3: conditional group contains more than two branches 2752s ok 81 /regex/new-fail/64 2752s # Compiling pattern /(?(?i))/ failed with error: Error while compiling regular expression ‘(?(?i))’ at char 2: assertion expected after (?( 2752s ok 82 /regex/new-fail/65 2752s # Compiling pattern /a[[:fubar:]]b/ failed with error: Error while compiling regular expression ‘a[[:fubar:]]b’ at char 11: unknown POSIX class name 2752s ok 83 /regex/new-fail/66 2752s # Compiling pattern /[[.ch.]]/ failed with error: Error while compiling regular expression ‘[[.ch.]]’ at char 7: POSIX collating elements are not supported 2752s ok 84 /regex/new-fail/67 2752s # Compiling pattern /\x{110000}/ failed with error: Error while compiling regular expression ‘\x{110000}’ at char 9: character value in \x{...} sequence is too large 2752s ok 85 /regex/new-fail/68 2752s # Compiling pattern /^(?(0)f|b)oo/ failed with error: Error while compiling regular expression ‘^(?(0)f|b)oo’ at char 5: reference to non-existent subpattern 2752s ok 86 /regex/new-fail/69 2752s # Compiling pattern /(?<=\C)X/ failed with error: Error while compiling regular expression ‘(?<=\C)X’ at char 0: \C not allowed in lookbehind assertion 2752s ok 87 /regex/new-fail/70 2752s # Compiling pattern /(?(?foo)\gfoo)\geks)(?Peccs)/ failed with error: Error while compiling regular expression ‘(?Peks)(?Peccs)’ at char 16: two named subpatterns have the same name 2752s ok 90 /regex/new-fail/74 2752s # Compiling pattern /\666/ failed with error: Error while compiling regular expression ‘\666’ at char 4: octal value is greater than \377 2752s ok 91 /regex/new-fail/75 2752s # Compiling pattern /^(?(DEFINE) abc | xyz ) / failed with error: Error while compiling regular expression ‘^(?(DEFINE) abc | xyz ) ’ at char 4: DEFINE group contains more than one branch 2752s ok 92 /regex/new-fail/76 2752s # Compiling pattern /a/ failed with error: Invalid newline flags 2752s ok 93 /regex/new-fail/77 2752s # Compiling pattern /^(a)\g"3/ failed with error: Error while compiling regular expression ‘^(a)\g"3’ at char 6: \g is not followed by a braced, angle-bracketed, or quoted name or number, or by a plain number 2752s ok 94 /regex/new-fail/78 2752s # Compiling pattern /^(a)\g{3/ failed with error: Error while compiling regular expression ‘^(a)\g{3’ at char 6: \g is not followed by a braced, angle-bracketed, or quoted name or number, or by a plain number 2752s ok 95 /regex/new-fail/79 2752s # Compiling pattern /^(a)\g{0}/ failed with error: Error while compiling regular expression ‘^(a)\g{0}’ at char 9: reference to non-existent subpattern 2752s ok 96 /regex/new-fail/80 2752s # Compiling pattern /a(*FOOBAR)b/ failed with error: Error while compiling regular expression ‘a(*FOOBAR)b’ at char 9: (*VERB) not recognized 2752s ok 97 /regex/new-fail/82 2752s # Compiling pattern /(?)(?&)/ failed with error: Error while compiling regular expression ‘(?)(?&)’ at char 9: missing subpattern name after (?& 2752s ok 98 /regex/new-fail/84 2752s # Compiling pattern /(?+-a)/ failed with error: Error while compiling regular expression ‘(?+-a)’ at char 2: a numbered reference must not be zero 2752s ok 99 /regex/new-fail/85 2752s # Compiling pattern /(?|(?A)|(?B))/ failed with error: Error while compiling regular expression ‘(?|(?A)|(?B))’ at char 16: different names for subpatterns of the same number are not allowed 2752s ok 100 /regex/new-fail/86 2752s # Compiling pattern /a(*MARK)b/ failed with error: Error while compiling regular expression ‘a(*MARK)b’ at char 7: (*MARK) must have an argument 2752s ok 101 /regex/new-fail/87 2752s # Compiling pattern /^\c€/ failed with error: Error while compiling regular expression ‘^\c€’ at char 3: \c must be followed by an ASCII character 2752s ok 102 /regex/new-fail/88 2752s # Compiling pattern /\k/ failed with error: Error while compiling regular expression ‘\k’ at char 2: \k is not followed by a braced, angle-bracketed, or quoted name 2752s ok 103 /regex/new-fail/89 2752s # Compiling pattern /a[\NB]c/ failed with error: Error while compiling regular expression ‘a[\NB]c’ at char 4: \N is not supported in a class 2752s ok 104 /regex/new-fail/90 2752s # Compiling pattern /(*:0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEFG)XX/ failed with error: Error while compiling regular expression ‘(*:0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEFG)XX’ at char 260: name is too long in (*MARK), (*PRUNE), (*SKIP), or (*THEN) 2752s ok 105 /regex/new-fail/91 2752s # Compiling pattern /(?i-x)((?:(?i-x)[^\x00\t\n\f\r "'/<=>\x{007F}-\x{009F}\x{FDD0}-\x{FDEF}\x{FFFE}\x{FFFF}\x{1FFFE}\x{1FFFF}\x{2FFFE}\x{2FFFF}\x{3FFFE}\x{3FFFF}\x{4FFFE}\x{4FFFF}\x{5FFFE}\x{5FFFF}\x{6FFFE}\x{6FFFF}\x{7FFFE}\x{7FFFF}\x{8FFFE}\x{8FFFF}\x{9FFFE}\x{9FFFF}\x{AFFFE}\x{AFFFF}\x{BFFFE}\x{BFFFF}\x{CFFFE}\x{CFFFF}\x{DFFFE}\x{DFFFF}\x{EFFFE}\x{EFFFF}\x{FFFFE}\x{FFFFF}\x{10FFFE}\x{10FFFF}]+)\s*=\s*)(\")/ failed with error: Error while compiling regular expression ‘(?i-x)((?:(?i-x)[^\x00\t\n\f\r "'/<=>\x{007F}-\x{009F}\x{FDD0}-\x{FDEF}\x{FFFE}\x{FFFF}\x{1FFFE}\x{1FFFF}\x{2FFFE}\x{2FFFF}\x{3FFFE}\x{3FFFF}\x{4FFFE}\x{4FFFF}\x{5FFFE}\x{5FFFF}\x{6FFFE}\x{6FFFF}\x{7FFFE}\x{7FFFF}\x{8FFFE}\x{8FFFF}\x{9FFFE}\x{9FFFF}\x{AFFFE}\x{AFFFF}\x{BFFFE}\x{BFFFF}\x{CFFFE}\x{CFFFF}\x{DFFFE}\x{DFFFF}\x{EFFFE}\x{EFFFF}\x{FFFFE}\x{FFFFF}\x{10FFFE}\x{10FFFF}]+)\s*=\s*)(\")’ at char 61: character value in \x{...} sequence is too large 2752s ok 106 /regex/new-fail/92 2752s # End of new-fail tests 2752s # Start of match-simple tests 2752s ok 107 /regex/match-simple/93 2752s ok 108 /regex/match-simple/94 2752s ok 109 /regex/match-simple/95 2752s ok 110 /regex/match-simple/96 2752s ok 111 /regex/match-simple/97 2752s ok 112 /regex/match-simple/98 2752s ok 113 /regex/match-simple/99 2752s ok 114 /regex/match-simple/100 2752s ok 115 /regex/match-simple/101 2752s ok 116 /regex/match-simple/102 2752s ok 117 /regex/match-simple/103 2752s ok 118 /regex/match-simple/104 2752s ok 119 /regex/match-simple/105 2752s ok 120 /regex/match-simple/106 2752s ok 121 /regex/match-simple/107 2752s ok 122 /regex/match-simple/108 2752s ok 123 /regex/match-simple/109 2752s ok 124 /regex/match-simple/110 2752s ok 125 /regex/match-simple/111 2752s ok 126 /regex/match-simple/112 2752s ok 127 /regex/match-simple/113 2752s ok 128 /regex/match-simple/114 2752s ok 129 /regex/match-simple/115 2752s ok 130 /regex/match-simple/116 2752s ok 131 /regex/match-simple/117 2752s ok 132 /regex/match-simple/118 2752s ok 133 /regex/match-simple/119 2752s ok 134 /regex/match-simple/120 2752s ok 135 /regex/match-simple/121 2752s ok 136 /regex/match-simple/122 2752s ok 137 /regex/match-simple/123 2752s ok 138 /regex/match-simple/124 2752s ok 139 /regex/match-simple/125 2752s ok 140 /regex/match-simple/126 2752s ok 141 /regex/match-simple/127 2752s ok 142 /regex/match-simple/128 2752s ok 143 /regex/match-simple/129 2752s ok 144 /regex/match-simple/130 2752s ok 145 /regex/match-simple/131 2752s ok 146 /regex/match-simple/132 2752s ok 147 /regex/match-simple/133 2752s ok 148 /regex/match-simple/134 2752s ok 149 /regex/match-simple/135 2752s ok 150 /regex/match-simple/136 2752s ok 151 /regex/match-simple/137 2752s ok 152 /regex/match-simple/138 2752s ok 153 /regex/match-simple/139 2752s ok 154 /regex/match-simple/140 2752s ok 155 /regex/match-simple/141 2752s ok 156 /regex/match-simple/142 2752s ok 157 /regex/match-simple/143 2752s ok 158 /regex/match-simple/144 2752s ok 159 /regex/match-simple/145 2752s ok 160 /regex/match-simple/146 2752s ok 161 /regex/match-simple/147 2752s ok 162 /regex/match-simple/148 2752s ok 163 /regex/match-simple/149 2752s ok 164 /regex/match-simple/150 2752s ok 165 /regex/match-simple/151 2752s ok 166 /regex/match-simple/152 2752s ok 167 /regex/match-simple/153 2752s ok 168 /regex/match-simple/154 2752s ok 169 /regex/match-simple/155 2752s ok 170 /regex/match-simple/156 2752s ok 171 /regex/match-simple/157 2752s ok 172 /regex/match-simple/158 2752s ok 173 /regex/match-simple/159 2752s ok 174 /regex/match-simple/160 2752s ok 175 /regex/match-simple/161 2752s ok 176 /regex/match-simple/162 2752s ok 177 /regex/match-simple/163 2752s ok 178 /regex/match-simple/164 2753s ok 179 /regex/match-simple/165 2753s # End of match-simple tests 2753s # Start of match-simple-optimized tests 2753s ok 180 /regex/match-simple-optimized/93 2753s ok 181 /regex/match-simple-optimized/94 2753s ok 182 /regex/match-simple-optimized/95 2753s ok 183 /regex/match-simple-optimized/96 2753s ok 184 /regex/match-simple-optimized/97 2753s ok 185 /regex/match-simple-optimized/98 2753s ok 186 /regex/match-simple-optimized/99 2753s ok 187 /regex/match-simple-optimized/100 2753s ok 188 /regex/match-simple-optimized/101 2753s ok 189 /regex/match-simple-optimized/102 2753s ok 190 /regex/match-simple-optimized/103 2753s ok 191 /regex/match-simple-optimized/104 2753s ok 192 /regex/match-simple-optimized/105 2753s ok 193 /regex/match-simple-optimized/106 2753s ok 194 /regex/match-simple-optimized/107 2753s ok 195 /regex/match-simple-optimized/108 2753s ok 196 /regex/match-simple-optimized/109 2753s ok 197 /regex/match-simple-optimized/110 2753s ok 198 /regex/match-simple-optimized/111 2753s ok 199 /regex/match-simple-optimized/112 2753s ok 200 /regex/match-simple-optimized/113 2753s ok 201 /regex/match-simple-optimized/114 2753s ok 202 /regex/match-simple-optimized/115 2753s ok 203 /regex/match-simple-optimized/116 2753s ok 204 /regex/match-simple-optimized/117 2753s ok 205 /regex/match-simple-optimized/118 2753s ok 206 /regex/match-simple-optimized/119 2753s ok 207 /regex/match-simple-optimized/120 2753s ok 208 /regex/match-simple-optimized/121 2753s ok 209 /regex/match-simple-optimized/122 2753s ok 210 /regex/match-simple-optimized/123 2753s ok 211 /regex/match-simple-optimized/124 2753s ok 212 /regex/match-simple-optimized/125 2753s ok 213 /regex/match-simple-optimized/126 2753s ok 214 /regex/match-simple-optimized/127 2753s ok 215 /regex/match-simple-optimized/128 2753s ok 216 /regex/match-simple-optimized/129 2753s ok 217 /regex/match-simple-optimized/130 2753s ok 218 /regex/match-simple-optimized/131 2753s ok 219 /regex/match-simple-optimized/132 2753s ok 220 /regex/match-simple-optimized/133 2753s ok 221 /regex/match-simple-optimized/134 2753s ok 222 /regex/match-simple-optimized/135 2753s ok 223 /regex/match-simple-optimized/136 2753s ok 224 /regex/match-simple-optimized/137 2753s ok 225 /regex/match-simple-optimized/138 2753s ok 226 /regex/match-simple-optimized/139 2753s ok 227 /regex/match-simple-optimized/140 2753s ok 228 /regex/match-simple-optimized/141 2753s ok 229 /regex/match-simple-optimized/142 2753s ok 230 /regex/match-simple-optimized/143 2753s ok 231 /regex/match-simple-optimized/144 2753s ok 232 /regex/match-simple-optimized/145 2753s ok 233 /regex/match-simple-optimized/146 2753s ok 234 /regex/match-simple-optimized/147 2753s ok 235 /regex/match-simple-optimized/148 2753s ok 236 /regex/match-simple-optimized/149 2753s ok 237 /regex/match-simple-optimized/150 2753s ok 238 /regex/match-simple-optimized/151 2753s ok 239 /regex/match-simple-optimized/152 2753s ok 240 /regex/match-simple-optimized/153 2753s ok 241 /regex/match-simple-optimized/154 2753s ok 242 /regex/match-simple-optimized/155 2753s ok 243 /regex/match-simple-optimized/156 2753s ok 244 /regex/match-simple-optimized/157 2753s ok 245 /regex/match-simple-optimized/158 2753s ok 246 /regex/match-simple-optimized/159 2753s ok 247 /regex/match-simple-optimized/160 2753s ok 248 /regex/match-simple-optimized/161 2753s ok 249 /regex/match-simple-optimized/162 2753s ok 250 /regex/match-simple-optimized/163 2753s ok 251 /regex/match-simple-optimized/164 2753s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 2753s ok 252 /regex/match-simple-optimized/165 2753s # End of match-simple-optimized tests 2753s # Start of match tests 2753s ok 253 /regex/match/166 2753s ok 254 /regex/match/167 2753s ok 255 /regex/match/168 2753s ok 256 /regex/match/169 2753s ok 257 /regex/match/170 2753s ok 258 /regex/match/171 2753s ok 259 /regex/match/172 2753s ok 260 /regex/match/173 2753s ok 261 /regex/match/174 2753s ok - glib/regex.test 2753s # Running test: glib/reference.test 2753s ok 262 /regex/match/175 2753s ok 263 /regex/match/176 2753s ok 264 /regex/match/177 2753s ok 265 /regex/match/178 2753s ok 266 /regex/match/179 2753s ok 267 /regex/match/180 2753s ok 268 /regex/match/181 2753s ok 269 /regex/match/182 2753s ok 270 /regex/match/183 2753s ok 271 /regex/match/184 2753s ok 272 /regex/match/185 2753s ok 273 /regex/match/186 2753s ok 274 /regex/match/187 2753s ok 275 /regex/match/188 2753s ok 276 /regex/match/189 2753s ok 277 /regex/match/190 2753s ok 278 /regex/match/191 2753s ok 279 /regex/match/192 2753s ok 280 /regex/match/193 2753s ok 281 /regex/match/194 2753s ok 282 /regex/match/195 2753s ok 283 /regex/match/196 2753s ok 284 /regex/match/197 2753s ok 285 /regex/match/198 2753s ok 286 /regex/match/199 2753s ok 287 /regex/match/200 2753s ok 288 /regex/match/201 2753s ok 289 /regex/match/202 2753s ok 290 /regex/match/203 2753s ok 291 /regex/match/204 2753s ok 292 /regex/match/205 2753s ok 293 /regex/match/206 2753s ok 294 /regex/match/207 2753s ok 295 /regex/match/208 2753s ok 296 /regex/match/209 2753s ok 297 /regex/match/210 2753s ok 298 /regex/match/211 2753s ok 299 /regex/match/212 2753s ok 300 /regex/match/213 2753s ok 301 /regex/match/214 2753s ok 302 /regex/match/215 2753s ok 303 /regex/match/216 2753s ok 304 /regex/match/217 2753s ok 305 /regex/match/218 2753s ok 306 /regex/match/219 2753s ok 307 /regex/match/220 2753s ok 308 /regex/match/221 2753s ok 309 /regex/match/222 2753s ok 310 /regex/match/223 2753s ok 311 /regex/match/224 2753s ok 312 /regex/match/225 2753s ok 313 /regex/match/226 2753s ok 314 /regex/match/227 2753s ok 315 /regex/match/228 2753s ok 316 /regex/match/229 2753s ok 317 /regex/match/230 2753s ok 318 /regex/match/231 2753s ok 319 /regex/match/232 2753s ok 320 /regex/match/233 2753s ok 321 /regex/match/234 2753s ok 322 /regex/match/235 2753s ok 323 /regex/match/236 2753s ok 324 /regex/match/237 2753s ok 325 /regex/match/238 2753s ok 326 /regex/match/239 2753s ok 327 /regex/match/240 2753s ok 328 /regex/match/241 2753s ok 329 /regex/match/242 2753s ok 330 /regex/match/243 2753s ok 331 /regex/match/244 2753s ok 332 /regex/match/245 2753s ok 333 /regex/match/246 2753s ok 334 /regex/match/247 2753s ok 335 /regex/match/partial282 2753s ok 336 /regex/match/partial283 2753s ok 337 /regex/match/partial284 2753s ok 338 /regex/match/partial285 2753s ok 339 /regex/match/partial286 2753s ok 340 /regex/match/partial287 2753s ok 341 /regex/match/partial288 2753s ok 342 /regex/match/partial289 2753s ok 343 /regex/match/partial290 2753s ok 344 /regex/match/partial291 2753s ok 345 /regex/match/partial292 2753s ok 346 /regex/match/partial293 2753s ok 347 /regex/match/partial294 2753s ok 348 /regex/match/partial295 2753s ok 349 /regex/match/partial296 2753s ok 350 /regex/match/partial297 2753s ok 351 /regex/match/partial298 2753s ok 352 /regex/match/partial299 2753s ok 353 /regex/match/partial300 2753s ok 354 /regex/match/partial301 2753s ok 355 /regex/match/partial302 2753s ok 356 /regex/match/partial303 2753s # Start of next0 tests 2753s ok 357 /regex/match/next0/248 2753s ok 358 /regex/match/next0/249 2753s ok 359 /regex/match/next0/250 2753s ok 360 /regex/match/next0/251 2753s # End of next0 tests 2753s # Start of next1 tests 2753s ok 361 /regex/match/next1/252 2753s ok 362 /regex/match/next1/253 2753s ok 363 /regex/match/next1/254 2753s ok 364 /regex/match/next1/255 2753s ok 365 /regex/match/next1/256 2753s # End of next1 tests 2753s # Start of next2 tests 2753s ok 366 /regex/match/next2/257 2753s ok 367 /regex/match/next2/258 2753s ok 368 /regex/match/next2/259 2753s ok 369 /regex/match/next2/260 2753s ok 370 /regex/match/next2/261 2753s ok 371 /regex/match/next2/262 2753s ok 372 /regex/match/next2/263 2753s ok 373 /regex/match/next2/264 2753s # End of next2 tests 2753s # Start of next3 tests 2753s ok 374 /regex/match/next3/265 2753s ok 375 /regex/match/next3/266 2753s ok 376 /regex/match/next3/267 2753s ok 377 /regex/match/next3/268 2753s ok 378 /regex/match/next3/269 2753s ok 379 /regex/match/next3/270 2753s # End of next3 tests 2753s # Start of next4 tests 2753s ok 380 /regex/match/next4/271 2753s # End of next4 tests 2753s # Start of count tests 2753s ok 381 /regex/match/count/272 2753s ok 382 /regex/match/count/273 2753s ok 383 /regex/match/count/274 2753s ok 384 /regex/match/count/275 2753s ok 385 /regex/match/count/276 2753s ok 386 /regex/match/count/277 2753s ok 387 /regex/match/count/278 2753s ok 388 /regex/match/count/279 2753s ok 389 /regex/match/count/280 2753s ok 390 /regex/match/count/281 2753s # End of count tests 2753s # Start of count-optimized tests 2753s ok 391 /regex/match/count-optimized/272 2753s ok 392 /regex/match/count-optimized/273 2753s ok 393 /regex/match/count-optimized/274 2753s ok 394 /regex/match/count-optimized/275 2753s ok 395 /regex/match/count-optimized/276 2753s ok 396 /regex/match/count-optimized/277 2753s ok 397 /regex/match/count-optimized/278 2753s ok 398 /regex/match/count-optimized/279 2753s ok 399 /regex/match/count-optimized/280 2753s ok 400 /regex/match/count-optimized/281 2753s # End of count-optimized tests 2753s # Start of partial-optimized tests 2753s ok 401 /regex/match/partial-optimized/282 2753s ok 402 /regex/match/partial-optimized/283 2753s ok 403 /regex/match/partial-optimized/284 2753s ok 404 /regex/match/partial-optimized/285 2753s ok 405 /regex/match/partial-optimized/286 2753s ok 406 /regex/match/partial-optimized/287 2753s ok 407 /regex/match/partial-optimized/288 2753s ok 408 /regex/match/partial-optimized/289 2753s ok 409 /regex/match/partial-optimized/290 2753s ok 410 /regex/match/partial-optimized/291 2753s ok 411 /regex/match/partial-optimized/292 2753s ok 412 /regex/match/partial-optimized/293 2753s ok 413 /regex/match/partial-optimized/294 2753s ok 414 /regex/match/partial-optimized/295 2753s ok 415 /regex/match/partial-optimized/296 2753s ok 416 /regex/match/partial-optimized/297 2753s ok 417 /regex/match/partial-optimized/298 2753s ok 418 /regex/match/partial-optimized/299 2753s ok 419 /regex/match/partial-optimized/300 2753s ok 420 /regex/match/partial-optimized/301 2753s ok 421 /regex/match/partial-optimized/302 2753s ok 422 /regex/match/partial-optimized/303 2753s # End of partial-optimized tests 2753s # Start of subpattern tests 2753s ok 423 /regex/match/subpattern/304 2753s ok 424 /regex/match/subpattern/305 2753s ok 425 /regex/match/subpattern/306 2753s ok 426 /regex/match/subpattern/307 2753s ok 427 /regex/match/subpattern/308 2753s ok 428 /regex/match/subpattern/309 2753s ok 429 /regex/match/subpattern/310 2753s ok 430 /regex/match/subpattern/311 2753s ok 431 /regex/match/subpattern/312 2753s ok 432 /regex/match/subpattern/313 2753s ok 433 /regex/match/subpattern/314 2753s ok 434 /regex/match/subpattern/315 2753s ok 435 /regex/match/subpattern/316 2753s # Start of named tests 2753s # Start of dupnames tests 2753s ok 436 /regex/match/subpattern/named/dupnames/326 2753s ok 437 /regex/match/subpattern/named/dupnames/327 2753s ok 438 /regex/match/subpattern/named/dupnames/328 2753s ok 439 /regex/match/subpattern/named/dupnames/329 2753s ok 440 /regex/match/subpattern/named/dupnames/330 2753s # End of dupnames tests 2753s # End of named tests 2753s # End of subpattern tests 2753s # Start of subpattern-optimized tests 2753s ok 441 /regex/match/subpattern-optimized/304 2753s ok 442 /regex/match/subpattern-optimized/305 2753s ok 443 /regex/match/subpattern-optimized/306 2753s ok 444 /regex/match/subpattern-optimized/307 2753s ok 445 /regex/match/subpattern-optimized/308 2753s ok 446 /regex/match/subpattern-optimized/309 2753s ok 447 /regex/match/subpattern-optimized/310 2753s ok 448 /regex/match/subpattern-optimized/311 2753s ok 449 /regex/match/subpattern-optimized/312 2753s ok 450 /regex/match/subpattern-optimized/313 2753s ok 451 /regex/match/subpattern-optimized/314 2753s ok 452 /regex/match/subpattern-optimized/315 2753s ok 453 /regex/match/subpattern-optimized/316 2753s # End of subpattern-optimized tests 2753s # Start of named tests 2753s # Start of subpattern tests 2753s ok 454 /regex/match/named/subpattern/317 2753s ok 455 /regex/match/named/subpattern/318 2753s ok 456 /regex/match/named/subpattern/319 2753s ok 457 /regex/match/named/subpattern/320 2753s ok 458 /regex/match/named/subpattern/321 2753s ok 459 /regex/match/named/subpattern/322 2753s ok 460 /regex/match/named/subpattern/323 2753s ok 461 /regex/match/named/subpattern/324 2753s ok 462 /regex/match/named/subpattern/325 2753s ok 463 /regex/match/named/subpattern/331 2753s ok 464 /regex/match/named/subpattern/332 2753s ok 465 /regex/match/named/subpattern/333 2753s ok 466 /regex/match/named/subpattern/334 2753s ok 467 /regex/match/named/subpattern/335 2753s # End of subpattern tests 2753s # End of named tests 2753s # End of match tests 2753s # Start of match-optimized tests 2753s ok 468 /regex/match-optimized/166 2753s ok 469 /regex/match-optimized/167 2753s ok 470 /regex/match-optimized/168 2753s ok 471 /regex/match-optimized/169 2753s ok 472 /regex/match-optimized/170 2753s ok 473 /regex/match-optimized/171 2753s ok 474 /regex/match-optimized/172 2753s ok 475 /regex/match-optimized/173 2753s ok 476 /regex/match-optimized/174 2753s ok 477 /regex/match-optimized/175 2753s ok 478 /regex/match-optimized/176 2753s ok 479 /regex/match-optimized/177 2753s ok 480 /regex/match-optimized/178 2753s ok 481 /regex/match-optimized/179 2753s ok 482 /regex/match-optimized/180 2753s ok 483 /regex/match-optimized/181 2753s ok 484 /regex/match-optimized/182 2753s ok 485 /regex/match-optimized/183 2753s ok 486 /regex/match-optimized/184 2753s ok 487 /regex/match-optimized/185 2753s ok 488 /regex/match-optimized/186 2753s ok 489 /regex/match-optimized/187 2753s ok 490 /regex/match-optimized/188 2753s ok 491 /regex/match-optimized/189 2753s ok 492 /regex/match-optimized/190 2753s ok 493 /regex/match-optimized/191 2753s ok 494 /regex/match-optimized/192 2753s ok 495 /regex/match-optimized/193 2753s ok 496 /regex/match-optimized/194 2753s ok 497 /regex/match-optimized/195 2753s ok 498 /regex/match-optimized/196 2753s ok 499 /regex/match-optimized/197 2753s ok 500 /regex/match-optimized/198 2753s ok 501 /regex/match-optimized/199 2753s ok 502 /regex/match-optimized/200 2753s ok 503 /regex/match-optimized/201 2753s ok 504 /regex/match-optimized/202 2753s ok 505 /regex/match-optimized/203 2753s ok 506 /regex/match-optimized/204 2753s ok 507 /regex/match-optimized/205 2753s ok 508 /regex/match-optimized/206 2753s ok 509 /regex/match-optimized/207 2753s ok 510 /regex/match-optimized/208 2753s ok 511 /regex/match-optimized/209 2753s ok 512 /regex/match-optimized/210 2753s ok 513 /regex/match-optimized/211 2753s ok 514 /regex/match-optimized/212 2753s ok 515 /regex/match-optimized/213 2753s ok 516 /regex/match-optimized/214 2753s ok 517 /regex/match-optimized/215 2753s ok 518 /regex/match-optimized/216 2753s ok 519 /regex/match-optimized/217 2753s ok 520 /regex/match-optimized/218 2753s ok 521 /regex/match-optimized/219 2753s ok 522 /regex/match-optimized/220 2753s ok 523 /regex/match-optimized/221 2753s ok 524 /regex/match-optimized/222 2753s ok 525 /regex/match-optimized/223 2753s ok 526 /regex/match-optimized/224 2753s ok 527 /regex/match-optimized/225 2753s ok 528 /regex/match-optimized/226 2753s ok 529 /regex/match-optimized/227 2753s ok 530 /regex/match-optimized/228 2753s ok 531 /regex/match-optimized/229 2753s ok 532 /regex/match-optimized/230 2753s ok 533 /regex/match-optimized/231 2753s ok 534 /regex/match-optimized/232 2753s ok 535 /regex/match-optimized/233 2753s ok 536 /regex/match-optimized/234 2753s ok 537 /regex/match-optimized/235 2753s ok 538 /regex/match-optimized/236 2753s ok 539 /regex/match-optimized/237 2753s ok 540 /regex/match-optimized/238 2753s ok 541 /regex/match-optimized/239 2753s ok 542 /regex/match-optimized/240 2753s ok 543 /regex/match-optimized/241 2753s ok 544 /regex/match-optimized/242 2753s ok 545 /regex/match-optimized/243 2753s ok 546 /regex/match-optimized/244 2753s ok 547 /regex/match-optimized/245 2753s ok 548 /regex/match-optimized/246 2753s ok 549 /regex/match-optimized/247 2753s # End of match-optimized tests 2753s # Start of fetch-all0 tests 2753s ok 550 /regex/fetch-all0/336 2753s ok 551 /regex/fetch-all0/337 2753s # End of fetch-all0 tests 2753s # Start of fetch-all1 tests 2753s ok 552 /regex/fetch-all1/338 2753s ok 553 /regex/fetch-all1/339 2753s ok 554 /regex/fetch-all1/340 2753s # End of fetch-all1 tests 2753s # Start of fetch-all2 tests 2753s ok 555 /regex/fetch-all2/341 2753s ok 556 /regex/fetch-all2/342 2753s ok 557 /regex/fetch-all2/343 2753s # End of fetch-all2 tests 2753s # Start of fetch-all3 tests 2753s ok 558 /regex/fetch-all3/344 2753s ok 559 /regex/fetch-all3/345 2753s ok 560 /regex/fetch-all3/346 2753s ok 561 /regex/fetch-all3/347 2753s ok 562 /regex/fetch-all3/348 2753s # End of fetch-all3 tests 2753s # Start of split tests 2753s # Start of simple0 tests 2753s ok 563 /regex/split/simple0/349 2753s ok 564 /regex/split/simple0/350 2753s ok 565 /regex/split/simple0/365 2753s ok 566 /regex/split/simple0/366 2753s # End of simple0 tests 2753s # Start of simple1 tests 2753s ok 567 /regex/split/simple1/351 2753s ok 568 /regex/split/simple1/352 2753s # End of simple1 tests 2753s # Start of simple2 tests 2753s ok 569 /regex/split/simple2/353 2753s ok 570 /regex/split/simple2/359 2753s ok 571 /regex/split/simple2/361 2753s # End of simple2 tests 2753s # Start of simple3 tests 2753s ok 572 /regex/split/simple3/354 2753s ok 573 /regex/split/simple3/355 2753s ok 574 /regex/split/simple3/356 2753s ok 575 /regex/split/simple3/357 2753s ok 576 /regex/split/simple3/358 2753s ok 577 /regex/split/simple3/360 2753s ok 578 /regex/split/simple3/362 2753s ok 579 /regex/split/simple3/363 2753s ok 580 /regex/split/simple3/364 2753s # End of simple3 tests 2753s # End of split tests 2753s # Start of split0 tests 2753s ok 581 /regex/split0/367 2753s ok 582 /regex/split0/369 2753s # End of split0 tests 2753s # Start of full-split0 tests 2753s ok 583 /regex/full-split0/368 2753s ok 584 /regex/full-split0/370 2753s ok 585 /regex/full-split0/371 2753s ok 586 /regex/full-split0/372 2753s ok 587 /regex/full-split0/373 2753s # End of full-split0 tests 2753s # Start of split1 tests 2753s ok 588 /regex/split1/374 2753s ok 589 /regex/split1/377 2753s # End of split1 tests 2753s # Start of full-split1 tests 2753s ok 590 /regex/full-split1/375 2753s ok 591 /regex/full-split1/376 2753s ok 592 /regex/full-split1/378 2753s ok 593 /regex/full-split1/379 2753s ok 594 /regex/full-split1/405 2753s # End of full-split1 tests 2753s # Start of split2 tests 2753s ok 595 /regex/split2/380 2753s ok 596 /regex/split2/384 2753s ok 597 /regex/split2/396 2753s # End of split2 tests 2753s # Start of full-split2 tests 2753s ok 598 /regex/full-split2/381 2753s ok 599 /regex/full-split2/382 2753s ok 600 /regex/full-split2/383 2753s ok 601 /regex/full-split2/385 2753s ok 602 /regex/full-split2/397 2753s ok 603 /regex/full-split2/400 2753s ok 604 /regex/full-split2/406 2753s # End of full-split2 tests 2753s # Start of split3 tests 2753s ok 605 /regex/split3/386 2753s ok 606 /regex/split3/388 2753s ok 607 /regex/split3/390 2753s ok 608 /regex/split3/392 2753s ok 609 /regex/split3/394 2753s ok 610 /regex/split3/398 2753s ok 611 /regex/split3/401 2753s ok 612 /regex/split3/403 2753s # End of split3 tests 2753s # Start of full-split3 tests 2753s ok 613 /regex/full-split3/387 2753s ok 614 /regex/full-split3/389 2753s ok 615 /regex/full-split3/391 2753s ok 616 /regex/full-split3/393 2753s ok 617 /regex/full-split3/395 2753s ok 618 /regex/full-split3/399 2753s ok 619 /regex/full-split3/402 2753s ok 620 /regex/full-split3/404 2753s ok 621 /regex/full-split3/407 2753s ok 622 /regex/full-split3/408 2753s # End of full-split3 tests 2753s # Start of check-repacement tests 2753s ok 623 /regex/check-repacement/409 2753s ok 624 /regex/check-repacement/410 2753s ok 625 /regex/check-repacement/411 2753s ok 626 /regex/check-repacement/412 2753s ok 627 /regex/check-repacement/413 2753s ok 628 /regex/check-repacement/414 2753s ok 629 /regex/check-repacement/415 2753s ok 630 /regex/check-repacement/416 2753s # End of check-repacement tests 2753s # Start of expand tests 2753s ok 631 /regex/expand/417 2753s ok 632 /regex/expand/418 2753s ok 633 /regex/expand/419 2753s ok 634 /regex/expand/420 2753s ok 635 /regex/expand/421 2753s ok 636 /regex/expand/422 2753s ok 637 /regex/expand/423 2753s ok 638 /regex/expand/424 2753s ok 639 /regex/expand/425 2753s ok 640 /regex/expand/426 2753s ok 641 /regex/expand/427 2753s ok 642 /regex/expand/428 2753s ok 643 /regex/expand/429 2753s ok 644 /regex/expand/430 2753s ok 645 /regex/expand/431 2753s ok 646 /regex/expand/432 2753s ok 647 /regex/expand/433 2753s ok 648 /regex/expand/434 2753s ok 649 /regex/expand/435 2753s ok 650 /regex/expand/436 2753s ok 651 /regex/expand/437 2753s ok 652 /regex/expand/438 2753s ok 653 /regex/expand/439 2753s ok 654 /regex/expand/440 2753s ok 655 /regex/expand/441 2753s ok 656 /regex/expand/442 2753s ok 657 /regex/expand/443 2753s ok 658 /regex/expand/444 2753s ok 659 /regex/expand/445 2753s ok 660 /regex/expand/446 2753s ok 661 /regex/expand/447 2753s ok 662 /regex/expand/448 2753s ok 663 /regex/expand/449 2753s ok 664 /regex/expand/450 2753s ok 665 /regex/expand/451 2753s ok 666 /regex/expand/452 2753s ok 667 /regex/expand/453 2753s ok 668 /regex/expand/454 2753s ok 669 /regex/expand/455 2753s ok 670 /regex/expand/456 2753s ok 671 /regex/expand/457 2753s ok 672 /regex/expand/458 2753s ok 673 /regex/expand/459 2753s ok 674 /regex/expand/460 2753s ok 675 /regex/expand/461 2753s ok 676 /regex/expand/462 2753s ok 677 /regex/expand/463 2753s ok 678 /regex/expand/464 2753s ok 679 /regex/expand/465 2753s ok 680 /regex/expand/466 2753s ok 681 /regex/expand/467 2753s ok 682 /regex/expand/468 2753s ok 683 /regex/expand/469 2753s ok 684 /regex/expand/470 2753s ok 685 /regex/expand/471 2753s ok 686 /regex/expand/472 2753s ok 687 /regex/expand/473 2753s ok 688 /regex/expand/474 2753s ok 689 /regex/expand/475 2753s ok 690 /regex/expand/476 2753s ok 691 /regex/expand/477 2753s ok 692 /regex/expand/478 2753s ok 693 /regex/expand/479 2753s ok 694 /regex/expand/480 2753s ok 695 /regex/expand/481 2753s ok 696 /regex/expand/482 2753s # End of expand tests 2753s # Start of replace tests 2753s ok 697 /regex/replace/483 2753s ok 698 /regex/replace/484 2753s ok 699 /regex/replace/485 2753s ok 700 /regex/replace/486 2753s ok 701 /regex/replace/487 2753s ok 702 /regex/replace/488 2753s ok 703 /regex/replace/489 2753s ok 704 /regex/replace/490 2753s ok 705 /regex/replace/491 2753s ok 706 /regex/replace/492 2753s ok 707 /regex/replace/493 2753s ok 708 /regex/replace/494 2753s ok 709 /regex/replace/495 2753s ok 710 /regex/replace/496 2753s ok 711 /regex/replace/497 2753s ok 712 /regex/replace/498 2753s ok 713 /regex/replace/499 2753s ok 714 /regex/replace/500 2753s ok 715 /regex/replace/501 2753s ok 716 /regex/replace/502 2753s ok 717 /regex/replace/503 2753s ok 718 /regex/replace/504 2753s ok 719 /regex/replace/505 2753s ok 720 /regex/replace/506 2753s ok 721 /regex/replace/507 2753s ok 722 /regex/replace/508 2753s ok 723 /regex/replace/509 2753s ok 724 /regex/replace/510 2753s # End of replace tests 2753s # Start of replace-optimized tests 2753s ok 725 /regex/replace-optimized/483 2753s ok 726 /regex/replace-optimized/484 2753s ok 727 /regex/replace-optimized/485 2753s ok 728 /regex/replace-optimized/486 2753s ok 729 /regex/replace-optimized/487 2753s ok 730 /regex/replace-optimized/488 2753s ok 731 /regex/replace-optimized/489 2753s ok 732 /regex/replace-optimized/490 2753s ok 733 /regex/replace-optimized/491 2753s ok 734 /regex/replace-optimized/492 2753s ok 735 /regex/replace-optimized/493 2753s ok 736 /regex/replace-optimized/494 2753s ok 737 /regex/replace-optimized/495 2753s ok 738 /regex/replace-optimized/496 2753s ok 739 /regex/replace-optimized/497 2753s ok 740 /regex/replace-optimized/498 2753s ok 741 /regex/replace-optimized/499 2753s ok 742 /regex/replace-optimized/500 2753s ok 743 /regex/replace-optimized/501 2753s ok 744 /regex/replace-optimized/502 2753s ok 745 /regex/replace-optimized/503 2753s ok 746 /regex/replace-optimized/504 2753s ok 747 /regex/replace-optimized/505 2753s ok 748 /regex/replace-optimized/506 2753s ok 749 /regex/replace-optimized/507 2753s ok 750 /regex/replace-optimized/508 2753s ok 751 /regex/replace-optimized/509 2753s ok 752 /regex/replace-optimized/510 2753s # End of replace-optimized tests 2753s # Start of replace-literally tests 2753s ok 753 /regex/replace-literally/511 2753s ok 754 /regex/replace-literally/512 2753s ok 755 /regex/replace-literally/513 2753s ok 756 /regex/replace-literally/514 2753s ok 757 /regex/replace-literally/515 2753s ok 758 /regex/replace-literally/516 2753s ok 759 /regex/replace-literally/517 2753s ok 760 /regex/replace-literally/518 2753s ok 761 /regex/replace-literally/519 2753s ok 762 /regex/replace-literally/520 2753s ok 763 /regex/replace-literally/521 2753s ok 764 /regex/replace-literally/522 2753s ok 765 /regex/replace-literally/523 2753s ok 766 /regex/replace-literally/524 2753s ok 767 /regex/replace-literally/525 2753s ok 768 /regex/replace-literally/526 2753s ok 769 /regex/replace-literally/527 2753s ok 770 /regex/replace-literally/528 2753s ok 771 /regex/replace-literally/529 2753s ok 772 /regex/replace-literally/530 2753s # End of replace-literally tests 2753s # Start of string-number tests 2753s ok 773 /regex/string-number/531 2753s ok 774 /regex/string-number/532 2753s ok 775 /regex/string-number/533 2753s ok 776 /regex/string-number/534 2753s ok 777 /regex/string-number/535 2753s ok 778 /regex/string-number/536 2753s ok 779 /regex/string-number/537 2753s ok 780 /regex/string-number/538 2753s ok 781 /regex/string-number/539 2753s ok 782 /regex/string-number/540 2753s ok 783 /regex/string-number/541 2753s ok 784 /regex/string-number/542 2753s ok 785 /regex/string-number/543 2753s ok 786 /regex/string-number/544 2753s ok 787 /regex/string-number/545 2753s # End of string-number tests 2753s # Start of escape_nul tests 2753s ok 788 /regex/escape_nul/546 2753s ok 789 /regex/escape_nul/547 2753s ok 790 /regex/escape_nul/548 2753s ok 791 /regex/escape_nul/549 2753s ok 792 /regex/escape_nul/550 2753s ok 793 /regex/escape_nul/551 2753s ok 794 /regex/escape_nul/552 2753s ok 795 /regex/escape_nul/553 2753s ok 796 /regex/escape_nul/554 2753s ok 797 /regex/escape_nul/555 2753s ok 798 /regex/escape_nul/556 2753s ok 799 /regex/escape_nul/557 2753s ok 800 /regex/escape_nul/558 2753s ok 801 /regex/escape_nul/559 2753s ok 802 /regex/escape_nul/560 2753s # End of escape_nul tests 2753s # Start of escape tests 2753s ok 803 /regex/escape/561 2753s ok 804 /regex/escape/562 2753s ok 805 /regex/escape/563 2753s ok 806 /regex/escape/564 2753s ok 807 /regex/escape/565 2753s ok 808 /regex/escape/566 2753s ok 809 /regex/escape/567 2753s ok 810 /regex/escape/568 2753s ok 811 /regex/escape/569 2753s ok 812 /regex/escape/570 2753s ok 813 /regex/escape/571 2753s ok 814 /regex/escape/572 2753s ok 815 /regex/escape/573 2753s ok 816 /regex/escape/574 2753s ok 817 /regex/escape/575 2753s ok 818 /regex/escape/576 2753s ok 819 /regex/escape/577 2753s ok 820 /regex/escape/578 2753s # End of escape tests 2753s # Start of match-all0 tests 2753s ok 821 /regex/match-all0/579 2753s ok 822 /regex/match-all0/581 2753s # End of match-all0 tests 2753s # Start of match-all-full0 tests 2753s ok 823 /regex/match-all-full0/580 2753s ok 824 /regex/match-all-full0/582 2753s ok 825 /regex/match-all-full0/583 2753s ok 826 /regex/match-all-full0/584 2753s # End of match-all-full0 tests 2753s # Start of match-all1 tests 2753s ok 827 /regex/match-all1/585 2753s ok 828 /regex/match-all1/587 2753s ok 829 /regex/match-all1/592 2753s # End of match-all1 tests 2753s # Start of match-all-full1 tests 2753s ok 830 /regex/match-all-full1/586 2753s ok 831 /regex/match-all-full1/588 2753s ok 832 /regex/match-all-full1/589 2753s ok 833 /regex/match-all-full1/590 2753s ok 834 /regex/match-all-full1/591 2753s ok 835 /regex/match-all-full1/593 2753s # End of match-all-full1 tests 2753s # Start of match-all2 tests 2753s ok 836 /regex/match-all2/594 2753s ok 837 /regex/match-all2/596 2753s ok 838 /regex/match-all2/598 2753s # End of match-all2 tests 2753s # Start of match-all-full2 tests 2753s ok 839 /regex/match-all-full2/595 2753s ok 840 /regex/match-all-full2/597 2753s ok 841 /regex/match-all-full2/599 2753s # End of match-all-full2 tests 2753s # Start of match-all3 tests 2753s ok 842 /regex/match-all3/600 2753s ok 843 /regex/match-all3/602 2753s # End of match-all3 tests 2753s # Start of match-all-full3 tests 2753s ok 844 /regex/match-all-full3/601 2753s ok 845 /regex/match-all-full3/603 2753s # End of match-all-full3 tests 2753s # Start of match-notempty tests 2753s ok 846 /regex/match-notempty/604 2753s # End of match-notempty tests 2753s # Start of match-notempty-optimized tests 2753s ok 847 /regex/match-notempty-optimized/604 2753s # End of match-notempty-optimized tests 2753s # Start of match-notempty-atstart tests 2753s ok 848 /regex/match-notempty-atstart/605 2753s # End of match-notempty-atstart tests 2753s # Start of match-notempty-atstart-optimized tests 2753s ok 849 /regex/match-notempty-atstart-optimized/605 2753s # End of match-notempty-atstart-optimized tests 2753s # End of regex tests 2753s TAP version 14 2753s # random seed: R02S5c6dfd45426b51f19792b1fbbfde845f 2753s 1..29 2753s # Start of type tests 2753s ok 1 /type/fundamentals 2753s ok 2 /type/qdata 2753s ok 3 /type/query 2753s ok 4 /type/class-private 2753s # End of type tests 2753s # Start of object tests 2753s ok 5 /object/clear 2753s ok 6 /object/clear-function 2753s ok 7 /object/set 2753s ok 8 /object/set-function 2753s ok 9 /object/value 2753s ok 10 /object/initially-unowned 2753s ok 11 /object/weak-pointer 2753s ok 12 /object/weak-ref 2753s ok 13 /object/toggle-ref 2753s ok 14 /object/qdata 2753s ok 15 /object/qdata2 2753s # Start of set tests 2753s # /object/set/derived-type summary: Check that g_set_object() doesn’t give strict aliasing warnings when used on types derived from GObject 2753s ok 16 /object/set/derived-type 2753s # End of set tests 2753s # Start of weak-pointer tests 2753s ok 17 /object/weak-pointer/clear 2753s ok 18 /object/weak-pointer/clear-function 2753s ok 19 /object/weak-pointer/set 2753s ok 20 /object/weak-pointer/set-function 2753s # End of weak-pointer tests 2753s # Start of weak-ref tests 2753s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 2753s # /object/weak-ref/on-dispose summary: Test that a weak ref set during dispose vfunc is cleared 2753s ok 21 /object/weak-ref/on-dispose 2753s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/865 2753s # /object/weak-ref/on-run-dispose summary: Test that a weak ref is cleared on g_object_run_dispose() 2753s ok 22 /object/weak-ref/on-run-dispose 2753s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 2753s # /object/weak-ref/on-toggle-notify summary: Test that a weak ref set on toggle notify is cleared 2753s ok 23 /object/weak-ref/on-toggle-notify 2753s ok 24 /object/weak-ref/in-toggle-notify 2753s ok 25 /object/weak-ref/many 2753s # Start of concurrent tests 2753s ok 26 /object/weak-ref/concurrent/0 2753s ok 27 /object/weak-ref/concurrent/1 2753s ok - glib/reference.test 2753s # Running test: glib/gdbus-connection.test 2753s # End of concurrent tests 2753s # End of weak-ref tests 2753s # Start of toggle-ref tests 2753s ok 28 /object/toggle-ref/ref-on-dispose 2753s ok 29 /object/toggle-ref/ref-and-notify-on-dispose 2753s # End of toggle-ref tests 2753s # End of object tests 2753s TAP version 14 2753s # random seed: R02S6deeac197b03ee28e329419524010490 2753s 1..9 2753s # Start of gdbus tests 2753s # Start of connection tests 2753s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/bus-failure/.dirs/home 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/bus-failure/.dirs/cache 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/bus-failure/.dirs/system-config1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/bus-failure/.dirs/system-config2 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/bus-failure/.dirs/config 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/bus-failure/.dirs/system-data1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/bus-failure/.dirs/system-data2 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/bus-failure/.dirs/data 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/bus-failure/.dirs/state 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/bus-failure/.dirs/runtime 2753s ok 1 /gdbus/connection/bus-failure 2753s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/basic/.dirs/home 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/basic/.dirs/cache 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/basic/.dirs/system-config1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/basic/.dirs/system-config2 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/basic/.dirs/config 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/basic/.dirs/system-data1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/basic/.dirs/system-data2 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/basic/.dirs/data 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/basic/.dirs/state 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/basic/.dirs/runtime 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s ok 2 /gdbus/connection/basic 2753s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/life-cycle/.dirs/home 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/life-cycle/.dirs/cache 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/life-cycle/.dirs/system-config1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/life-cycle/.dirs/system-config2 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/life-cycle/.dirs/config 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/life-cycle/.dirs/system-data1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/life-cycle/.dirs/system-data2 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/life-cycle/.dirs/data 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/life-cycle/.dirs/state 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/life-cycle/.dirs/runtime 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s ok 3 /gdbus/connection/life-cycle 2753s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/send/.dirs/home 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/send/.dirs/cache 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/send/.dirs/system-config1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/send/.dirs/system-config2 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/send/.dirs/config 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/send/.dirs/system-data1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/send/.dirs/system-data2 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/send/.dirs/data 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/send/.dirs/state 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/send/.dirs/runtime 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s ok 4 /gdbus/connection/send 2753s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signals/.dirs/home 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signals/.dirs/cache 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signals/.dirs/system-config1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signals/.dirs/system-config2 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signals/.dirs/config 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signals/.dirs/system-data1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signals/.dirs/system-data2 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signals/.dirs/data 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signals/.dirs/state 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signals/.dirs/runtime 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s ok 5 /gdbus/connection/signals 2753s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signal-match-rules/.dirs/home 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signal-match-rules/.dirs/cache 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signal-match-rules/.dirs/system-config1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signal-match-rules/.dirs/system-config2 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signal-match-rules/.dirs/config 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signal-match-rules/.dirs/system-data1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signal-match-rules/.dirs/system-data2 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signal-match-rules/.dirs/data 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signal-match-rules/.dirs/state 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/signal-match-rules/.dirs/runtime 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s ok 6 /gdbus/connection/signal-match-rules 2753s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/filter/.dirs/home 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/filter/.dirs/cache 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/filter/.dirs/system-config1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/filter/.dirs/system-config2 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/filter/.dirs/config 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/filter/.dirs/system-data1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/filter/.dirs/system-data2 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/filter/.dirs/data 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/filter/.dirs/state 2753s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/filter/.dirs/runtime 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2753s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s ok 7 /gdbus/connection/filter 2754s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/serials/.dirs/home 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/serials/.dirs/cache 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/serials/.dirs/system-config1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/serials/.dirs/system-config2 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/serials/.dirs/config 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/serials/.dirs/system-data1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/serials/.dirs/system-data2 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/serials/.dirs/data 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/serials/.dirs/state 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/serials/.dirs/runtime 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s ok 8 /gdbus/connection/serials 2754s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/cancel/.dirs/home 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/cancel/.dirs/cache 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/cancel/.dirs/system-config1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/cancel/.dirs/system-config2 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/cancel/.dirs/config 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/cancel/.dirs/system-data1:/tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/cancel/.dirs/system-data2 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/cancel/.dirs/data 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/cancel/.dirs/state 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_TSZ8J3/gdbus/connection/cancel/.dirs/runtime 2754s # /gdbus/connection/cancel summary: Test that cancelling one of two racing g_bus_get() calls does not cancel the other one 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2754s ok - glib/gdbus-connection.test 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2754s ok 9 /gdbus/connection/cancel 2754s # End of connection tests 2754s # End of gdbus tests 2754s # Running test: glib/callable-info.test 2754s TAP version 14 2754s # random seed: R02S5a93ee96019224c1b5cec068d76d72a9 2754s 1..6 2754s # Start of callable-info tests 2754s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_DMWIK3/callable-info/sync-function/.dirs/home 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_DMWIK3/callable-info/sync-function/.dirs/cache 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_DMWIK3/callable-info/sync-function/.dirs/system-config1:/tmp/test_callable-info_DMWIK3/callable-info/sync-function/.dirs/system-config2 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_DMWIK3/callable-info/sync-function/.dirs/config 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_DMWIK3/callable-info/sync-function/.dirs/system-data1:/tmp/test_callable-info_DMWIK3/callable-info/sync-function/.dirs/system-data2 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_DMWIK3/callable-info/sync-function/.dirs/data 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_DMWIK3/callable-info/sync-function/.dirs/state 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_DMWIK3/callable-info/sync-function/.dirs/runtime 2754s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2754s ok 1 /callable-info/sync-function 2754s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_DMWIK3/callable-info/async-function/.dirs/home 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_DMWIK3/callable-info/async-function/.dirs/cache 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_DMWIK3/callable-info/async-function/.dirs/system-config1:/tmp/test_callable-info_DMWIK3/callable-info/async-function/.dirs/system-config2 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_DMWIK3/callable-info/async-function/.dirs/config 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_DMWIK3/callable-info/async-function/.dirs/system-data1:/tmp/test_callable-info_DMWIK3/callable-info/async-function/.dirs/system-data2 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_DMWIK3/callable-info/async-function/.dirs/data 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_DMWIK3/callable-info/async-function/.dirs/state 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_DMWIK3/callable-info/async-function/.dirs/runtime 2754s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2754s ok 2 /callable-info/async-function 2754s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_DMWIK3/callable-info/is-method/.dirs/home 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_DMWIK3/callable-info/is-method/.dirs/cache 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_DMWIK3/callable-info/is-method/.dirs/system-config1:/tmp/test_callable-info_DMWIK3/callable-info/is-method/.dirs/system-config2 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_DMWIK3/callable-info/is-method/.dirs/config 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_DMWIK3/callable-info/is-method/.dirs/system-data1:/tmp/test_callable-info_DMWIK3/callable-info/is-method/.dirs/system-data2 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_DMWIK3/callable-info/is-method/.dirs/data 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_DMWIK3/callable-info/is-method/.dirs/state 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_DMWIK3/callable-info/is-method/.dirs/runtime 2754s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2754s ok 3 /callable-info/is-method 2754s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_DMWIK3/callable-info/static-method/.dirs/home 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_DMWIK3/callable-info/static-method/.dirs/cache 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_DMWIK3/callable-info/static-method/.dirs/system-config1:/tmp/test_callable-info_DMWIK3/callable-info/static-method/.dirs/system-config2 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_DMWIK3/callable-info/static-method/.dirs/config 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_DMWIK3/callable-info/static-method/.dirs/system-data1:/tmp/test_callable-info_DMWIK3/callable-info/static-method/.dirs/system-data2 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_DMWIK3/callable-info/static-method/.dirs/data 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_DMWIK3/callable-info/static-method/.dirs/state 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_DMWIK3/callable-info/static-method/.dirs/runtime 2754s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2754s ok 4 /callable-info/static-method 2754s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_DMWIK3/callable-info/static-vfunc/.dirs/home 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_DMWIK3/callable-info/static-vfunc/.dirs/cache 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_DMWIK3/callable-info/static-vfunc/.dirs/system-config1:/tmp/test_callable-info_DMWIK3/callable-info/static-vfunc/.dirs/system-config2 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_DMWIK3/callable-info/static-vfunc/.dirs/config 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_DMWIK3/callable-info/static-vfunc/.dirs/system-data1:/tmp/test_callable-info_DMWIK3/callable-info/static-vfunc/.dirs/system-data2 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_DMWIK3/callable-info/static-vfunc/.dirs/data 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_DMWIK3/callable-info/static-vfunc/.dirs/state 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_DMWIK3/callable-info/static-vfunc/.dirs/runtime 2754s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2754s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/361 2754s ok 5 /callable-info/static-vfunc # SKIP g-ir-scanner is not new enough 2754s # Start of platform tests 2754s # Start of unix tests 2754s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_DMWIK3/callable-info/platform/unix/is-method/.dirs/home 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_DMWIK3/callable-info/platform/unix/is-method/.dirs/cache 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_DMWIK3/callable-info/platform/unix/is-method/.dirs/system-config1:/tmp/test_callable-info_DMWIK3/callable-info/platform/unix/is-method/.dirs/system-config2 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_DMWIK3/callable-info/platform/unix/is-method/.dirs/config 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_DMWIK3/callable-info/platform/unix/is-method/.dirs/system-data1:/tmp/test_callable-info_DMWIK3/callable-info/platform/unix/is-method/.dirs/system-data2 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_DMWIK3/callable-info/platform/unix/is-method/.dirs/data 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_DMWIK3/callable-info/platform/unix/is-method/.dirs/state 2754s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_DMWIK3/callable-info/platform/unix/is-method/.dirs/runtime 2754s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 2754s # Checking DesktopAppInfo in Gio 2754s # Checking DesktopAppInfo in GioUnix 2754s ok - glib/callable-info.test 2754s ok 6 /callable-info/platform/unix/is-method 2754s # End of unix tests 2754s # End of platform tests 2754s # End of callable-info tests 2754s # Running test: glib/tls-bindings.test 2754s TAP version 14 2754s # random seed: R02S09ee0927bf85a643dfe5726c401fc116 2754s 1..2 2754s # Start of tls-connection tests 2754s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 2754s ok 1 /tls-connection/get-tls-channel-binding 2754s ok 2 /tls-connection/get-dtls-channel-binding 2754s ok - glib/tls-bindings.test 2754s # End of tls-connection tests 2754s # Running test: glib/network-monitor-race.test 2754s TAP version 14 2754s # random seed: R02Sb578027249f7ff009fcd0fe80d9765c7 2754s 1..1 2754s # Start of network-monitor tests 2754s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793727 2754s # Executing: glib/network-monitor-race.test 2758s ok 1 /network-monitor/create-in-thread 2758s # slow test /network-monitor/create-in-thread executed in 3.95 secs 2758s # End of network-monitor tests 2758s ok - glib/network-monitor-race.test 2758s # Running test: glib/memchunk.test 2758s TAP version 14 2758s # random seed: R02Sd76f37c6eb937dddcf387e724ef35514 2758s 1..1 2758s # Start of memchunk tests 2758s ok 1 /memchunk/basic 2758s # End of memchunk tests 2758s ok - glib/memchunk.test 2758s # Running test: glib/timer.test 2758s TAP version 14 2758s # random seed: R02S0750b14ae08e71e4c82bf4f45dbf1a8e 2758s 1..10 2758s # Start of timer tests 2758s ok 1 /timer/basic # SKIP Not reliable due to floating-point rounding (glib#820) 2758s ok - glib/timer.test 2758s # Running test: glib/value.test 2758s ok - glib/value.test 2758s # Running test: glib/network-address.test 2758s ok 2 /timer/stop 2758s ok 3 /timer/continue 2758s ok 4 /timer/reset 2758s ok 5 /timer/is_active 2758s # End of timer tests 2758s # Start of timeval tests 2758s ok 6 /timeval/add 2758s ok 7 /timeval/from-iso8601 2758s ok 8 /timeval/to-iso8601 2758s # Start of to-iso8601 tests 2758s ok 9 /timeval/to-iso8601/overflow 2758s # End of to-iso8601 tests 2758s # End of timeval tests 2758s # Start of usleep tests 2758s ok 10 /usleep/with-zero-wait 2758s # End of usleep tests 2758s TAP version 14 2758s # random seed: R02Sff71bb57d34a8400856c5a2499f6d86d 2758s 1..9 2758s # Start of value tests 2758s ok 1 /value/basic 2758s ok 2 /value/collection 2758s ok 3 /value/copying 2758s ok 4 /value/enum-transformation 2758s ok 5 /value/gtype 2758s # /value/string summary: Test that G_TYPE_STRING GValue copy properly 2758s ok 6 /value/string 2758s # Next: GObject object in GValue of GObject to GValue of GObject 2758s # Next: GObject object in GValue of GObject to GValue of TestInterface 2758s # Next: GObject object in GValue of GObject to GValue of TestObjectA 2758s # Next: GObject object in GValue of GObject to GValue of TestObjectB 2758s # Next: GObject object in GValue of GObject to GValue of TestObjectA1 2758s # Next: GObject object in GValue of GObject to GValue of TestObjectA2 2758s # Next: TestObjectA object in GValue of GObject to GValue of GObject 2758s # Next: TestObjectA object in GValue of GObject to GValue of TestInterface 2758s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA 2758s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectB 2758s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA1 2758s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA2 2758s # Next: TestObjectA object in GValue of TestObjectA to GValue of GObject 2758s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestInterface 2758s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA 2758s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectB 2758s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA1 2758s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA2 2758s # Next: TestObjectB object in GValue of GObject to GValue of GObject 2758s # Next: TestObjectB object in GValue of GObject to GValue of TestInterface 2758s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA 2758s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectB 2758s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA1 2758s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA2 2758s # Next: TestObjectB object in GValue of TestInterface to GValue of GObject 2758s # Next: TestObjectB object in GValue of TestInterface to GValue of TestInterface 2758s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA 2758s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectB 2758s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA1 2758s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA2 2758s # Next: TestObjectB object in GValue of TestObjectB to GValue of GObject 2758s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestInterface 2758s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA 2758s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectB 2758s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA1 2758s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA2 2758s # Next: TestObjectA1 object in GValue of GObject to GValue of GObject 2758s # Next: TestObjectA1 object in GValue of GObject to GValue of TestInterface 2758s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA 2758s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectB 2758s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA1 2758s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA2 2758s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of GObject 2758s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestInterface 2758s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA 2758s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectB 2758s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA1 2758s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA2 2758s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of GObject 2758s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestInterface 2758s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA 2758s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectB 2758s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA1 2758s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA2 2758s # Next: TestObjectA2 object in GValue of GObject to GValue of GObject 2758s # Next: TestObjectA2 object in GValue of GObject to GValue of TestInterface 2758s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA 2758s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectB 2758s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA1 2758s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA2 2758s # Next: TestObjectA2 object in GValue of TestInterface to GValue of GObject 2758s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestInterface 2758s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA 2758s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectB 2758s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA1 2758s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA2 2758s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of GObject 2758s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestInterface 2758s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA 2758s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectB 2758s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA1 2758s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA2 2758s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of GObject 2758s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestInterface 2758s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA 2758s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectB 2758s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA1 2758s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA2 2758s ok 7 /value/transform-object 2758s # Start of array tests 2758s ok 8 /value/array/basic 2758s ok 9 /value/array/sort-with-data 2758s # End of array tests 2758s # End of value tests 2758s TAP version 14 2758s # random seed: R02S640d9103044ea6bffaa0b8bb730c195d 2758s 1..72 2758s # Start of network-address tests 2758s ok 1 /network-address/basic 2758s ok 2 /network-address/scope-id 2758s ok 3 /network-address/uri-scope-id 2758s ok 4 /network-address/to-string 2758s # Start of parse-host tests 2758s ok 5 /network-address/parse-host/0 2758s ok 6 /network-address/parse-host/1 2758s ok 7 /network-address/parse-host/2 2758s ok 8 /network-address/parse-host/3 2758s ok 9 /network-address/parse-host/4 2758s ok 10 /network-address/parse-host/5 2758s ok 11 /network-address/parse-host/6 2758s ok 12 /network-address/parse-host/7 2758s ok 13 /network-address/parse-host/8 2758s ok 14 /network-address/parse-host/9 2758s ok 15 /network-address/parse-host/10 2758s ok 16 /network-address/parse-host/11 2758s ok 17 /network-address/parse-host/12 2758s ok 18 /network-address/parse-host/13 2758s # End of parse-host tests 2758s # Start of parse-uri tests 2758s ok 19 /network-address/parse-uri/0 2758s ok 20 /network-address/parse-uri/1 2758s ok 21 /network-address/parse-uri/2 2758s ok 22 /network-address/parse-uri/3 2758s ok 23 /network-address/parse-uri/4 2758s ok 24 /network-address/parse-uri/5 2758s ok 25 /network-address/parse-uri/6 2758s ok 26 /network-address/parse-uri/7 2758s ok 27 /network-address/parse-uri/8 2758s ok 28 /network-address/parse-uri/9 2758s # End of parse-uri tests 2758s # Start of resolve-address tests 2758s # Input: 192.168.1.2 2758s ok 29 /network-address/resolve-address/0 2758s # Input: fe80::42 2758s ok 30 /network-address/resolve-address/1 2758s # Input: 192.168.1.2:80 2758s ok 31 /network-address/resolve-address/2 2758s # Input: [fe80::42] 2758s ok 32 /network-address/resolve-address/3 2758s # Input: [fe80::42]:80 2758s ok 33 /network-address/resolve-address/4 2758s # Input: 192.168.258 2758s ok 34 /network-address/resolve-address/5 2758s # Input: 192.11010306 2758s ok 35 /network-address/resolve-address/6 2758s # Input: 3232235778 2758s ok 36 /network-address/resolve-address/7 2758s # Input: 0300.0250.0001.0001 2758s ok 37 /network-address/resolve-address/8 2758s # Input: 0xC0.0xA8.0x01.0x02 2758s ok 38 /network-address/resolve-address/9 2758s # Input: 0xc0.0xa8.0x01.0x02 2758s ok 39 /network-address/resolve-address/10 2758s # Input: 0xc0a80102 2758s ok 40 /network-address/resolve-address/11 2758s # End of resolve-address tests 2758s # Start of loopback tests 2758s ok 41 /network-address/loopback/basic 2758s ok 42 /network-address/loopback/sync 2758s ok 43 /network-address/loopback/async 2758s # End of loopback tests 2758s # Start of localhost tests 2758s ok 44 /network-address/localhost/async 2758s ok 45 /network-address/localhost/sync 2758s # End of localhost tests 2758s # Start of happy-eyeballs tests 2758s ok 46 /network-address/happy-eyeballs/basic 2758s ok 47 /network-address/happy-eyeballs/parallel 2758s ok 48 /network-address/happy-eyeballs/slow-ipv4 2759s ok 49 /network-address/happy-eyeballs/slow-ipv6 2759s ok 50 /network-address/happy-eyeballs/very-slow-ipv6 2759s # Executing: glib/network-address.test 2760s ok 51 /network-address/happy-eyeballs/slow-connection-and-ipv4 2760s # slow test /network-address/happy-eyeballs/slow-connection-and-ipv4 executed in 0.96 secs 2760s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 2760s ok 52 /network-address/happy-eyeballs/ipv6-error-ipv4-first 2760s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 2760s ok 53 /network-address/happy-eyeballs/ipv6-error-ipv6-first 2760s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/865 2760s # /network-address/happy-eyeballs/ipv6-error-ipv4-very-slow summary: Ensure that we successfully return IPv4 results even when they come significantly later than an IPv6 failure. 2760s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 2760s ok 54 /network-address/happy-eyeballs/ipv6-error-ipv4-very-slow 2760s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 2760s ok 55 /network-address/happy-eyeballs/ipv4-error-ipv6-first 2760s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 2760s ok 56 /network-address/happy-eyeballs/ipv4-error-ipv4-first 2760s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 2760s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 2760s ok 57 /network-address/happy-eyeballs/both-error 2760s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 2760s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 2760s ok 58 /network-address/happy-eyeballs/both-error-delays-1 2760s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 2760s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 2760s ok 59 /network-address/happy-eyeballs/both-error-delays-2 2760s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 2760s ok 60 /network-address/happy-eyeballs/both-error-delays-3 2760s # End of happy-eyeballs tests 2760s # End of network-address tests 2760s # Start of gresolver tests 2760s # Start of resolve-address tests 2760s # Input: 192.168.1.2 2760s ok 61 /gresolver/resolve-address/0 2760s # Input: fe80::42 2760s ok 62 /gresolver/resolve-address/1 2760s # Input: 192.168.1.2:80 2760s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 192.168.1.2:80 2760s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 2760s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 2760s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ‘gio-network-monitor’ 2760s # Error: Error resolving “192.168.1.2:80”: Name or service not known 2760s ok 63 /gresolver/resolve-address/2 2760s # Input: [fe80::42] 2760s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [fe80::42] 2760s # Error: Error resolving “[fe80::42]”: Name or service not known 2760s ok 64 /gresolver/resolve-address/3 2760s # Input: [fe80::42]:80 2760s ok - glib/network-address.test 2760s # Running test: glib/gdbus-peer.test 2760s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [fe80::42]:80 2760s # Error: Error resolving “[fe80::42]:80”: Name or service not known 2760s ok 65 /gresolver/resolve-address/4 2760s # Input: 192.168.258 2760s # Error: Error resolving “192.168.258”: Name or service not known 2760s ok 66 /gresolver/resolve-address/5 2760s # Input: 192.11010306 2760s # Error: Error resolving “192.11010306”: Name or service not known 2760s ok 67 /gresolver/resolve-address/6 2760s # Input: 3232235778 2760s # Error: Error resolving “3232235778”: Name or service not known 2760s ok 68 /gresolver/resolve-address/7 2760s # Input: 0300.0250.0001.0001 2760s # Error: Error resolving “0300.0250.0001.0001”: Name or service not known 2760s ok 69 /gresolver/resolve-address/8 2760s # Input: 0xC0.0xA8.0x01.0x02 2760s # Error: Error resolving “0xC0.0xA8.0x01.0x02”: Name or service not known 2760s ok 70 /gresolver/resolve-address/9 2760s # Input: 0xc0.0xa8.0x01.0x02 2760s # Error: Error resolving “0xc0.0xa8.0x01.0x02”: Name or service not known 2760s ok 71 /gresolver/resolve-address/10 2760s # Input: 0xc0a80102 2760s # Error: Error resolving “0xc0a80102”: Name or service not known 2760s ok 72 /gresolver/resolve-address/11 2760s # End of resolve-address tests 2760s # End of gresolver tests 2760s TAP version 14 2760s # random seed: R02Se67f8686dd4143bccd351116a0c0109a 2760s 1..12 2760s # Start of gdbus tests 2760s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/.dirs/home 2760s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/.dirs/cache 2760s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/.dirs/system-config2 2760s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/.dirs/config 2760s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/.dirs/system-data2 2760s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/.dirs/data 2760s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/.dirs/state 2760s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/.dirs/runtime 2760s # Testing with unix:dir address 2760s # Testing with unix:tmpdir address 2760s # Testing with unix:path address 2760s ok 1 /gdbus/peer-to-peer 2760s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/delayed-message-processing/.dirs/home 2760s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/delayed-message-processing/.dirs/cache 2760s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/delayed-message-processing/.dirs/system-config1:/tmp/test_gdbus-peer_7IT5J3/gdbus/delayed-message-processing/.dirs/system-config2 2760s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/delayed-message-processing/.dirs/config 2760s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/delayed-message-processing/.dirs/system-data1:/tmp/test_gdbus-peer_7IT5J3/gdbus/delayed-message-processing/.dirs/system-data2 2760s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/delayed-message-processing/.dirs/data 2760s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/delayed-message-processing/.dirs/state 2760s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_7IT5J3/gdbus/delayed-message-processing/.dirs/runtime 2760s # Testing with unix:dir address 2761s ok 2 /gdbus/delayed-message-processing 2761s # slow test /gdbus/delayed-message-processing executed in 0.95 secs 2761s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/nonce-tcp/.dirs/home 2761s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/nonce-tcp/.dirs/cache 2761s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/nonce-tcp/.dirs/system-config1:/tmp/test_gdbus-peer_7IT5J3/gdbus/nonce-tcp/.dirs/system-config2 2761s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/nonce-tcp/.dirs/config 2761s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/nonce-tcp/.dirs/system-data1:/tmp/test_gdbus-peer_7IT5J3/gdbus/nonce-tcp/.dirs/system-data2 2761s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/nonce-tcp/.dirs/data 2761s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/nonce-tcp/.dirs/state 2761s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_7IT5J3/gdbus/nonce-tcp/.dirs/runtime 2762s ok 3 /gdbus/nonce-tcp 2762s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/tcp-anonymous/.dirs/home 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/tcp-anonymous/.dirs/cache 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/tcp-anonymous/.dirs/system-config1:/tmp/test_gdbus-peer_7IT5J3/gdbus/tcp-anonymous/.dirs/system-config2 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/tcp-anonymous/.dirs/config 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/tcp-anonymous/.dirs/system-data1:/tmp/test_gdbus-peer_7IT5J3/gdbus/tcp-anonymous/.dirs/system-data2 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/tcp-anonymous/.dirs/data 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/tcp-anonymous/.dirs/state 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_7IT5J3/gdbus/tcp-anonymous/.dirs/runtime 2762s ok 4 /gdbus/tcp-anonymous 2762s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/credentials/.dirs/home 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/credentials/.dirs/cache 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/credentials/.dirs/system-config1:/tmp/test_gdbus-peer_7IT5J3/gdbus/credentials/.dirs/system-config2 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/credentials/.dirs/config 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/credentials/.dirs/system-data1:/tmp/test_gdbus-peer_7IT5J3/gdbus/credentials/.dirs/system-data2 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/credentials/.dirs/data 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/credentials/.dirs/state 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_7IT5J3/gdbus/credentials/.dirs/runtime 2762s ok 5 /gdbus/credentials 2762s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/codegen-peer-to-peer/.dirs/home 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/codegen-peer-to-peer/.dirs/cache 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/codegen-peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_7IT5J3/gdbus/codegen-peer-to-peer/.dirs/system-config2 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/codegen-peer-to-peer/.dirs/config 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/codegen-peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_7IT5J3/gdbus/codegen-peer-to-peer/.dirs/system-data2 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/codegen-peer-to-peer/.dirs/data 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/codegen-peer-to-peer/.dirs/state 2762s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_7IT5J3/gdbus/codegen-peer-to-peer/.dirs/runtime 2762s # Testing with unix:dir address 2762s # Machine ID: 5431c9cd287e4669b60d6da3e2db255e 2763s ok 6 /gdbus/codegen-peer-to-peer 2763s # slow test /gdbus/codegen-peer-to-peer executed in 1.25 secs 2763s # Start of peer-to-peer tests 2763s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/signals/.dirs/home 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/signals/.dirs/cache 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/signals/.dirs/system-config1:/tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/signals/.dirs/system-config2 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/signals/.dirs/config 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/signals/.dirs/system-data1:/tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/signals/.dirs/system-data2 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/signals/.dirs/data 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/signals/.dirs/state 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/signals/.dirs/runtime 2763s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1620 2763s # Testing with unix:dir address 2763s ok 7 /gdbus/peer-to-peer/signals 2763s # Start of invalid tests 2763s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/server/.dirs/home 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/server/.dirs/cache 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/server/.dirs/system-config1:/tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/server/.dirs/system-config2 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/server/.dirs/config 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/server/.dirs/system-data1:/tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/server/.dirs/system-data2 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/server/.dirs/data 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/server/.dirs/state 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/server/.dirs/runtime 2763s ok 8 /gdbus/peer-to-peer/invalid/server 2763s # Start of conn tests 2763s # Start of stream tests 2763s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/home 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/cache 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config1:/tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config2 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/config 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data1:/tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data2 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/data 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/state 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/runtime 2763s ok 9 /gdbus/peer-to-peer/invalid/conn/stream/async 2763s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/home 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/cache 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config1:/tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config2 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/config 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data1:/tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data2 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/data 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/state 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/runtime 2763s ok 10 /gdbus/peer-to-peer/invalid/conn/stream/sync 2763s # End of stream tests 2763s # Start of addr tests 2763s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/home 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/cache 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config1:/tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config2 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/config 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data1:/tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data2 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/data 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/state 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/runtime 2763s ok 11 /gdbus/peer-to-peer/invalid/conn/addr/async 2763s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/home 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/cache 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config1:/tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config2 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/config 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data1:/tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data2 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/data 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/state 2763s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_7IT5J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/runtime 2763s ok 12 /gdbus/peer-to-peer/invalid/conn/addr/sync 2763s # End of addr tests 2763s # End of conn tests 2763s # End of invalid tests 2763s # End of peer-to-peer tests 2763s # End of gdbus tests 2763s ok - glib/gdbus-peer.test 2763s # Running test: glib/override.test 2763s TAP version 14 2763s # random seed: R02S61ce82eeacbdaa5c17450d064b977c33 2763s 1..1 2763s # Start of gobject tests 2763s # *** emitting foo on a TestA instance 2763s # Expecting: TestA::foo,TestI::foo 2763s # Got: TestA::foo,TestI::foo 2763s # *** emitting bar on a TestA instance 2763s # Expecting: TestA::bar 2763s # Got: TestA::bar 2763s # *** emitting baz on a TestA instance 2763s # Expecting: TestA::baz 2763s # Got: TestA::baz 2763s # *** emitting foo on a TestB instance 2763s # Expecting: TestB::foo,TestA::foo,TestI::foo 2763s # Got: TestB::foo,TestA::foo,TestI::foo 2763s # *** emitting bar on a TestB instance 2763s # Expecting: TestB::bar,TestA::bar 2763s # Got: TestB::bar,TestA::bar 2763s # *** emitting baz on a TestB instance 2763s # Expecting: TestB::baz,TestA::baz 2763s # Got: TestB::baz,TestA::baz 2763s # *** emitting foo on a TestC instance 2763s # Expecting: TestC::foo,TestB::foo,TestA::foo,TestI::foo 2763s # Got: TestC::foo,TestB::foo,TestA::foo,TestI::foo 2763s # *** emitting bar on a TestC instance 2763s # Expecting: TestC::bar,TestB::bar,TestA::bar 2763s # Got: TestC::bar,TestB::bar,TestA::bar 2763s # *** emitting baz on a TestC instance 2763s # Expecting: TestC::baz,TestB::baz,TestA::baz 2763s # Got: TestC::baz,TestB::baz,TestA::baz 2763s ok 1 /gobject/override 2763s # End of gobject tests 2763s ok - glib/override.test 2763s # Running test: glib/node.test 2763s ok - glib/node.test 2763s TAP version 14 2763s # random seed: R02Sdbb844b3aabc00d15c8a1858449a29b5 2763s 1..6 2763s # Start of node tests 2763s ok 1 /node/allocation 2763s ok 2 /node/construction 2763s ok 3 /node/traversal 2763s ok 4 /node/misc 2763s ok 5 /node/unlink 2763s ok 6 /node/copy 2763s # End of node tests 2763s # Running test: glib/power-profile-monitor.test 2763s TAP version 14 2763s # random seed: R02S74926c9dbb109af261aa50afd2e8145a 2763s 1..1 2763s # Start of power-profile-monitor tests 2763s # GLib-GIO-DEBUG: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals 2763s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ‘gio-power-profile-monitor’ 2763s ok 1 /power-profile-monitor/default 2763s # End of power-profile-monitor tests 2763s ok - glib/power-profile-monitor.test 2763s # Running test: glib/string.test 2763s TAP version 14 2763s # random seed: R02Sc98afccadde377385e9b3a58de148efd 2763s ok - glib/string.test 2763s # Running test: glib/markup-collect.test 2763s 1..25 2763s # Start of string tests 2763s ok 1 /string/chunks 2763s ok 2 /string/chunk-insert 2763s ok 3 /string/new 2763s ok 4 /string/printf 2763s ok 5 /string/assign 2763s ok 6 /string/append-c 2763s ok 7 /string/append 2763s ok 8 /string/append-vprintf 2763s ok 9 /string/prepend-c 2763s ok 10 /string/prepend 2763s ok 11 /string/insert 2763s ok 12 /string/insert-unichar 2763s ok 13 /string/equal 2763s ok 14 /string/truncate 2763s ok 15 /string/overwrite 2763s ok 16 /string/nul-handling 2763s ok 17 /string/up-down 2763s ok 18 /string/set-size 2763s ok 19 /string/to-bytes 2763s # 0: Replacing "bar" with "baz" (limit 0) in "foo bar foo baz foo bar foobarbaz" 2763s # -> 3 replacements, "foo baz foo baz foo baz foobazbaz" 2763s # 1: Replacing "baz" with "bar" (limit 3) in "foo baz foo baz foo baz foobazbaz" 2763s # -> 3 replacements, "foo bar foo bar foo bar foobazbaz" 2763s # 2: Replacing "foobar" with "bar" (limit 1) in "foo bar foo bar foo bar foobazbaz" 2763s # -> 0 replacements, "foo bar foo bar foo bar foobazbaz" 2763s # 3: Replacing "a" with "abcdefghijkl" (limit 0) in "aaaaaaaa" 2763s # -> 8 replacements, "abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl" 2763s # 4: Replacing "$LIB" with "lib32" (limit 0) in "/usr/$LIB/libMangoHud.so" 2763s # -> 1 replacements, "/usr/lib32/libMangoHud.so" 2763s # 5: Replacing "o" with "" (limit 0) in "food for foals" 2763s # -> 4 replacements, "fd fr fals" 2763s # 6: Replacing "a" with "aaa" (limit 0) in "aaa" 2763s # -> 3 replacements, "aaaaaaaaa" 2763s # 7: Replacing "a" with "" (limit 0) in "aaa" 2763s # -> 3 replacements, "" 2763s # 8: Replacing "aa" with "bb" (limit 0) in "aaa" 2763s # -> 1 replacements, "bba" 2763s # 9: Replacing "" with "bar" (limit 0) in "foo" 2763s # -> 4 replacements, "barfbarobarobar" 2763s # 10: Replacing "" with "bar" (limit 1) in "foo" 2763s # -> 1 replacements, "barfoo" 2763s # 11: Replacing "" with "bar" (limit 2) in "foo" 2763s # -> 2 replacements, "barfbaroo" 2763s # 12: Replacing "" with "bar" (limit 3) in "foo" 2763s # -> 3 replacements, "barfbarobaro" 2763s # 13: Replacing "" with "bar" (limit 4) in "foo" 2763s # -> 4 replacements, "barfbarobarobar" 2763s # 14: Replacing "" with "bar" (limit 5) in "foo" 2763s # -> 4 replacements, "barfbarobarobar" 2763s # 15: Replacing "" with "x" (limit 0) in "" 2763s # -> 1 replacements, "x" 2763s # 16: Replacing "" with "" (limit 0) in "" 2763s # -> 1 replacements, "" 2763s # 17: Replacing "" with "aaaaaaaaaaaa" (limit 0) in "bbbbbbbbb" 2763s # -> 10 replacements, "aaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaa" 2763s ok 20 /string/replace 2763s ok 21 /string/steal 2763s ok 22 /string/new-take 2763s ok 23 /string/copy 2763s ok 24 /string/sized-new 2763s # Start of new-take tests 2763s ok 25 /string/new-take/null 2763s # End of new-take tests 2763s # End of string tests 2763s TAP version 14 2763s # random seed: R02Sa26754750bc8df5fab6b05fd1407d840 2763s 1..21 2763s # Start of markup tests 2763s # Start of collect tests 2763s ok 1 /markup/collect/0 2763s ok 2 /markup/collect/1 2763s ok 3 /markup/collect/2 2763s ok 4 /markup/collect/3 2763s ok 5 /markup/collect/4 2763s ok 6 /markup/collect/5 2763s ok 7 /markup/collect/6 2763s ok 8 /markup/collect/7 2763s ok 9 /markup/collect/8 2763s ok 10 /markup/collect/9 2763s ok 11 /markup/collect/10 2763s ok 12 /markup/collect/11 2763s ok 13 /markup/collect/12 2763s ok 14 /markup/collect/13 2763s ok 15 /markup/collect/14 2763s ok 16 /markup/collect/15 2763s ok - glib/markup-collect.test 2763s # Running test: glib/option-context.test 2763s ok 17 /markup/collect/16 2763s ok 18 /markup/collect/17 2763s ok 19 /markup/collect/18 2763s ok 20 /markup/collect/19 2763s ok 21 /markup/collect/cleanup 2763s # End of collect tests 2763s # End of markup tests 2763s TAP version 14 2763s # random seed: R02Sc81a472fecdc89ff66f2ad81569b439c 2763s 1..61 2763s # Start of option tests 2763s ok 1 /option/basic 2763s ok 2 /option/translate 2763s ok 3 /option/strict-posix 2763s # Testing command: program --double abc 2763s # Testing command: program --double 2e309 2763s # Testing command: program --int abc 2763s # Testing command: program --int 99999999999999999999999999999999999 2763s # Testing command: program --int64 abc 2763s # Testing command: program --int64 99999999999999999999999999999999999 2763s ok 4 /option/parsing-errors 2763s # Start of help tests 2763s ok 5 /option/help/options 2763s ok 6 /option/help/no-options 2763s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=697652 2763s ok 7 /option/help/no-help-options 2763s # Usage: 2763s # /usr/libexec/installed-tests/glib/option-context [OPTION…] blabla 2763s # 2763s # Summary 2763s # 2763s # Help Options: 2763s # -h, --help Show help options 2763s # 2763s # Application Options: 2763s # -t, --test=Argument to use in test (deprecated) Test tests 2763s # --test2 Tests also 2763s # 2763s # Description 2763s # 2763s ok 8 /option/help/deprecated 2763s ok 9 /option/help/main-get_help-format 2763s ok 10 /option/help/group-get_help-format 2763s # End of help tests 2763s # Start of group tests 2763s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=504142 2764s ok 11 /option/group/captions 2764s # slow test /option/group/captions executed in 0.82 secs 2764s ok 12 /option/group/main 2764s ok 13 /option/group/error-hook 2764s ok 14 /option/group/parse 2764s # Start of captions tests 2764s # Start of subprocess tests 2764s # End of subprocess tests 2764s # End of captions tests 2764s # End of group tests 2764s # Start of restoration tests 2764s ok 15 /option/restoration/int 2764s ok 16 /option/restoration/string 2764s ok 17 /option/restoration/boolean 2764s # End of restoration tests 2764s # Start of arg tests 2764s ok 18 /option/arg/reverse-string 2764s ok 19 /option/arg/optional-int 2764s # Start of repetition tests 2764s ok 20 /option/arg/repetition/int 2764s ok 21 /option/arg/repetition/string 2764s ok 22 /option/arg/repetition/filename 2764s ok 23 /option/arg/repetition/double 2764s ok 24 /option/arg/repetition/locale 2764s ok 25 /option/arg/repetition/int64 2764s # End of repetition tests 2764s # Start of array tests 2764s ok 26 /option/arg/array/string 2764s # End of array tests 2764s # Start of callback tests 2764s ok 27 /option/arg/callback/string 2764s ok 28 /option/arg/callback/count 2764s ok 29 /option/arg/callback/optional1 2764s ok 30 /option/arg/callback/optional2 2764s ok 31 /option/arg/callback/optional3 2764s ok 32 /option/arg/callback/optional4 2764s ok 33 /option/arg/callback/optional5 2764s ok 34 /option/arg/callback/optional6 2764s ok 35 /option/arg/callback/optional7 2764s ok 36 /option/arg/callback/optional8 2764s # End of callback tests 2764s # Start of remaining tests 2764s ok 37 /option/arg/remaining/callback 2764s ok 38 /option/arg/remaining/callback-false 2764s ok 39 /option/arg/remaining/non-option 2764s ok 40 /option/arg/remaining/separator 2764s ok 41 /option/arg/remaining/array 2764s # End of remaining tests 2764s # Start of ignore tests 2764s ok 42 /option/arg/ignore/long 2764s ok 43 /option/arg/ignore/short 2764s ok 44 /option/arg/ignore/arg 2764s # End of ignore tests 2764s # Start of rest tests 2764s ok 45 /option/arg/rest/non-option 2764s ok 46 /option/arg/rest/separator1 2764s ok 47 /option/arg/rest/separator2 2764s ok 48 /option/arg/rest/separator3 2764s ok 49 /option/arg/rest/separator4 2764s ok 50 /option/arg/rest/separator5 2764s # End of rest tests 2764s # End of arg tests 2764s # Start of context tests 2764s ok 51 /option/context/add 2764s ok 52 /option/context/empty2 2764s ok 53 /option/context/empty3 2764s # End of context tests 2764s # Start of bug tests 2764s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=166609 2764s ok 54 /option/bug/unknown-short 2764s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=168008 2764s ok 55 /option/bug/lonely-dash 2764s ok 56 /option/bug/triple-dash 2764s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=305576 2764s ok 57 /option/bug/missing-arg 2764s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=577638 2764s ok 58 /option/bug/dash-arg 2764s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=729563 2764s ok 59 /option/bug/short-remaining 2764s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=646926 2764s ok 60 /option/bug/double-free 2764s ok 61 /option/bug/double-zero 2764s # End of bug tests 2764s # End of option tests 2764s ok - glib/option-context.test 2764s # Running test: glib/guuid.test 2764s ok - glib/guuid.test 2764s TAP version 14 2764s # random seed: R02S22b5a1f5afdfe7b4a47a1c3cd8af5c46 2764s 1..2 2764s # Start of uuid tests 2764s ok 1 /uuid/string 2764s ok 2 /uuid/random 2764s # End of uuid tests 2764s # Running test: glib/utf8-pointer.test 2764s TAP version 14 2764s # random seed: R02Sedf6cc529256202d2cd25e6d11f3be42 2764s 1..3 2764s # Start of utf8 tests 2764s # Executing: glib/utf8-pointer.test 2769s # Executing: glib/utf8-pointer.test 2770s ok - glib/utf8-pointer.test 2770s # Running test: glib/gdatetime.test 2770s ok 1 /utf8/offsets 2770s # slow test /utf8/offsets executed in 5.78 secs 2770s ok 2 /utf8/lengths 2770s ok 3 /utf8/find 2770s # End of utf8 tests 2770s TAP version 14 2770s # random seed: R02S0b405cb07c225b5aceded8bc0b198970 2770s 1..68 2770s # Start of GDateTime tests 2770s # Bug Reference: http://bugzilla.gnome.org/702674 2770s ok 1 /GDateTime/invalid 2770s ok 2 /GDateTime/add_days 2770s ok 3 /GDateTime/add_full 2770s ok 4 /GDateTime/add_hours 2770s ok 5 /GDateTime/add_minutes 2770s ok 6 /GDateTime/add_months 2770s ok 7 /GDateTime/add_seconds 2770s ok 8 /GDateTime/add_weeks 2770s ok 9 /GDateTime/add_years 2770s ok 10 /GDateTime/compare 2770s ok 11 /GDateTime/diff 2770s ok 12 /GDateTime/equal 2770s ok 13 /GDateTime/get_day_of_week 2770s ok 14 /GDateTime/get_day_of_month 2770s ok 15 /GDateTime/get_day_of_year 2770s ok 16 /GDateTime/get_hour 2770s ok 17 /GDateTime/get_microsecond 2770s ok 18 /GDateTime/get_minute 2770s ok 19 /GDateTime/get_month 2770s ok 20 /GDateTime/get_second 2770s ok 21 /GDateTime/get_utc_offset 2770s ok 22 /GDateTime/get_year 2770s ok 23 /GDateTime/hash 2770s ok 24 /GDateTime/new_from_unix 2770s ok 25 /GDateTime/new_from_unix_utc 2770s ok 26 /GDateTime/new_from_timeval 2770s ok 27 /GDateTime/new_from_timeval_utc 2770s ok 28 /GDateTime/new_from_iso8601 2770s ok 29 /GDateTime/new_full 2770s ok 30 /GDateTime/now 2770s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2215 2770s ok 31 /GDateTime/test-6-days-until-end-of-the-month 2770s # %a -> expected: Sat 2770s # %a -> actual: Sat 2770s # %A -> expected: Saturday 2770s # %A -> actual: Saturday 2770s # %b -> expected: Oct 2770s # %b -> actual: Oct 2770s # %B -> expected: October 2770s # %B -> actual: October 2770s # %d -> expected: 24 2770s # %d -> actual: 24 2770s # %d -> expected: 01 2770s # %d -> actual: 01 2770s # %e -> expected: 24 2770s # %e -> actual: 24 2770s # %e -> expected:  1 2770s # %e -> actual:  1 2770s # %f -> expected: 001000 2770s # %f -> actual: 001000 2770s # %h -> expected: Oct 2770s # %h -> actual: Oct 2770s # %H -> expected: 00 2770s # %H -> actual: 00 2770s # %H -> expected: 15 2770s # %H -> actual: 15 2770s # %I -> expected: 12 2770s # %I -> actual: 12 2770s # %I -> expected: 12 2770s # %I -> actual: 12 2770s # %I -> expected: 03 2770s # %I -> actual: 03 2770s # %j -> expected: 297 2770s # %j -> actual: 297 2770s # %k -> expected:  0 2770s # %k -> actual:  0 2770s # %k -> expected: 13 2770s # %k -> actual: 13 2770s # %l -> expected: 12 2770s # %l -> actual: 12 2770s # %I -> expected: 12 2770s # %I -> actual: 12 2770s # %l -> expected:  1 2770s # %l -> actual:  1 2770s # %l -> expected: 10 2770s # %l -> actual: 10 2770s # %m -> expected: 10 2770s # %m -> actual: 10 2770s # %M -> expected: 00 2770s # %M -> actual: 00 2770s # %p -> expected: AM 2770s # %p -> actual: AM 2770s # %p -> expected: PM 2770s # %p -> actual: PM 2770s # %P -> expected: am 2770s # %P -> actual: am 2770s # %P -> expected: pm 2770s # %P -> actual: pm 2770s # %r -> expected: 12:00:00 AM 2770s # %r -> actual: 12:00:00 AM 2770s # %r -> expected: 01:13:13 PM 2770s # %r -> actual: 01:13:13 PM 2770s # %R -> expected: 00:00 2770s # %R -> actual: 00:00 2770s # %R -> expected: 13:13 2770s # %R -> actual: 13:13 2770s # %S -> expected: 00 2770s # %S -> actual: 00 2770s # %t -> expected: 2770s # %t -> actual: 2770s # %u -> expected: 6 2770s # %u -> actual: 6 2770s # %x -> expected: 10/24/09 2770s # %x -> actual: 10/24/09 2770s # %X -> expected: 00:00:00 2770s # %X -> actual: 00:00:00 2770s # %X -> expected: 13:14:15 2770s # %X -> actual: 13:14:15 2770s # %y -> expected: 09 2770s # %y -> actual: 09 2770s # %Y -> expected: 2009 2770s # %Y -> actual: 2009 2770s # %% -> expected: % 2770s # %% -> actual: % 2770s # % -> expected: 2770s # % -> actual: 2770s # %9 -> expected: (null) 2770s # %9 -> actual: (null) 2770s # %Z -> expected: UTC 2770s # %Z -> actual: UTC 2770s # %#Z %Z -> expected: utc UTC 2770s # %#Z %Z -> actual: utc UTC 2770s ok 32 /GDateTime/printf 2770s # %a -> expected: 土 2770s # %a -> actual: 土 2770s # %A -> expected: 土曜日 2770s # %A -> actual: 土曜日 2770s # %b -> expected: 10月 2770s # %b -> actual: 10月 2770s # %B -> expected: 10月 2770s # %B -> actual: 10月 2770s # %c -> expected: 2009年10月24日 00時00分00秒 2770s # %c -> actual: 2009年10月24日 00時00分00秒 2770s # %C -> expected: 20 2770s # %C -> actual: 20 2770s # %d -> expected: 24 2770s # %d -> actual: 24 2770s # %d -> expected: 01 2770s # %d -> actual: 01 2770s # %e -> expected: 24 2770s # %e -> actual: 24 2770s # %h -> expected: 10月 2770s # %h -> actual: 10月 2770s # %H -> expected: 00 2770s # %H -> actual: 00 2770s # %H -> expected: 15 2770s # %H -> actual: 15 2770s # %I -> expected: 12 2770s # %I -> actual: 12 2770s # %I -> expected: 12 2770s # %I -> actual: 12 2770s # %I -> expected: 03 2770s # %I -> actual: 03 2770s # %j -> expected: 297 2770s # %j -> actual: 297 2770s # %k -> expected:  0 2770s # %k -> actual:  0 2770s # %k -> expected: 13 2770s # %k -> actual: 13 2770s # %l -> expected: 12 2770s # %l -> actual: 12 2770s # %I -> expected: 12 2770s # %I -> actual: 12 2770s # %l -> expected:  1 2770s # %l -> actual:  1 2770s # %l -> expected: 10 2770s # %l -> actual: 10 2770s # %m -> expected: 10 2770s # %m -> actual: 10 2770s # %M -> expected: 00 2770s # %M -> actual: 00 2770s # %p -> expected: 午前 2770s # %p -> actual: 午前 2770s # %p -> expected: 午後 2770s # %p -> actual: 午後 2770s # %P -> expected: 午前 2770s # %P -> actual: 午前 2770s # %P -> expected: 午後 2770s # %P -> actual: 午後 2770s # %r -> expected: 午前12時00分00秒 2770s # %r -> actual: 午前12時00分00秒 2770s # %r -> expected: 午後01時13分13秒 2770s # %r -> actual: 午後01時13分13秒 2770s # %R -> expected: 00:00 2770s # %R -> actual: 00:00 2770s # %R -> expected: 13:13 2770s # %R -> actual: 13:13 2770s # %S -> expected: 00 2770s # %S -> actual: 00 2770s # %t -> expected: 2770s # %t -> actual: 2770s # %u -> expected: 6 2770s # %u -> actual: 6 2770s # %x -> expected: 2009年10月24日 2770s # %x -> actual: 2009年10月24日 2770s # %X -> expected: 00時00分00秒 2770s # %X -> actual: 00時00分00秒 2770s # %X -> expected: 13時14分15秒 2770s # %X -> actual: 13時14分15秒 2770s # %y -> expected: 09 2770s # %y -> actual: 09 2770s # %Y -> expected: 2009 2770s # %Y -> actual: 2009 2770s # %% -> expected: % 2770s # %% -> actual: % 2770s # % -> expected: 2770s # % -> actual: 2770s # %9 -> expected: (null) 2770s # %9 -> actual: (null) 2770s # %Ec -> expected: 2009年10月24日 00時00分00秒 2770s # %Ec -> actual: 2009年10月24日 00時00分00秒 2770s # %EC -> expected: 20 2770s # %EC -> actual: 20 2770s # %Ex -> expected: 2009年10月24日 2770s # %Ex -> actual: 2009年10月24日 2770s # %EX -> expected: 00時00分00秒 2770s # %EX -> actual: 00時00分00秒 2770s # %Ey -> expected: 09 2770s # %Ey -> actual: 09 2770s # %EY -> expected: 2009 2770s # %EY -> actual: 2009 2770s ok 33 /GDateTime/non_utf8_printf 2770s # ąśćł -> expected: ąśćł 2770s # ąśćł -> actual: ąśćł 2770s # %H∶%M -> expected: 23∶15 2770s # %H∶%M -> actual: 23∶15 2770s # %H∶%M -> expected: 23∶15 2770s # %H∶%M -> actual: 23∶15 2770s ok 34 /GDateTime/format_unrepresentable 2770s ok 35 /GDateTime/format_iso8601 2771s ok 36 /GDateTime/strftime 2771s # slow test /GDateTime/strftime executed in 1.06 secs 2771s # %d -> expected: 01 2771s # %d -> actual: 01 2771s # %_d -> expected: 1 2771s # %_d -> actual: 1 2771s # %-d -> expected: 1 2771s # %-d -> actual: 1 2771s # %0d -> expected: 01 2771s # %0d -> actual: 01 2771s # %d -> expected: 21 2771s # %d -> actual: 21 2771s # %_d -> expected: 21 2771s # %_d -> actual: 21 2771s # %-d -> expected: 21 2771s # %-d -> actual: 21 2771s # %0d -> expected: 21 2771s # %0d -> actual: 21 2771s # %e -> expected:  1 2771s # %e -> actual:  1 2771s # %_e -> expected: 1 2771s # %_e -> actual: 1 2771s # %-e -> expected: 1 2771s # %-e -> actual: 1 2771s # %0e -> expected: 01 2771s # %0e -> actual: 01 2771s # %e -> expected: 21 2771s # %e -> actual: 21 2771s # %_e -> expected: 21 2771s # %_e -> actual: 21 2771s # %-e -> expected: 21 2771s # %-e -> actual: 21 2771s # %0e -> expected: 21 2771s # %0e -> actual: 21 2771s # %a -> expected: Thu 2771s # %a -> actual: Thu 2771s # %^a -> expected: THU 2771s # %^a -> actual: THU 2771s # %#a -> expected: THU 2771s # %#a -> actual: THU 2771s # %A -> expected: Thursday 2771s # %A -> actual: Thursday 2771s # %^A -> expected: THURSDAY 2771s # %^A -> actual: THURSDAY 2771s # %#A -> expected: THURSDAY 2771s # %#A -> actual: THURSDAY 2771s # %b -> expected: Jan 2771s # %b -> actual: Jan 2771s # %^b -> expected: JAN 2771s # %^b -> actual: JAN 2771s # %#b -> expected: JAN 2771s # %#b -> actual: JAN 2771s # %B -> expected: January 2771s # %B -> actual: January 2771s # %^B -> expected: JANUARY 2771s # %^B -> actual: JANUARY 2771s # %#B -> expected: JANUARY 2771s # %#B -> actual: JANUARY 2771s # %h -> expected: Jan 2771s # %h -> actual: Jan 2771s # %^h -> expected: JAN 2771s # %^h -> actual: JAN 2771s # %#h -> expected: JAN 2771s # %#h -> actual: JAN 2771s # %Z -> expected: UTC 2771s # %Z -> actual: UTC 2771s # %^Z -> expected: UTC 2771s # %^Z -> actual: UTC 2771s # %#Z -> expected: utc 2771s # %#Z -> actual: utc 2771s # %H -> expected: 01 2771s # %H -> actual: 01 2771s # %_H -> expected: 1 2771s # %_H -> actual: 1 2771s # %-H -> expected: 1 2771s # %-H -> actual: 1 2771s # %0H -> expected: 01 2771s # %0H -> actual: 01 2771s # %H -> expected: 21 2771s # %H -> actual: 21 2771s # %_H -> expected: 21 2771s # %_H -> actual: 21 2771s # %-H -> expected: 21 2771s # %-H -> actual: 21 2771s # %0H -> expected: 21 2771s # %0H -> actual: 21 2771s # %I -> expected: 01 2771s # %I -> actual: 01 2771s # %_I -> expected: 1 2771s # %_I -> actual: 1 2771s # %-I -> expected: 1 2771s # %-I -> actual: 1 2771s # %0I -> expected: 01 2771s # %0I -> actual: 01 2771s # %I -> expected: 11 2771s # %I -> actual: 11 2771s # %_I -> expected: 11 2771s # %_I -> actual: 11 2771s # %-I -> expected: 11 2771s # %-I -> actual: 11 2771s # %0I -> expected: 11 2771s # %0I -> actual: 11 2771s # %k -> expected:  1 2771s # %k -> actual:  1 2771s # %_k -> expected: 1 2771s # %_k -> actual: 1 2771s # %-k -> expected: 1 2771s # %-k -> actual: 1 2771s # %0k -> expected: 01 2771s # %0k -> actual: 01 2771s # %l -> expected:  1 2771s # %l -> actual:  1 2771s # %_l -> expected: 1 2771s # %_l -> actual: 1 2771s # %-l -> expected: 1 2771s # %-l -> actual: 1 2771s # %0l -> expected: 01 2771s # %0l -> actual: 01 2771s # %l -> expected: 11 2771s # %l -> actual: 11 2771s # %_l -> expected: 11 2771s # %_l -> actual: 11 2771s # %-l -> expected: 11 2771s # %-l -> actual: 11 2771s # %0l -> expected: 11 2771s # %0l -> actual: 11 2771s # %p -> expected: AM 2771s # %p -> actual: AM 2771s # %^p -> expected: AM 2771s # %^p -> actual: AM 2771s # %#p -> expected: am 2771s # %#p -> actual: am 2771s # %P -> expected: am 2771s # %P -> actual: am 2771s # %^P -> expected: AM 2771s # %^P -> actual: AM 2771s # %#P -> expected: am 2771s # %#P -> actual: am 2771s # %OH -> expected: ۲۳ 2771s # %OH -> actual: ۲۳ 2771s # %OI -> expected: ۱۱ 2771s # %OI -> actual: ۱۱ 2771s # %OM -> expected: ۰۰ 2771s # %OM -> actual: ۰۰ 2771s # %Om -> expected: ۰۷ 2771s # %Om -> actual: ۰۷ 2771s # %0Om -> expected: ۰۷ 2771s # %0Om -> actual: ۰۷ 2771s # %-Om -> expected: ۷ 2771s # %-Om -> actual: ۷ 2771s # %_Om -> expected: ۷ 2771s # %_Om -> actual: ۷ 2771s # %c -> expected: thu 01 jan 2009 00:00:00 utc 2771s # %c -> actual: Thu 01 Jan 2009 00:00:00 UTC 2771s # %Ec -> expected: thu 01 jan 2009 00:00:00 utc 2771s # %Ec -> actual: Thu 01 Jan 2009 00:00:00 UTC 2771s # %C -> expected: 20 2771s # %C -> actual: 20 2771s # %EC -> expected: 20 2771s # %EC -> actual: 20 2771s # %x -> expected: 02/01/09 2771s # %x -> actual: 02/01/09 2771s # %Ex -> expected: 02/01/09 2771s # %Ex -> actual: 02/01/09 2771s # %X -> expected: 01:02:03 2771s # %X -> actual: 01:02:03 2771s # %EX -> expected: 01:02:03 2771s # %EX -> actual: 01:02:03 2771s # %y -> expected: 09 2771s # %y -> actual: 09 2771s # %Ey -> expected: 09 2771s # %Ey -> actual: 09 2771s # %Y -> expected: 2009 2771s # %Y -> actual: 2009 2771s # %EY -> expected: 2009 2771s # %EY -> actual: 2009 2771s ok 37 /GDateTime/modifiers # SKIP locale gu_IN not available, skipping O modifier tests 2771s # Bug Reference: http://bugzilla.gnome.org/749206 2771s # %B -> expected: January 2771s # %B -> actual: January 2771s # %OB -> expected: February 2771s # %OB -> actual: February 2771s # %b -> expected: Mar 2771s # %b -> actual: Mar 2771s # %Ob -> expected: Apr 2771s # %Ob -> actual: Apr 2771s # %h -> expected: May 2771s # %h -> actual: May 2771s # %Oh -> expected: Jun 2771s # %Oh -> actual: Jun 2771s # %B -> expected: Juli 2771s # %B -> actual: Juli 2771s # %OB -> expected: August 2771s # %OB -> actual: August 2771s # %b -> expected: Sep 2771s # %b -> actual: Sep 2771s # %Ob -> expected: Okt 2771s # %Ob -> actual: Okt 2771s # %h -> expected: Nov 2771s # %h -> actual: Nov 2771s # %Oh -> expected: Dez 2771s # %Oh -> actual: Dez 2771s # %B -> expected: enero 2771s # %B -> actual: enero 2771s # %OB -> expected: febrero 2771s # %OB -> actual: febrero 2771s # %b -> expected: mar 2771s # %b -> actual: mar 2771s # %Ob -> expected: abr 2771s # %Ob -> actual: abr 2771s # %h -> expected: may 2771s # %h -> actual: may 2771s # %Oh -> expected: jun 2771s # %Oh -> actual: jun 2771s # %B -> expected: juillet 2771s # %B -> actual: juillet 2771s # %OB -> expected: août 2771s # %OB -> actual: août 2771s # %b -> expected: sept. 2771s # %b -> actual: sept. 2771s # %Ob -> expected: oct. 2771s # %Ob -> actual: oct. 2771s # %h -> expected: nov. 2771s # %h -> actual: nov. 2771s # %Oh -> expected: déc. 2771s # %Oh -> actual: déc. 2771s # %B -> expected: Ιανουαρίου 2771s # %B -> actual: Ιανουαρίου 2771s # %B -> expected: Φεβρουαρίου 2771s # %B -> actual: Φεβρουαρίου 2771s # %B -> expected: Μαρτίου 2771s # %B -> actual: Μαρτίου 2771s # %OB -> expected: Απρίλιος 2771s # %OB -> actual: Απρίλιος 2771s # %OB -> expected: Μάιος 2771s # %OB -> actual: Μάιος 2771s # %OB -> expected: Ιούνιος 2771s # %OB -> actual: Ιούνιος 2771s # %b -> expected: Ιουλ 2771s # %b -> actual: Ιουλ 2771s # %Ob -> expected: Αύγ 2771s # %Ob -> actual: Αύγ 2771s # %B -> expected: svibnja 2771s # %B -> actual: svibnja 2771s # %B -> expected: lipnja 2771s # %B -> actual: lipnja 2771s # %B -> expected: srpnja 2771s # %B -> actual: srpnja 2771s # %OB -> expected: Kolovoz 2771s # %OB -> actual: kolovoz 2771s # %OB -> expected: Rujan 2771s # %OB -> actual: rujan 2771s # %OB -> expected: Listopad 2771s # %OB -> actual: listopad 2771s # %b -> expected: Stu 2771s # %b -> actual: stu 2771s # %Ob -> expected: Pro 2771s # %Ob -> actual: pro 2771s # %B -> expected: sausio 2771s # %B -> actual: sausio 2771s # %B -> expected: vasario 2771s # %B -> actual: vasario 2771s # %B -> expected: kovo 2771s # %B -> actual: kovo 2771s # %OB -> expected: balandis 2771s # %OB -> actual: balandis 2771s # %OB -> expected: gegužė 2771s # %OB -> actual: gegužė 2771s # %OB -> expected: birželis 2771s # %OB -> actual: birželis 2771s # %b -> expected: liep. 2771s # %b -> actual: liep. 2771s # %Ob -> expected: rugp. 2771s # %Ob -> actual: rugp. 2771s # %B -> expected: maja 2771s # %B -> actual: maja 2771s # %B -> expected: czerwca 2771s # %B -> actual: czerwca 2771s # %B -> expected: lipca 2771s # %B -> actual: lipca 2771s # %OB -> expected: sierpień 2771s # %OB -> actual: sierpień 2771s # %OB -> expected: wrzesień 2771s # %OB -> actual: wrzesień 2771s # %OB -> expected: październik 2771s # %OB -> actual: październik 2771s # %b -> expected: lis 2771s # %b -> actual: lis 2771s # %Ob -> expected: gru 2771s # %Ob -> actual: gru 2771s # %B -> expected: января 2771s # %B -> actual: января 2771s # %B -> expected: февраля 2771s # %B -> actual: февраля 2771s # %B -> expected: марта 2771s # %B -> actual: марта 2771s # %OB -> expected: Апрель 2771s # %OB -> actual: Апрель 2771s # %OB -> expected: Май 2771s # %OB -> actual: Май 2771s # %OB -> expected: Июнь 2771s # %OB -> actual: Июнь 2771s # %b -> expected: июл 2771s # %b -> actual: июл 2771s # %Ob -> expected: авг 2771s # %Ob -> actual: авг 2771s # %b -> expected: мая 2771s # %b -> actual: мая 2771s # %Ob -> expected: май 2771s # %Ob -> actual: май 2771s ok 38 /GDateTime/month_names 2771s ok 39 /GDateTime/to_local 2771s ok 40 /GDateTime/to_unix 2771s ok 41 /GDateTime/to_timeval 2771s ok 42 /GDateTime/to_utc 2771s ok 43 /GDateTime/now_utc 2771s ok 44 /GDateTime/dst 2771s # Bug Reference: http://bugzilla.gnome.org/642935 2771s ok 45 /GDateTime/test_z 2774s # Executing: glib/gdatetime.test 2779s # Executing: glib/gdatetime.test 2782s ok 46 /GDateTime/test-all-dates 2782s # slow test /GDateTime/test-all-dates executed in 10.53 secs 2782s ok 47 /GDateTime/unix_usec 2782s # Start of new_from_unix tests 2782s # Bug Reference: http://bugzilla.gnome.org/782089 2782s ok 48 /GDateTime/new_from_unix/overflow 2782s # End of new_from_unix tests 2782s # Start of new_from_timeval tests 2782s # Bug Reference: http://bugzilla.gnome.org/782089 2782s # Maximum supported GTimeVal.tv_sec = 253402300799 2782s ok 49 /GDateTime/new_from_timeval/overflow 2782s # End of new_from_timeval tests 2782s # Start of new_from_iso8601 tests 2782s # /GDateTime/new_from_iso8601/2 summary: Further parser tests for g_date_time_new_from_iso8601(), checking success and failure using test vectors. 2782s # Vector 0: 1990-11-01T10:21:17Z 2782s # Vector 1: 19901101T102117Z 2782s # Vector 2: 1970-01-01T00:00:17.12Z 2782s # Vector 3: 1970-01-01T00:00:17.1234Z 2782s # Vector 4: 1970-01-01T00:00:17.123456Z 2782s # Vector 5: 1980-02-22T12:36:00+02:00 2782s # Vector 6: 1990-12-31T15:59:60-08:00 2782s # Vector 7: 2782s # Vector 8: x 2782s # Vector 9: 123x 2782s # Vector 10: 2001-10+x 2782s # Vector 11: 1980-02-22T 2782s # Vector 12: 2001-10-08Tx 2782s # Vector 13: 2001-10-08T10:11x 2782s # Vector 14: Wed Dec 19 17:20:20 GMT 2007 2782s # Vector 15: 1980-02-22T10:36:00Zulu 2782s # Vector 16: 2T0+819855292164632335 2782s # Vector 17: 2018-08-03T14:08:05.446178377+01:00 2782s # Vector 18: 2147483648-08-03T14:08:05.446178377+01:00 2782s # Vector 19: 2018-13-03T14:08:05.446178377+01:00 2782s # Vector 20: 2018-00-03T14:08:05.446178377+01:00 2782s # Vector 21: 2018-08-00T14:08:05.446178377+01:00 2782s # Vector 22: 2018-08-32T14:08:05.446178377+01:00 2782s # Vector 23: 2018-08-03T24:08:05.446178377+01:00 2782s # Vector 24: 2018-08-03T14:60:05.446178377+01:00 2782s # Vector 25: 2018-08-03T14:08:63.446178377+01:00 2782s # Vector 26: 2018-08-03T14:08:05.446178377+100:00 2782s # Vector 27: 20180803T140805.446178377+0100 2782s # Vector 28: 21474836480803T140805.446178377+0100 2782s # Vector 29: 20181303T140805.446178377+0100 2782s # Vector 30: 20180003T140805.446178377+0100 2782s # Vector 31: 20180800T140805.446178377+0100 2782s # Vector 32: 20180832T140805.446178377+0100 2782s # Vector 33: 20180803T240805.446178377+0100 2782s # Vector 34: 20180803T146005.446178377+0100 2782s # Vector 35: 20180803T140863.446178377+0100 2782s # Vector 36: 20180803T140805.446178377+10000 2782s # Vector 37: -0005-01-01T00:00:00Z 2782s # Vector 38: 2018-08-06 2782s # Vector 39: 20180803T140805,446178377+0100 2782s # Vector 40: 2018-08-03T14:08:05.446178377-01:00 2782s # Vector 41: 2018-08-03T14:08:05.446178377 01:00 2782s # Vector 42: 1990-11-01T10:21:17 2782s # Vector 43: 1719W462 407777-07 2782s # Vector 44: 4011090 260528Z 2782s # Vector 45: 0000W011 228214-22 2782s ok 50 /GDateTime/new_from_iso8601/2 2782s # End of new_from_iso8601 tests 2782s # Start of format_mixed tests 2782s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 2782s # %b -> expected: mar 2782s # %b -> actual: Mar 2782s # %B -> expected: march 2782s # %B -> actual: March 2782s ok 51 /GDateTime/format_mixed/utf8_time_non_utf8_messages 2782s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 2782s # %b -> expected: mar 2782s # %b -> actual: Mar 2782s # %B -> expected: march 2782s # %B -> actual: March 2782s ok 52 /GDateTime/format_mixed/utf8_time_utf8_messages 2782s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 2782s # %b -> expected: Mär 2782s # %b -> actual: Mär 2782s # %B -> expected: März 2782s # %B -> actual: März 2782s ok 53 /GDateTime/format_mixed/non_utf8_time_non_utf8_messages 2782s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 2782s # %b -> expected: Mär 2782s # %b -> actual: Mär 2782s # %B -> expected: März 2782s # %B -> actual: März 2782s ok 54 /GDateTime/format_mixed/non_utf8_time_utf8_messages 2782s # End of format_mixed tests 2782s # Start of strftime tests 2782s # %r -> expected: (null) 2782s # %r -> actual: (null) 2782s ok 55 /GDateTime/strftime/error_handling 2782s # End of strftime tests 2782s # Start of eras tests 2782s ok 56 /GDateTime/eras/japan # SKIP nl_langinfo(ERA) not supported, skipping era tests 2782s ok 57 /GDateTime/eras/thailand # SKIP nl_langinfo(ERA) not supported, skipping era tests 2782s # Vector 0: 2782s # Vector 1: +:1:-543/01/01:+*:พ.ศ.:%EC %Ey 2782s # 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年 2782s # Vector 3: -:2:2020/01/01:-*:令和:%EC%Ey年 2782s # Vector 4: +:2:2020/01/01:2020/01/01:令和:%EC%Ey年 2782s # Vector 5: +:2:+2020/01/01:+*:令和:%EC%Ey年 2782s # Vector 6: .:2:2020/01/01:+*:令和:%EC%Ey年 2782s # Vector 7: +.2:2020/01/01:+*:令和:%EC%Ey年 2782s # Vector 8: + 2782s # Vector 9: +: 2782s # Vector 10: +:: 2782s # Vector 11: +:200 2782s # Vector 12: +:2nonsense 2782s # Vector 13: +:2nonsense: 2782s # Vector 14: +:2: 2782s # Vector 15: +:2:: 2782s # Vector 16: +:2:2020-01/01:+*:令和:%EC%Ey年 2782s # Vector 17: +:2:2020nonsense/01/01:+*:令和:%EC%Ey年 2782s # Vector 18: +:2:2020:+*:令和:%EC%Ey年 2782s # Vector 19: +:2:18446744073709551615/01/01:+*:令和:%EC%Ey年 2782s # Vector 20: +:2:2020/01-01:+*:令和:%EC%Ey年 2782s # Vector 21: +:2:2020/01nonsense/01:+*:令和:%EC%Ey年 2782s # Vector 22: +:2:2020/01:+*:令和:%EC%Ey年 2782s # Vector 23: +:2:2020/00/01:+*:令和:%EC%Ey年 2782s # Vector 24: +:2:2020/13/01:+*:令和:%EC%Ey年 2782s # Vector 25: +:2:2020/01/00:+*:令和:%EC%Ey年 2782s # Vector 26: +:2:2020/01/32:+*:令和:%EC%Ey年 2782s # Vector 27: +:2:2020/01/01nonsense:+*:令和:%EC%Ey年 2782s # Vector 28: +:2:2020/01/01 2782s # Vector 29: +:2:2020/01/01: 2782s # Vector 30: +:2:2020/01/01:: 2782s # Vector 31: +:2:2020/01/01:2021-01-01:令和:%EC%Ey年 2782s # Vector 32: +:2:2020/01/01:+* 2782s # Vector 33: +:2:2020/01/01:+*: 2782s # Vector 34: +:2:2020/01/01:+*:: 2782s # Vector 35: +:2:2020/01/01:+*:令和 2782s # Vector 36: +:2:2020/01/01:+*:令和: 2782s # Vector 37: +:2:2020/01/01:+*:令和:; 2782s ok 58 /GDateTime/eras/parsing 2782s # End of eras tests 2782s # End of GDateTime tests 2782s # Start of GTimeZone tests 2782s ok 59 /GTimeZone/find-interval 2782s ok 60 /GTimeZone/adjust-time 2782s ok 61 /GTimeZone/no-header 2782s ok 62 /GTimeZone/no-header-identifier 2782s ok - glib/gdatetime.test 2782s # Running test: glib/signals-refcount3.test 2782s ok 63 /GTimeZone/posix-parse 2782s # Bug Reference: http://bugzilla.gnome.org/697715 2782s ok 64 /GTimeZone/floating-point 2782s # System time zone identifier: Etc/UTC 2782s ok 65 /GTimeZone/identifier 2782s # Vector 0: -158400 2782s # Vector 1: -10000 2782s # Vector 2: -3600 2782s # Vector 3: -61 2782s # Vector 4: -60 2782s # Vector 5: -59 2782s # Vector 6: 0 2782s # Vector 7: 59 2782s # Vector 8: 60 2782s # Vector 9: 61 2782s # Vector 10: 3600 2782s # Vector 11: 10000 2782s # Vector 12: 158400 2782s ok 66 /GTimeZone/new-offset 2782s # /GTimeZone/parse-rfc8536 summary: Test parsing time zone files in RFC 8536 version 3 format 2782s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2129 2782s ok 67 /GTimeZone/parse-rfc8536 2782s # /GTimeZone/caching summary: GTimeZone instances are cached 2782s ok 68 /GTimeZone/caching 2782s # End of GTimeZone tests 2782s TAP version 14 2782s # random seed: R02S4d62b9bfcd6f255f21f7a384c2a04122 2782s 1..1 2782s # Start of gobject tests 2782s # Start of refcount tests 2782s # init 0x2aa08f0d4a0 2782s # 2782s # init 0x2aa08f05580 2782s # 2784s # Executing: glib/signals-refcount3.test 2787s # dispose 0x2aa08f0d4a0! 2787s # 2787s # dispose 0x2aa08f05580! 2787s # 2787s ok 1 /gobject/refcount/signals 2787s # slow test /gobject/refcount/signals executed in 5.21 secs 2787s # End of refcount tests 2787s # End of gobject tests 2787s ok - glib/signals-refcount3.test 2787s # Running test: glib/types.test 2787s ok - glib/types.test 2787s TAP version 14 2787s # random seed: R02Sf9f6d6f4308ce3ed09be93598830f65d 2787s 1..1 2787s # Start of types tests 2787s ok 1 /types/basic_types 2787s # End of types tests 2787s # Running test: glib/signals-refcount4.test 2787s TAP version 14 2787s # random seed: R02Seadb6757fba95f502c839482dab868e1 2787s 1..1 2787s # Start of gobject tests 2787s # Start of refcount tests 2787s # init 0x2aa2019c4a0 2787s # 2787s # init 0x2aa20194580 2787s # 2789s # Executing: glib/signals-refcount4.test 2792s # dispose 0x2aa2019c4a0! 2792s # 2792s ok - glib/signals-refcount4.test 2792s # dispose 0x2aa20194580! 2792s # 2792s ok 1 /gobject/refcount/signals 2792s # slow test /gobject/refcount/signals executed in 5.23 secs 2792s # End of refcount tests 2792s # End of gobject tests 2792s # Running test: glib/null-settings-backend.test 2792s TAP version 14 2792s ok - glib/null-settings-backend.test 2792s # random seed: R02S09159cab7ebba99ece2cdd67dc5c1e3e 2792s 1..1 2792s # Start of null-settings-backend tests 2792s ok 1 /null-settings-backend/extension-point-registered 2792s # End of null-settings-backend tests 2792s # Running test: glib/1bit-mutex.test 2792s TAP version 14 2792s # random seed: R02Sef9ae50bde07e11a1ff7d1ce89d243ba 2792s 1..2 2792s # Start of glib tests 2792s # Start of 1bit-mutex tests 2794s # Executing: glib/1bit-mutex.test 2799s # Executing: glib/1bit-mutex.test 2804s # Executing: glib/1bit-mutex.test 2809s # Executing: glib/1bit-mutex.test 2814s # Executing: glib/1bit-mutex.test 2818s ok 1 /glib/1bit-mutex/int 2818s # slow test /glib/1bit-mutex/int executed in 25.65 secs 2819s # Executing: glib/1bit-mutex.test 2824s # Executing: glib/1bit-mutex.test 2830s # Executing: glib/1bit-mutex.test 2834s # Executing: glib/1bit-mutex.test 2839s # Executing: glib/1bit-mutex.test 2840s ok - glib/1bit-mutex.test 2840s # Running test: glib/deftype.test 2840s ok 2 /glib/1bit-mutex/pointer 2840s # slow test /glib/1bit-mutex/pointer executed in 21.81 secs 2840s # End of 1bit-mutex tests 2840s # End of glib tests 2840s ok - glib/deftype.test 2840s # Running test: glib/properties-refcount4.test 2840s TAP version 14 2840s # random seed: R02Sa03de7b6109313c2e404dc370f0e5b24 2840s 1..1 2840s # Start of gobject tests 2840s # Start of refcount tests 2840s ok 1 /gobject/refcount/properties-4 2840s # End of refcount tests 2840s # End of gobject tests 2840s ok - glib/properties-refcount4.test 2840s # Running test: glib/static-link.test 2840s Test disabled because GLIB_TEST_COMPILATION is not set in the env. 2840s If you wish to run this test, set GLIB_TEST_COMPILATION=1 in the env, 2840s and make sure you have glib build dependencies installed, including 2840s meson. 2840s ok # SKIP - glib/static-link.test 2840s # Running test: glib/notify-init2.test 2840s TAP version 14 2840s # random seed: R02Sa40455bab1eea5163689c40239d0febe 2840s 1..1 2840s # Start of properties tests 2840s # /properties/notify-in-init2 summary: Test that notify freezing during construction of objects with custom constructor works 2840s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 2840s ok 1 /properties/notify-in-init2 2840s # End of properties tests 2840s TAP version 14 2840s # random seed: R02S761d81b1ce2d483e702284d39e5464bd 2840s 1..238 2840s # Start of utf8 tests 2840s # Vector 0 2840s # Vector 1 2840s # Vector 2 2840s # Vector 3 2840s # Vector 4 2840s # Vector 5 2840s # Vector 6 2840s # Vector 7 2840s # Vector 8 2840s # Vector 9 2840s # Vector 10 2840s # Vector 11 2840s # Vector 12 2840s # Vector 13 2840s # Vector 14 2840s # Vector 15 2840s # Vector 16 2840s # Vector 17 2840s # Vector 18 2840s # Vector 19 2840s # Vector 20 2840s # Vector 21 2840s # Vector 22 2840s # Vector 23 2840s # Vector 24 2840s # Vector 25 2840s # Vector 26 2840s # Vector 27 2840s ok 1 /utf8/get-char-validated 2840s # Start of validate tests 2840s ok 2 /utf8/validate/0 2840s ok 3 /utf8/validate/1 2840s ok 4 /utf8/validate/2 2840s ok 5 /utf8/validate/3 2840s ok 6 /utf8/validate/4 2840s ok 7 /utf8/validate/5 2840s ok 8 /utf8/validate/6 2840s ok 9 /utf8/validate/7 2840s ok 10 /utf8/validate/8 2840s ok 11 /utf8/validate/9 2840s ok 12 /utf8/validate/10 2840s ok 13 /utf8/validate/11 2840s ok 14 /utf8/validate/12 2840s ok 15 /utf8/validate/13 2840s ok 16 /utf8/validate/14 2840s ok 17 /utf8/validate/15 2840s ok 18 /utf8/validate/16 2840s ok 19 /utf8/validate/17 2840s ok 20 /utf8/validate/18 2840s ok 21 /utf8/validate/19 2840s ok 22 /utf8/validate/20 2840s ok 23 /utf8/validate/21 2840s ok 24 /utf8/validate/22 2840s ok 25 /utf8/validate/23 2840s ok 26 /utf8/validate/24 2840s ok 27 /utf8/validate/25 2840s ok 28 /utf8/validate/26 2840s ok 29 /utf8/validate/27 2840s ok 30 /utf8/validate/28 2840s ok 31 /utf8/validate/29 2840s ok 32 /utf8/validate/30 2840s ok 33 /utf8/validate/31 2840s ok 34 /utf8/validate/32 2840s ok 35 /utf8/validate/33 2840s ok 36 /utf8/validate/34 2840s ok 37 /utf8/validate/35 2840s ok 38 /utf8/validate/36 2840s ok 39 /utf8/validate/37 2840s ok 40 /utf8/validate/38 2840s ok 41 /utf8/validate/39 2840s ok 42 /utf8/validate/40 2840s ok 43 /utf8/validate/41 2840s ok 44 /utf8/validate/42 2840s ok 45 /utf8/validate/43 2840s ok 46 /utf8/validate/44 2840s ok 47 /utf8/validate/45 2840s ok 48 /utf8/validate/46 2840s ok 49 /utf8/validate/47 2840s ok 50 /utf8/validate/48 2840s ok 51 /utf8/validate/49 2840s ok 52 /utf8/validate/50 2840s ok 53 /utf8/validate/51 2840s ok 54 /utf8/validate/52 2840s ok 55 /utf8/validate/53 2840s ok 56 /utf8/validate/54 2840s ok 57 /utf8/validate/55 2840s ok 58 /utf8/validate/56 2840s ok 59 /utf8/validate/57 2840s ok 60 /utf8/validate/58 2840s ok 61 /utf8/validate/59 2840s ok 62 /utf8/validate/60 2840s ok 63 /utf8/validate/61 2840s ok 64 /utf8/validate/62 2840s ok 65 /utf8/validate/63 2840s ok 66 /utf8/validate/64 2840s ok 67 /utf8/validate/65 2840s ok 68 /utf8/validate/66 2840s ok 69 /utf8/validate/67 2840s ok 70 /utf8/validate/68 2840s ok 71 /utf8/validate/69 2840s ok 72 /utf8/validate/70 2840s ok 73 /utf8/validate/71 2840s ok 74 /utf8/validate/72 2840s ok 75 /utf8/validate/73 2840s ok 76 /utf8/validate/74 2840s ok 77 /utf8/validate/75 2840s ok 78 /utf8/validate/76 2840s ok 79 /utf8/validate/77 2840s ok 80 /utf8/validate/78 2840s ok 81 /utf8/validate/79 2840s ok 82 /utf8/validate/80 2840s ok 83 /utf8/validate/81 2840s ok 84 /utf8/validate/82 2840s ok 85 /utf8/validate/83 2840s ok 86 /utf8/validate/84 2840s ok 87 /utf8/validate/85 2840s ok 88 /utf8/validate/86 2840s ok 89 /utf8/validate/87 2840s ok 90 /utf8/validate/88 2840s ok 91 /utf8/validate/89 2840s ok 92 /utf8/validate/90 2840s ok 93 /utf8/validate/91 2840s ok 94 /utf8/validate/92 2840s ok 95 /utf8/validate/93 2840s ok 96 /utf8/validate/94 2840s ok 97 /utf8/validate/95 2840s ok 98 /utf8/validate/96 2840s ok 99 /utf8/validate/97 2840s ok 100 /utf8/validate/98 2840s ok 101 /utf8/validate/99 2840s ok 102 /utf8/validate/100 2840s ok 103 /utf8/validate/101 2840s ok 104 /utf8/validate/102 2840s ok 105 /utf8/validate/103 2840s ok 106 /utf8/validate/104 2840s ok 107 /utf8/validate/105 2840s ok 108 /utf8/validate/106 2840s ok 109 /utf8/validate/107 2840s ok 110 /utf8/validate/108 2840s ok 111 /utf8/validate/109 2840s ok 112 /utf8/validate/110 2840s ok 113 /utf8/validate/111 2840s ok 114 /utf8/validate/112 2840s ok 115 /utf8/validate/113 2840s ok 116 /utf8/validate/114 2840s ok 117 /utf8/validate/115 2840s ok 118 /utf8/validate/116 2840s ok 119 /utf8/validate/117 2840s ok 120 /utf8/validate/118 2840s ok 121 /utf8/validate/119 2840s ok 122 /utf8/validate/120 2840s ok 123 /utf8/validate/121 2840s ok 124 /utf8/validate/122 2840s ok 125 /utf8/validate/123 2840s ok 126 /utf8/validate/124 2840s ok 127 /utf8/validate/125 2840s ok 128 /utf8/validate/126 2840s ok 129 /utf8/validate/127 2840s ok 130 /utf8/validate/128 2840s ok 131 /utf8/validate/129 2840s ok 132 /utf8/validate/130 2840s ok 133 /utf8/validate/131 2840s ok 134 /utf8/validate/132 2840s ok 135 /utf8/validate/133 2840s ok 136 /utf8/validate/134 2840s ok 137 /utf8/validate/135 2840s ok 138 /utf8/validate/136 2840s ok 139 /utf8/validate/137 2840s ok 140 /utf8/validate/138 2840s ok 141 /utf8/validate/139 2840s ok 142 /utf8/validate/140 2840s ok 143 /utf8/validate/141 2840s ok 144 /utf8/validate/142 2840s ok 145 /utf8/validate/143 2840s ok 146 /utf8/validate/144 2840s ok 147 /utf8/validate/145 2840s ok 148 /utf8/validate/146 2840s ok 149 /utf8/validate/147 2840s ok 150 /utf8/validate/148 2840s ok 151 /utf8/validate/149 2840s ok 152 /utf8/validate/150 2840s ok 153 /utf8/validate/151 2840s ok 154 /utf8/validate/152 2840s ok 155 /utf8/validate/153 2840s ok 156 /utf8/validate/154 2840s ok 157 /utf8/validate/155 2840s ok 158 /utf8/validate/156 2840s ok 159 /utf8/validate/157 2840s ok 160 /utf8/validate/158 2840s ok 161 /utf8/validate/159 2840s ok 162 /utf8/validate/160 2840s ok 163 /utf8/validate/161 2840s ok 164 /utf8/validate/162 2840s ok 165 /utf8/validate/163 2840s ok 166 /utf8/validate/164 2840s ok 167 /utf8/validate/165 2840s ok 168 /utf8/validate/166 2840s ok 169 /utf8/validate/167 2840s ok 170 /utf8/validate/168 2840s ok 171 /utf8/validate/169 2840s ok 172 /utf8/validate/170 2840s ok 173 /utf8/validate/171 2840s ok 174 /utf8/validate/172 2840s ok 175 /utf8/validate/173 2840s ok 176 /utf8/validate/174 2840s ok 177 /utf8/validate/175 2840s ok 178 /utf8/validate/176 2840s ok 179 /utf8/validate/177 2840s ok 180 /utf8/validate/178 2840s ok 181 /utf8/validate/179 2840s ok 182 /utf8/validate/180 2840s ok 183 /utf8/validate/181 2840s ok 184 /utf8/validate/182 2840s ok 185 /utf8/validate/183 2840s ok 186 /utf8/validate/184 2840s ok 187 /utf8/validate/185 2840s ok 188 /utf8/validate/186 2840s ok 189 /utf8/validate/187 2840s ok 190 /utf8/validate/188 2840s ok 191 /utf8/validate/189 2840s ok 192 /utf8/validate/190 2840s ok 193 /utf8/validate/191 2840s ok 194 /utf8/validate/192 2840s ok 195 /utf8/validate/193 2840s ok 196 /utf8/validate/194 2840s ok 197 /utf8/validate/195 2840s ok 198 /utf8/validate/196 2840s ok 199 /utf8/validate/197 2840s ok 200 /utf8/validate/198 2840s ok 201 /utf8/validate/199 2840s ok 202 /utf8/validate/200 2840s ok 203 /utf8/validate/201 2840s ok 204 /utf8/validate/202 2840s ok 205 /utf8/validate/203 2840s ok 206 /utf8/validate/204 2840s ok 207 /utf8/validate/205 2840s ok 208 /utf8/validate/206 2840s ok 209 /utf8/validate/207 2840s ok 210 /utf8/validate/208 2840s ok 211 /utf8/validate/209 2840s ok 212 /utf8/validate/210 2840s ok 213 /utf8/validate/211 2840s ok 214 /utf8/validate/212 2840s ok 215 /utf8/validate/213 2840s ok 216 /utf8/validate/214 2840s ok 217 /utf8/validate/215 2840s ok 218 /utf8/validate/216 2840s ok 219 /utf8/validate/217 2840s ok 220 /utf8/validate/218 2840s ok 221 /utf8/validate/219 2840s ok 222 /utf8/validate/220 2840s ok 223 /utf8/validate/221 2840s ok 224 /utf8/validate/222 2840s ok 225 /utf8/validate/223 2840s ok 226 /utf8/validate/224 2840s ok 227 /utf8/validate/225 2840s ok 228 /utf8/validate/226 2840s ok 229 /utf8/validate/227 2840s ok 230 /utf8/validate/228 2840s ok 231 /utf8/validate/229 2840s ok 232 /utf8/validate/230 2840s ok 233 /utf8/validate/231 2840s ok 234 /utf8/validate/232 2840s ok 235 /utf8/validate/233 2840s ok 236 /utf8/validate/234 2840s ok 237 /utf8/validate/235 2840s ok 238 /utf8/validate/236 2840s # End of validate tests 2840s # End of utf8 tests 2840s ok - glib/notify-init2.test 2840s # Running test: glib/utf8-validate.test 2840s ok - glib/utf8-validate.test 2840s TAP version 14 2840s # random seed: R02Sf9cafd7852394edb2e18fc4fb0435812 2840s 1..1 2840s # Start of gthash tests 2840s ok 1 /gthash/build-retrieve 2840s # End of gthash tests 2840s # Running test: glib/gthash.test 2840s ok - glib/gthash.test 2840s # Running test: glib/rand.test 2840s TAP version 14 2840s # random seed: R02S418dc3b0243b407c30725fc41279d684 2840s 1..2 2840s # Start of rand tests 2840s ok 1 /rand/test-rand 2840s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=502560 2840s ok 2 /rand/double-range 2840s # End of rand tests 2841s ok - glib/rand.test 2841s # Running test: glib/completion.test 2841s TAP version 14 2841s # random seed: R02S9b414940e9e4eb59e2ef6c7ae9a9247d 2841s 1..1 2841s # Start of completion tests 2841s ok 1 /completion/test-completion 2841s # End of completion tests 2841s ok - glib/completion.test 2841s # SUMMARY: total=332; passed=331; skipped=1; failed=0; user=93.8s; system=87.6s; maxrss=197084 2841s autopkgtest [10:11:52]: test installed-tests: -----------------------] 2843s autopkgtest [10:11:54]: test installed-tests: - - - - - - - - - - results - - - - - - - - - - 2843s installed-tests PASS 2844s autopkgtest [10:11:55]: test closure-refcount: preparing testbed 2845s Reading package lists... 2847s Building dependency tree... 2847s Reading state information... 2847s Solving dependencies... 2849s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2851s autopkgtest [10:12:02]: test closure-refcount: [----------------------- 2852s Running test: glib/closure-refcount.test 2852s TAP version 14 2852s # random seed: R02S88bcfd7e1e7bb8ed28ff3abfed384576 2852s 1..1 2852s # Start of closure tests 2852s # Init 0x2aa19dcfdb0 2852s # Yielding from main thread 2852s # Yielding from thread2 2852s # Yielding from main thread 2852s # Yielding from main thread 2852s # Yielding from main thread 2852s # Yielding from main thread 2853s # Yielding from main thread 2853s # Yielding from thread1 2853s # Yielding from thread1 2853s # Yielding from main thread 2853s # Yielding from main thread 2853s # Yielding from main thread 2853s # Yielding from main thread 2853s # Yielding from thread2 2853s # Yielding from thread2 2853s # Yielding from thread1 2853s # Yielding from thread2 2853s # Yielding from main thread 2853s # Yielding from thread2 2853s # Yielding from thread1 2853s # Yielding from main thread 2853s # Yielding from main thread 2853s # Yielding from thread2 2853s # Yielding from thread1 2853s # Yielding from main thread 2853s # Yielding from main thread 2854s # Yielding from main thread 2854s # Yielding from thread2 2854s # Yielding from main thread 2854s # Yielding from main thread 2854s # Yielding from main thread 2854s # Yielding from main thread 2854s # Yielding from thread2 2854s # Yielding from thread1 2854s # Yielding from main thread 2854s # Yielding from main thread 2854s # Yielding from main thread 2854s # Yielding from main thread 2854s # Yielding from main thread 2854s # Yielding from main thread 2854s # Yielding from main thread 2854s # Yielding from thread1 2854s # Yielding from thread2 2854s # Yielding from main thread 2854s # Yielding from main thread 2855s # Yielding from thread2 2855s # Yielding from main thread 2855s # Yielding from thread2 2855s # Yielding from thread1 2855s # Yielding from main thread 2855s # Yielding from thread2 2855s # Yielding from main thread 2855s # Yielding from thread2 2855s # Yielding from main thread 2855s # Yielding from main thread 2855s # Yielding from main thread 2855s # Yielding from main thread 2855s # Yielding from thread1 2855s # Yielding from thread2 2855s # Yielding from main thread 2855s # Yielding from main thread 2855s # Yielding from thread2 2855s # Yielding from main thread 2855s # Yielding from main thread 2855s # Yielding from main thread 2855s # Yielding from main thread 2855s # Yielding from main thread 2855s # Yielding from thread2 2855s # Yielding from main thread 2855s # Yielding from main thread 2855s # Yielding from thread1 2855s # Yielding from thread2 2856s # Yielding from main thread 2856s # Yielding from main thread 2856s # Yielding from main thread 2856s # Yielding from thread1 2856s # Yielding from thread1 2856s # Yielding from main thread 2856s # Yielding from main thread 2856s # Yielding from thread2 2856s # Yielding from main thread 2856s # Yielding from main thread 2856s # Yielding from thread2 2856s # Yielding from main thread 2856s # Yielding from main thread 2856s # Yielding from main thread 2856s # Yielding from thread1 2856s # Yielding from main thread 2856s # Yielding from main thread 2856s # Yielding from main thread 2856s # Yielding from main thread 2856s # Yielding from thread1 2856s # Yielding from thread1 2856s # Yielding from main thread 2857s # Yielding from main thread 2857s # Yielding from main thread 2857s # Yielding from thread2 2857s # Yielding from thread1 2857s # Yielding from main thread 2857s # Yielding from main thread 2857s # Yielding from main thread 2857s # Yielding from main thread 2857s # Yielding from main thread 2857s # Yielding from thread2 2857s # Yielding from main thread 2857s # Yielding from main thread 2857s # Yielding from thread2 2857s # Yielding from thread2 2857s # Yielding from main thread 2857s # Yielding from main thread 2857s # Yielding from thread1 2857s # Yielding from main thread 2857s # Yielding from main thread 2857s # Yielding from main thread 2857s # Yielding from main thread 2857s # Yielding from main thread 2857s # Yielding from main thread 2857s # Yielding from main thread 2857s Executing: glib/closure-refcount.test 2858s # Yielding from thread2 2858s # Yielding from main thread 2858s # Yielding from thread2 2858s # Yielding from main thread 2858s # Yielding from thread1 2858s # Yielding from thread2 2858s # Yielding from thread2 2858s # Yielding from main thread 2858s # Yielding from main thread 2858s # Yielding from main thread 2858s # Yielding from main thread 2858s # Yielding from main thread 2858s # Yielding from main thread 2858s # Yielding from main thread 2858s # Yielding from thread1 2858s # Yielding from main thread 2858s # Yielding from thread2 2858s # Yielding from main thread 2858s # Yielding from thread2 2858s # Yielding from thread2 2858s # Yielding from main thread 2858s # Yielding from main thread 2858s # Yielding from main thread 2858s # Yielding from main thread 2858s # Yielding from main thread 2858s # Yielding from main thread 2858s # Yielding from main thread 2858s # Yielding from main thread 2859s # Yielding from thread2 2859s # Yielding from thread2 2859s # Yielding from main thread 2859s # Yielding from thread1 2859s # Yielding from main thread 2859s # Yielding from thread2 2859s # Stopping 2859s # Stopped 2859s ok 1 /closure/refcount 2859s # slow test /closure/refcount executed in 7.18 secs 2859s # End of closure tests 2859s PASS: glib/closure-refcount.test 2859s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=2.0s; system=0.2s; maxrss=3604 2860s autopkgtest [10:12:11]: test closure-refcount: -----------------------] 2860s closure-refcount PASS 2860s autopkgtest [10:12:11]: test closure-refcount: - - - - - - - - - - results - - - - - - - - - - 2861s autopkgtest [10:12:12]: test debugcontroller: preparing testbed 2862s Reading package lists... 2864s Building dependency tree... 2864s Reading state information... 2864s Solving dependencies... 2865s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2867s autopkgtest [10:12:18]: test debugcontroller: [----------------------- 2868s Running test: glib/debugcontroller.test 2868s TAP version 14 2868s # random seed: R02S4d6225cde8ade23d8d47e624867c8776 2868s 1..3 2868s # Start of debug-controller tests 2868s # Start of dbus tests 2868s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 2868s # GLib-GIO-DEBUG: Debug output enabled 2868s # GLib-GIO-DEBUG: Debug output disabled 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s ok 1 /debug-controller/dbus/basic 2868s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s ok 2 /debug-controller/dbus/duplicate 2868s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2868s # GLib-GIO-DEBUG: Debug output enabled 2868s # GLib-GIO-DEBUG: Debug output disabled 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2868s ok 3 /debug-controller/dbus/properties 2868s # End of dbus tests 2868s # End of debug-controller tests 2868s PASS: glib/debugcontroller.test 2868s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=6376 2869s autopkgtest [10:12:20]: test debugcontroller: -----------------------] 2870s debugcontroller PASS 2870s autopkgtest [10:12:21]: test debugcontroller: - - - - - - - - - - results - - - - - - - - - - 2871s autopkgtest [10:12:22]: test gdbus-server-auth: preparing testbed 2872s Reading package lists... 2874s Building dependency tree... 2874s Reading state information... 2874s Solving dependencies... 2875s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2878s autopkgtest [10:12:29]: test gdbus-server-auth: [----------------------- 2879s Running test: glib/gdbus-server-auth.test 2879s TAP version 14 2879s # random seed: R02S5df4e5d3545d76a447d7ff49b888596d 2879s 1..9 2879s # Start of gdbus tests 2879s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/.dirs/home 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/.dirs/cache 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/.dirs/system-config2 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/.dirs/config 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/.dirs/system-data2 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/.dirs/data 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/.dirs/state 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/.dirs/runtime 2879s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_41XKK3/gdbus-server-auth-8ZTKK3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 2879s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_41XKK3/gdbus-server-auth-8ZTKK3/dbus-7l9V3BY1 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40657 2879s ok 1 /gdbus/server-auth 2879s # Start of server-auth tests 2879s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/abstract/.dirs/home 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/abstract/.dirs/cache 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/abstract/.dirs/system-config2 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/abstract/.dirs/config 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/abstract/.dirs/system-data2 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/abstract/.dirs/data 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/abstract/.dirs/state 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/abstract/.dirs/runtime 2879s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_41XKK3/gdbus-server-auth-85WBK3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 2879s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_41XKK3/gdbus-server-auth-85WBK3/dbus-gwSxxx81 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40657 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2879s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40657 2879s ok 2 /gdbus/server-auth/abstract 2879s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/tcp/.dirs/home 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/tcp/.dirs/cache 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/tcp/.dirs/system-config2 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/tcp/.dirs/config 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/tcp/.dirs/system-data2 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/tcp/.dirs/data 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/tcp/.dirs/state 2879s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/tcp/.dirs/runtime 2879s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 2879s # Connectable address: tcp:host=127.0.0.1,port=44839 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2879s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2879s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2879s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2879s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 2879s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2879s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2879s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2879s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2879s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2879s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 2880s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2880s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2880s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2880s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2880s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 2880s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2880s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2880s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2880s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2880s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 2880s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2880s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2880s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2880s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2880s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 2880s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2880s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2880s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2880s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2880s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 2880s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2880s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2880s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2880s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2880s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 2880s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2880s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2880s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2880s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2880s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 2880s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2880s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2880s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2880s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2880s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 2880s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2880s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2880s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2880s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2880s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 2880s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2880s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2880s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2880s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2880s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 2880s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2880s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2880s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2880s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2880s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 2880s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2880s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2880s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2880s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2880s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 2880s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2880s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2880s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2880s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2880s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2880s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2881s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2881s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2881s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2881s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2881s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2881s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2881s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2881s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2881s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2881s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2881s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2881s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2881s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 2881s ok 3 /gdbus/server-auth/tcp 2881s # slow test /gdbus/server-auth/tcp executed in 2.09 secs 2881s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/.dirs/home 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/.dirs/cache 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/.dirs/system-config2 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/.dirs/config 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/.dirs/system-data2 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/.dirs/data 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/.dirs/state 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/.dirs/runtime 2881s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_41XKK3/gdbus-server-auth-MV6AK3 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 2881s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_41XKK3/gdbus-server-auth-MV6AK3/dbus-uB98Qg4e 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40657 2881s ok 4 /gdbus/server-auth/anonymous 2881s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/.dirs/home 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/.dirs/cache 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/.dirs/system-config2 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/.dirs/config 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/.dirs/system-data2 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/.dirs/data 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/.dirs/state 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/.dirs/runtime 2881s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_41XKK3/gdbus-server-auth-LR68J3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 2881s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_41XKK3/gdbus-server-auth-LR68J3/dbus-XdCjU1F8 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2881s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40657 2881s ok 5 /gdbus/server-auth/external 2881s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/.dirs/home 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/.dirs/cache 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/.dirs/system-config2 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/.dirs/config 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/.dirs/system-data2 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/.dirs/data 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/.dirs/state 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/.dirs/runtime 2881s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_41XKK3/gdbus-server-auth-D848J3 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 2881s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_41XKK3/gdbus-server-auth-D848J3/dbus-Qh7EvM85 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40657 2881s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2881s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2881s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2881s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2881s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40657 2881s ok 6 /gdbus/server-auth/sha1 2881s # Start of anonymous tests 2881s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/tcp/.dirs/home 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/tcp/.dirs/cache 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/tcp/.dirs/config 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/tcp/.dirs/data 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/tcp/.dirs/state 2881s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/anonymous/tcp/.dirs/runtime 2881s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 2881s # Connectable address: tcp:host=127.0.0.1,port=35185 2882s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2882s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 2882s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2882s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2882s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 2882s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2882s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2882s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 2882s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2882s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2882s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 2882s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2882s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2882s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 2882s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2882s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2882s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 2882s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2882s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2882s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 2882s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2882s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2882s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 2882s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2882s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2882s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 2882s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2882s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2882s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2882s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2882s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 2883s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2883s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2883s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 2883s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2883s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2883s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 2883s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2883s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2883s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 2883s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2883s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2883s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 2883s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2883s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2883s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 2883s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2883s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2883s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 2883s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2883s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2883s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 2883s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2883s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2883s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 2883s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2883s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2883s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 2883s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2883s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2883s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2883s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2883s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2884s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2884s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2884s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 2884s ok 7 /gdbus/server-auth/anonymous/tcp 2884s # slow test /gdbus/server-auth/anonymous/tcp executed in 2.12 secs 2884s # End of anonymous tests 2884s # Start of external tests 2884s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/require-same-user/.dirs/home 2884s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/require-same-user/.dirs/cache 2884s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/require-same-user/.dirs/system-config2 2884s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/require-same-user/.dirs/config 2884s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/require-same-user/.dirs/system-data2 2884s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/require-same-user/.dirs/data 2884s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/require-same-user/.dirs/state 2884s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/external/require-same-user/.dirs/runtime 2884s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_41XKK3/gdbus-server-auth-SAZKK3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 2884s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_41XKK3/gdbus-server-auth-SAZKK3/dbus-wLN61hfS 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40657 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2884s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40657,uid=1000,gid=1000 2884s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40657 2884s ok 8 /gdbus/server-auth/external/require-same-user 2884s # End of external tests 2884s # Start of sha1 tests 2884s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/tcp/.dirs/home 2884s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/tcp/.dirs/cache 2884s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/tcp/.dirs/system-config2 2884s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/tcp/.dirs/config 2884s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/tcp/.dirs/system-data2 2884s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/tcp/.dirs/data 2884s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/tcp/.dirs/state 2884s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_41XKK3/gdbus/server-auth/sha1/tcp/.dirs/runtime 2884s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 2884s # Connectable address: tcp:host=127.0.0.1,port=43823 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2884s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2884s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2884s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2884s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2884s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2884s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2884s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2884s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2884s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2884s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2884s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2884s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2884s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2884s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2884s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s Executing: glib/gdbus-server-auth.test 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2884s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2884s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2884s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 2884s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2884s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2884s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2884s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2884s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2884s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2885s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 2885s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2885s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2885s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2885s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2885s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2885s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2885s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 2885s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2885s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2885s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2885s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2885s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2885s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2885s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 2885s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2885s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2885s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2885s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2885s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2885s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2885s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 2885s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2885s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2885s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2885s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2885s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2885s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2885s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 2885s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2885s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2885s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2885s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2885s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2885s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2885s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 2885s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2885s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2885s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2885s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2885s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2885s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2885s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 2885s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2885s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2885s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2885s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2885s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2885s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2886s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 2886s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2886s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2886s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2886s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2886s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2886s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2886s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 2886s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2886s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2886s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2886s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2886s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2886s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2886s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 2886s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2886s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2886s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2886s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2886s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2886s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2886s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 2886s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2886s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2886s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2886s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2886s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2886s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2886s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 2886s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2886s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2886s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2886s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2886s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2886s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2886s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 2886s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2886s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2886s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2886s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2886s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2886s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2886s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 2886s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2886s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2886s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2886s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2886s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2886s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2886s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 2886s ok 9 /gdbus/server-auth/sha1/tcp 2886s # slow test /gdbus/server-auth/sha1/tcp executed in 2.70 secs 2886s # End of sha1 tests 2886s # End of server-auth tests 2886s # End of gdbus tests 2886s PASS: glib/gdbus-server-auth.test 2886s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.1s; system=0.3s; maxrss=8508 2887s autopkgtest [10:12:38]: test gdbus-server-auth: -----------------------] 2888s gdbus-server-auth PASS 2888s autopkgtest [10:12:39]: test gdbus-server-auth: - - - - - - - - - - results - - - - - - - - - - 2889s autopkgtest [10:12:40]: test gdbus-threading: preparing testbed 2890s Reading package lists... 2892s Building dependency tree... 2892s Reading state information... 2892s Solving dependencies... 2894s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2897s autopkgtest [10:12:48]: test gdbus-threading: [----------------------- 2897s Running test: glib/gdbus-threading.test 2897s TAP version 14 2897s # random seed: R02Sbb3b6120d47760c0952bf34e66f6eda7 2897s 1..3 2897s # Start of gdbus tests 2897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_I1PBK3/gdbus/delivery-in-thread/.dirs/home 2897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_I1PBK3/gdbus/delivery-in-thread/.dirs/cache 2897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_I1PBK3/gdbus/delivery-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_I1PBK3/gdbus/delivery-in-thread/.dirs/system-config2 2897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_I1PBK3/gdbus/delivery-in-thread/.dirs/config 2897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_I1PBK3/gdbus/delivery-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_I1PBK3/gdbus/delivery-in-thread/.dirs/system-data2 2897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_I1PBK3/gdbus/delivery-in-thread/.dirs/data 2897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_I1PBK3/gdbus/delivery-in-thread/.dirs/state 2897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_I1PBK3/gdbus/delivery-in-thread/.dirs/runtime 2897s ok 1 /gdbus/delivery-in-thread 2897s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_I1PBK3/gdbus/method-calls-in-thread/.dirs/home 2897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_I1PBK3/gdbus/method-calls-in-thread/.dirs/cache 2897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_I1PBK3/gdbus/method-calls-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_I1PBK3/gdbus/method-calls-in-thread/.dirs/system-config2 2897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_I1PBK3/gdbus/method-calls-in-thread/.dirs/config 2897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_I1PBK3/gdbus/method-calls-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_I1PBK3/gdbus/method-calls-in-thread/.dirs/system-data2 2897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_I1PBK3/gdbus/method-calls-in-thread/.dirs/data 2897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_I1PBK3/gdbus/method-calls-in-thread/.dirs/state 2897s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_I1PBK3/gdbus/method-calls-in-thread/.dirs/runtime 2900s ok 2 /gdbus/method-calls-in-thread 2900s # slow test /gdbus/method-calls-in-thread executed in 2.64 secs 2900s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_I1PBK3/gdbus/threaded-singleton/.dirs/home 2900s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_I1PBK3/gdbus/threaded-singleton/.dirs/cache 2900s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_I1PBK3/gdbus/threaded-singleton/.dirs/system-config1:/tmp/test_gdbus-threading_I1PBK3/gdbus/threaded-singleton/.dirs/system-config2 2900s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_I1PBK3/gdbus/threaded-singleton/.dirs/config 2900s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_I1PBK3/gdbus/threaded-singleton/.dirs/system-data1:/tmp/test_gdbus-threading_I1PBK3/gdbus/threaded-singleton/.dirs/system-data2 2900s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_I1PBK3/gdbus/threaded-singleton/.dirs/data 2900s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_I1PBK3/gdbus/threaded-singleton/.dirs/state 2900s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_I1PBK3/gdbus/threaded-singleton/.dirs/runtime 2900s # GLib-GIO-DEBUG: refcount of 0x3ff70001550 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2900s # GLib-GIO-DEBUG: refcount of 0x3ff70001550 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2900s # GLib-GIO-DEBUG: refcount of 0x3ff70000e60 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2900s # GLib-GIO-DEBUG: refcount of 0x3ff70005b40 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2900s # GLib-GIO-DEBUG: refcount of 0x3ff70004ec0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2901s # GLib-GIO-DEBUG: refcount of 0x3ff70005540 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2901s # GLib-GIO-DEBUG: refcount of 0x3ff70007600 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2902s # GLib-GIO-DEBUG: refcount of 0x3ff70001030 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2902s # GLib-GIO-DEBUG: refcount of 0x3ff70001030 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2902s # GLib-GIO-DEBUG: refcount of 0x3ff70001030 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2902s # GLib-GIO-DEBUG: refcount of 0x3ff70004520 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2902s # GLib-GIO-DEBUG: refcount of 0x3ff70004520 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2902s # GLib-GIO-DEBUG: refcount of 0x3ff70004520 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2902s Executing: glib/gdbus-threading.test 2902s # GLib-GIO-DEBUG: refcount of 0x3ff70004520 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2903s # GLib-GIO-DEBUG: refcount of 0x3ff70006c00 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2903s # GLib-GIO-DEBUG: refcount of 0x3ff700059d0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2903s # GLib-GIO-DEBUG: refcount of 0x3ff700039a0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2904s # GLib-GIO-DEBUG: refcount of 0x3ff70001630 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2904s # GLib-GIO-DEBUG: refcount of 0x3ff70006ac0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2904s # GLib-GIO-DEBUG: refcount of 0x3ff70006ac0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2904s # GLib-GIO-DEBUG: refcount of 0x3ff70001240 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2904s # GLib-GIO-DEBUG: refcount of 0x3ff70001240 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2905s # GLib-GIO-DEBUG: refcount of 0x3ff700015f0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2905s # GLib-GIO-DEBUG: refcount of 0x3ff700015f0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2905s # GLib-GIO-DEBUG: refcount of 0x3ff70007b20 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2905s # GLib-GIO-DEBUG: refcount of 0x3ff70007b20 is not right (2 rather than 1) in test_threaded_singleton(), sleeping 2905s # GLib-GIO-DEBUG: refcount of 0x3ff70001e00 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2906s # GLib-GIO-DEBUG: refcount of 0x3ff70003a30 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2907s # GLib-GIO-DEBUG: refcount of 0x3ff70007bc0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2907s Executing: glib/gdbus-threading.test 2907s # GLib-GIO-DEBUG: refcount of 0x3ff70007bc0 is not right (2 rather than 1) in test_threaded_singleton(), sleeping 2907s # GLib-GIO-DEBUG: refcount of 0x3ff70007bc0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2908s ok 3 /gdbus/threaded-singleton 2908s # slow test /gdbus/threaded-singleton executed in 7.73 secs 2908s # End of gdbus tests 2908s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2908s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2908s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2908s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2908s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2908s PASS: glib/gdbus-threading.test 2908s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.2s; system=1.2s; maxrss=6144 2908s autopkgtest [10:12:59]: test gdbus-threading: -----------------------] 2909s gdbus-threading PASS 2909s autopkgtest [10:13:00]: test gdbus-threading: - - - - - - - - - - results - - - - - - - - - - 2910s autopkgtest [10:13:01]: test gmenumodel: preparing testbed 2912s Reading package lists... 2913s Building dependency tree... 2913s Reading state information... 2914s Solving dependencies... 2915s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2918s autopkgtest [10:13:09]: test gmenumodel: [----------------------- 2919s Running test: glib/gmenumodel.test 2919s TAP version 14 2919s # random seed: R02S9399d7c7c828a3a80a6ca299d92c237c 2919s 1..15 2919s # Start of gmenu tests 2922s ok 1 /gmenu/equality 2922s # slow test /gmenu/equality executed in 3.56 secs 2924s Executing: glib/gmenumodel.test 2926s ok 2 /gmenu/random 2926s # slow test /gmenu/random executed in 3.89 secs 2926s ok 3 /gmenu/attributes 2926s ok 4 /gmenu/links 2926s ok 5 /gmenu/mutable 2926s ok 6 /gmenu/convenience 2926s ok 7 /gmenu/menuitem 2926s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 2926s ok 8 /gmenu/input-validation 2926s # Start of dbus tests 2929s Executing: glib/gmenumodel.test 2932s ok 9 /gmenu/dbus/roundtrip 2932s # slow test /gmenu/dbus/roundtrip executed in 5.19 secs 2932s ok 10 /gmenu/dbus/subscriptions 2932s # slow test /gmenu/dbus/subscriptions executed in 0.64 secs 2935s Executing: glib/gmenumodel.test 2938s ok 11 /gmenu/dbus/threaded 2938s # slow test /gmenu/dbus/threaded executed in 5.79 secs 2938s # Start of peer tests 2940s Executing: glib/gmenumodel.test 2943s ok 12 /gmenu/dbus/peer/roundtrip 2943s # slow test /gmenu/dbus/peer/roundtrip executed in 5.06 secs 2944s ok 13 /gmenu/dbus/peer/subscriptions 2944s # slow test /gmenu/dbus/peer/subscriptions executed in 0.96 secs 2944s # End of peer tests 2944s # Start of export tests 2944s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 2944s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 2944s ok 14 /gmenu/dbus/export/error-handling 2944s # End of export tests 2944s # End of dbus tests 2944s # Start of attributes tests 2944s ok 15 /gmenu/attributes/iterate 2944s # End of attributes tests 2944s # End of gmenu tests 2944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2944s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2944s PASS: glib/gmenumodel.test 2944s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=2.5s; system=2.5s; maxrss=42336 2945s autopkgtest [10:13:36]: test gmenumodel: -----------------------] 2947s gmenumodel PASS 2947s autopkgtest [10:13:38]: test gmenumodel: - - - - - - - - - - results - - - - - - - - - - 2948s autopkgtest [10:13:39]: test mainloop: preparing testbed 2949s Reading package lists... 2951s Building dependency tree... 2951s Reading state information... 2952s Solving dependencies... 2953s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2957s autopkgtest [10:13:48]: test mainloop: [----------------------- 2958s Running test: glib/mainloop.test 2958s TAP version 14 2958s # random seed: R02S798c74d8a97b1997d1f75bce488e6840 2958s 1..47 2958s # Start of maincontext tests 2958s ok 1 /maincontext/basic 2958s # Add same-priority sources: 200 2958s # Find each source: 3 2959s # Remove in random order: 161 2959s ok 2 /maincontext/nsources_same_priority 2959s # Add different-priority sources: 237 2959s # Find each source: 2 2959s # Remove in random order: 120 2959s ok 3 /maincontext/nsources_different_priority 2960s # Add sources from threads: 764 2960s # Remove sources from threads: 309 2960s ok 4 /maincontext/nsources_threadpool 2960s # slow test /maincontext/nsources_threadpool executed in 1.20 secs 2960s ok 5 /maincontext/source_finalization 2960s # /maincontext/idle-once summary: Test g_idle_add_once() works 2960s ok 6 /maincontext/idle-once 2960s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 2960s ok 7 /maincontext/timeout-once 2960s # /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. 2960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/3725 2960s ok 8 /maincontext/context-ref-in-source-callbackfuncs-unref 2960s # Start of source_finalization_from_source tests 2960s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2960s ok 9 /maincontext/source_finalization_from_source/0 2960s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2960s ok 10 /maincontext/source_finalization_from_source/1 2960s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2960s ok 11 /maincontext/source_finalization_from_source/2 2960s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2960s ok 12 /maincontext/source_finalization_from_source/3 2960s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2960s ok 13 /maincontext/source_finalization_from_source/4 2960s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2960s ok 14 /maincontext/source_finalization_from_source/5 2960s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2960s ok 15 /maincontext/source_finalization_from_source/6 2960s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2960s ok 16 /maincontext/source_finalization_from_source/7 2960s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2960s ok 17 /maincontext/source_finalization_from_source/8 2960s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2960s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2960s ok 18 /maincontext/source_finalization_from_source/9 2960s # End of source_finalization_from_source tests 2960s # Start of source_finalization_from_dispatch tests 2960s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 2960s ok 19 /maincontext/source_finalization_from_dispatch/0 2960s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 2960s ok 20 /maincontext/source_finalization_from_dispatch/1 2960s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 2960s ok 21 /maincontext/source_finalization_from_dispatch/2 2960s # End of source_finalization_from_dispatch tests 2960s # End of maincontext tests 2960s # Start of mainloop tests 2960s ok 22 /mainloop/basic 2960s ok 23 /mainloop/timeouts # SKIP Not running timing heavy test 2960s ok 24 /mainloop/priorities 2961s ok 25 /mainloop/invoke 2961s # slow test /mainloop/invoke executed in 0.62 secs 2963s Executing: glib/mainloop.test 2967s ok 26 /mainloop/child_sources 2967s # slow test /mainloop/child_sources executed in 6.42 secs 2968s Executing: glib/mainloop.test 2973s Executing: glib/mainloop.test 2978s Executing: glib/mainloop.test 2980s ok 27 /mainloop/recursive_child_sources 2980s # slow test /mainloop/recursive_child_sources executed in 12.49 secs 2980s ok 28 /mainloop/recursive_loop_child_sources 2981s ok 29 /mainloop/swapping_child_sources 2981s # slow test /mainloop/swapping_child_sources executed in 0.54 secs 2981s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 2981s ok 30 /mainloop/blocked_child_sources 2982s ok 31 /mainloop/source_time 2982s # slow test /mainloop/source_time executed in 1.01 secs 2982s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 2982s ok 32 /mainloop/overflow 2982s ok 33 /mainloop/ready-time 2982s # slow test /mainloop/ready-time executed in 0.50 secs 2982s ok 34 /mainloop/wakeup 2982s ok 35 /mainloop/remove-invalid 2982s ok 36 /mainloop/unref-while-pending 2983s Executing: glib/mainloop.test 2984s ok 37 /mainloop/unix-fd 2984s # slow test /mainloop/unix-fd executed in 2.36 secs 2984s ok 38 /mainloop/unix-fd-source 2984s ok 39 /mainloop/source-unix-fd-api 2985s ok 40 /mainloop/wait 2985s ok 41 /mainloop/unix-file-poll 2985s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 2985s ok 42 /mainloop/unix-fd-priority 2985s ok 43 /mainloop/nfds 2985s ok 44 /mainloop/steal-fd 2988s Executing: glib/mainloop.test 2993s ok 45 /mainloop/simultaneous-source-context-destruction 2993s # slow test /mainloop/simultaneous-source-context-destruction executed in 8.09 secs 2993s # Start of ownerless-polling tests 2993s ok 46 /mainloop/ownerless-polling/attach-first 2993s ok 47 /mainloop/ownerless-polling/pop-first 2993s # End of ownerless-polling tests 2993s # End of mainloop tests 2993s PASS: glib/mainloop.test 2993s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=2.3s; maxrss=16740 2993s autopkgtest [10:14:24]: test mainloop: -----------------------] 2995s autopkgtest [10:14:26]: test mainloop: - - - - - - - - - - results - - - - - - - - - - 2995s mainloop PASS 2995s autopkgtest [10:14:26]: test memory-monitor-dbus: preparing testbed 2998s Reading package lists... 2999s Building dependency tree... 2999s Reading state information... 2999s Solving dependencies... 3000s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3002s autopkgtest [10:14:33]: test memory-monitor-dbus: [----------------------- 3002s Running test: glib/memory-monitor-dbus.test 3004s TAP version 13 3004s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal 3004s # Received memory warning signal, level 0 3004s # Received memory warning signal, level 100 3004s # Received memory warning signal, level 255 3004s 1..1 3004s PASS: glib/memory-monitor-dbus.test 3004s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.2s; system=0.1s; maxrss=30992 3005s autopkgtest [10:14:36]: test memory-monitor-dbus: -----------------------] 3005s memory-monitor-dbus PASS 3005s autopkgtest [10:14:36]: test memory-monitor-dbus: - - - - - - - - - - results - - - - - - - - - - 3007s autopkgtest [10:14:38]: test socket: preparing testbed 3007s Reading package lists... 3009s Building dependency tree... 3009s Reading state information... 3009s Solving dependencies... 3010s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3013s autopkgtest [10:14:44]: test socket: [----------------------- 3013s Running test: glib/socket.test 3013s TAP version 14 3013s # random seed: R02S8f4a97bac141d817fca25f7d0ea7a84e 3013s 1..30 3013s # Start of socket tests 3015s ok 1 /socket/ipv4_sync 3015s # slow test /socket/ipv4_sync executed in 1.17 secs 3016s ok 2 /socket/ipv4_async 3016s # slow test /socket/ipv4_async executed in 1.14 secs 3016s ok 3 /socket/ipv6_sync 3016s ok 4 /socket/ipv6_async 3016s ok 5 /socket/ipv6_v4mapped 3017s ok 6 /socket/close_graceful 3017s # slow test /socket/close_graceful executed in 1.07 secs 3017s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 3017s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 3017s ok 8 /socket/fd_reuse 3017s ok 9 /socket/address 3017s ok 10 /socket/unix-from-fd 3017s ok 11 /socket/unix-connection 3017s ok 12 /socket/unix-connection-ancillary-data 3017s ok 13 /socket/source-postmortem 3017s ok 14 /socket/read_write 3017s ok 15 /socket/read_writev 3017s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 3017s ok 16 /socket/receive_bytes 3017s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 3017s ok 17 /socket/receive_bytes_from 3017s # Start of ipv4_sync tests 3017s ok 18 /socket/ipv4_sync/datagram 3017s # Start of datagram tests 3018s ok 19 /socket/ipv4_sync/datagram/timeouts 3018s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.31 secs 3018s # End of datagram tests 3018s # End of ipv4_sync tests 3018s # Start of ipv6_sync tests 3018s ok 20 /socket/ipv6_sync/datagram 3018s # Start of datagram tests 3018s Executing: glib/socket.test 3019s ok 21 /socket/ipv6_sync/datagram/timeouts 3019s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.20 secs 3019s # End of datagram tests 3019s # End of ipv6_sync tests 3019s # Start of reuse tests 3019s ok 22 /socket/reuse/tcp 3019s ok 23 /socket/reuse/udp 3019s # End of reuse tests 3019s # Start of get_available tests 3020s ok 24 /socket/get_available/datagram 3020s ok 25 /socket/get_available/stream 3020s # End of get_available tests 3020s # Start of credentials tests 3020s # Supported on this OS: GCredentials:linux-ucred:pid=0 3020s ok 26 /socket/credentials/tcp_client 3020s # Supported on this OS: GCredentials:linux-ucred:pid=0 3020s ok 27 /socket/credentials/tcp_server 3020s # Supported on this OS: GCredentials:linux-ucred:pid=66654,uid=1000,gid=1000 3020s ok 28 /socket/credentials/unix_socketpair 3020s # End of credentials tests 3020s # Start of accept tests 3020s # /socket/accept/cancelled summary: Calling g_socket_accept() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 3020s ok 29 /socket/accept/cancelled 3020s # End of accept tests 3020s # Start of connect tests 3020s # /socket/connect/cancelled summary: Calling g_socket_connect() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 3020s ok 30 /socket/connect/cancelled 3020s # End of connect tests 3020s # End of socket tests 3020s PASS: glib/socket.test 3020s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=5740 3020s autopkgtest [10:14:51]: test socket: -----------------------] 3021s autopkgtest [10:14:52]: test socket: - - - - - - - - - - results - - - - - - - - - - 3021s socket PASS 3022s autopkgtest [10:14:53]: test testfilemonitor: preparing testbed 3023s Reading package lists... 3024s Building dependency tree... 3024s Reading state information... 3024s Solving dependencies... 3025s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3028s autopkgtest [10:14:59]: test testfilemonitor: [----------------------- 3029s Running test: glib/testfilemonitor.test 3029s TAP version 14 3029s # random seed: R02S9f007ac99387760546116f830b595a98 3029s 1..8 3029s # Start of monitor tests 3029s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 3029s # Using temporary directory: /tmp/gio-test-testfilemonitor_DBTNK3 3029s # Using GFileMonitor GInotifyFileMonitor 3031s # Recorded events: 3031s # >>>> step 0 3031s # created file=atomic_replace_file other_file=(null) 3031s # 3031s # changed file=atomic_replace_file other_file=(null) 3031s # 3031s # changes-done-hint file=atomic_replace_file other_file=(null) 3031s # 3031s # >>>> step 1 3031s # >>>> step 2 3031s # renamed file=.goutputstream-P0PLK3 other_file=atomic_replace_file 3031s # 3031s # deleted file=atomic_replace_file other_file=(null) 3031s # 3031s # >>>> step 3 3031s # Expected events: 3031s # >>>> step 0 3031s # created file=atomic_replace_file other_file=(null) 3031s # 3031s # changed file=atomic_replace_file other_file=(null) 3031s # 3031s ** 3031s GLib-GIO:ERROR:../../../gio/tests/testfilemonitor.c:272:check_expected_events: assertion failed (e1->step == e2->step): (-1 == 2) 3031s # changes-done-hint file=atomic_replace_file other_file=(null) 3031s # 3031s # >>>> step 1 3031s # renamed file= other_file=atomic_replace_file 3031s # 3031s # >>>> step 2 3031s # deleted file=atomic_replace_file other_file=(null) 3031s # 3031s # >>>> step 3 3031s not ok /monitor/atomic-replace - GLib-GIO:ERROR:../../../gio/tests/testfilemonitor.c:272:check_expected_events: assertion failed (e1->step == e2->step): (-1 == 2) 3031s Bail out! 3034s Executing: glib/testfilemonitor.test 3039s Executing: glib/testfilemonitor.test 3042s FAIL: glib/testfilemonitor.test (Child process killed by signal 6) 3042s SUMMARY: total=1; passed=0; skipped=0; failed=1; user=0.0s; system=0.0s; maxrss=5580 3042s FAIL: glib/testfilemonitor.test (Child process killed by signal 6) 3043s autopkgtest [10:15:14]: test testfilemonitor: -----------------------] 3045s testfilemonitor FLAKY non-zero exit status 2 3045s autopkgtest [10:15:16]: test testfilemonitor: - - - - - - - - - - results - - - - - - - - - - 3046s autopkgtest [10:15:17]: test thread-pool-slow: preparing testbed 3047s Reading package lists... 3049s Building dependency tree... 3049s Reading state information... 3050s Solving dependencies... 3051s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3054s autopkgtest [10:15:25]: test thread-pool-slow: [----------------------- 3054s Running test: glib/thread-pool-slow.test 3054s TAP version 14 3054s # random seed: R02Sac586b9e2eca4128b63f80e9e23816f0 3054s 1..7 3054s # Start of threadpool tests 3054s ok 1 /threadpool/functions 3055s ok 2 /threadpool/stop-unused 3055s # slow test /threadpool/stop-unused executed in 1.02 secs 3056s ok 3 /threadpool/pools 3056s # slow test /threadpool/pools executed in 0.57 secs 3056s # [unsorted] ===> pushed new thread with id:51, number of threads:1, unprocessed:0 3056s # [unsorted] ===> pushed new thread with id:2, number of threads:2, unprocessed:0 3056s # [unsorted] ===> pushed new thread with id:89, number of threads:3, unprocessed:1 3056s # [unsorted] ===> pushed new thread with id:35, number of threads:4, unprocessed:2 3056s # [unsorted] ===> pushed new thread with id:52, number of threads:5, unprocessed:3 3056s # [unsorted] ===> pushed new thread with id:91, number of threads:6, unprocessed:4 3056s # [unsorted] ===> pushed new thread with id:53, number of threads:7, unprocessed:5 3056s # [unsorted] ===> pushed new thread with id:94, number of threads:8, unprocessed:6 3056s # [unsorted] ===> pushed new thread with id:4, number of threads:9, unprocessed:7 3056s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:8 3056s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:9 3056s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:10 3056s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:11 3056s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:12 3056s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:13 3056s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:14 3056s # [unsorted] ===> pushed new thread with id:73, number of threads:10, unprocessed:15 3056s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:16 3056s # [unsorted] ===> pushed new thread with id:73, number of threads:10, unprocessed:17 3056s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:18 3056s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:19 3056s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:20 3056s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:21 3056s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:22 3056s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:23 3056s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:24 3056s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:25 3056s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:26 3056s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:27 3056s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:28 3056s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:29 3056s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:30 3056s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:31 3056s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:32 3056s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:33 3056s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:34 3056s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:35 3056s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:36 3056s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:37 3056s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:38 3056s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:39 3056s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:40 3056s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:41 3056s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:42 3056s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:43 3056s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:44 3056s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:45 3056s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:46 3056s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:47 3056s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:48 3056s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:49 3056s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:50 3056s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:51 3056s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:52 3056s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:53 3056s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:54 3056s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:55 3056s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:56 3056s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:57 3056s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:58 3056s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:59 3056s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:60 3056s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:61 3056s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:62 3056s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:63 3056s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:64 3056s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:65 3056s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:66 3056s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:67 3056s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:68 3056s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:69 3056s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:70 3056s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:71 3056s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:72 3056s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:73 3056s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:74 3056s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:75 3056s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:76 3056s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:77 3056s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:78 3056s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:79 3056s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:80 3056s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:81 3056s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:82 3056s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:83 3056s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:84 3056s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:85 3056s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:86 3056s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:87 3056s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:88 3056s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:89 3056s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:90 3056s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:91 3056s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:92 3056s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:93 3056s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:94 3056s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:95 3056s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:96 3056s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:97 3056s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:98 3056s ok 4 /threadpool/no-sort 3056s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:1 3056s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:2 3056s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:3 3056s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:4 3056s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:5 3056s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:6 3056s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:7 3056s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:8 3056s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:9 3056s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:10 3056s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:11 3056s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:12 3056s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:13 3056s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:14 3056s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:15 3056s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:16 3056s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:17 3056s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:18 3056s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:19 3056s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:20 3056s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:21 3056s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:22 3056s # [ sorted] ===> pushed new thread with id:46, number of threads:0, unprocessed:23 3056s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:24 3056s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:25 3056s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:26 3056s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:27 3056s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:28 3056s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:29 3056s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:30 3056s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:31 3056s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:32 3056s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:33 3056s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:34 3056s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:35 3056s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:36 3056s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:37 3056s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:38 3056s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:39 3056s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:40 3056s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:41 3056s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:42 3056s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:43 3056s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:44 3056s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:45 3056s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:46 3056s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:47 3056s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:48 3056s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:49 3056s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:50 3056s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:51 3056s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:52 3056s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:53 3056s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:54 3056s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:55 3056s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:56 3056s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:57 3056s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:58 3056s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:59 3056s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:60 3056s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:61 3056s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:62 3056s # [ sorted] ===> pushed new thread with id:46, number of threads:0, unprocessed:63 3056s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:64 3056s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:65 3056s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:66 3056s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:67 3056s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:68 3056s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:69 3056s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:70 3056s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:71 3056s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:72 3056s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:73 3056s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:74 3056s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:75 3056s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:76 3056s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:77 3056s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:78 3056s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:79 3056s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:80 3056s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:81 3056s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:82 3056s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:83 3056s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:84 3056s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:85 3056s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:86 3056s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:87 3056s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:88 3056s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:89 3056s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:90 3056s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:91 3056s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:92 3056s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:93 3056s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:94 3056s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:95 3056s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:96 3056s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:97 3056s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:98 3056s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:99 3056s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:100 3056s # Starting thread pool processing 3056s ok 5 /threadpool/sort 3056s ok 6 /threadpool/stop-unused-multiple 3056s # slow test /threadpool/stop-unused-multiple executed in 0.58 secs 3056s # Pool idle thread count: 0, unprocessed jobs: 40 3057s # Pool idle thread count: 0, unprocessed jobs: 0 3057s # Pool idle thread count: 0, unprocessed jobs: 0 3057s # Pool idle thread count: 10, unprocessed jobs: 0 3057s # Pool idle thread count: 10, unprocessed jobs: 0 3058s # Pool idle thread count: 10, unprocessed jobs: 0 3058s # Pool idle thread count: 10, unprocessed jobs: 0 3059s # Pool idle thread count: 10, unprocessed jobs: 0 3059s # Pool idle thread count: 10, unprocessed jobs: 0 3059s # Pool idle thread count: 10, unprocessed jobs: 0 3059s # Pool idle thread count: 10, unprocessed jobs: 0 3059s Executing: glib/thread-pool-slow.test 3059s # Pool idle thread count: 10, unprocessed jobs: 0 3059s # Pool idle thread count: 10, unprocessed jobs: 0 3060s # Pool idle thread count: 10, unprocessed jobs: 0 3060s # Pool idle thread count: 10, unprocessed jobs: 0 3061s # Pool idle thread count: 10, unprocessed jobs: 0 3061s # Pool idle thread count: 10, unprocessed jobs: 0 3061s # Pool idle thread count: 10, unprocessed jobs: 0 3061s # Pool idle thread count: 10, unprocessed jobs: 0 3062s # Pool idle thread count: 10, unprocessed jobs: 0 3062s # Pool idle thread count: 10, unprocessed jobs: 0 3062s # Pool idle thread count: 10, unprocessed jobs: 0 3062s # Pool idle thread count: 10, unprocessed jobs: 0 3063s # Pool idle thread count: 10, unprocessed jobs: 0 3063s # Pool idle thread count: 10, unprocessed jobs: 0 3063s # Pool idle thread count: 10, unprocessed jobs: 0 3063s # Pool idle thread count: 10, unprocessed jobs: 0 3064s # Pool idle thread count: 10, unprocessed jobs: 0 3064s # Pool idle thread count: 10, unprocessed jobs: 0 3064s Executing: glib/thread-pool-slow.test 3064s # Pool idle thread count: 10, unprocessed jobs: 0 3064s # Pool idle thread count: 10, unprocessed jobs: 0 3065s # Pool idle thread count: 10, unprocessed jobs: 0 3065s # Pool idle thread count: 10, unprocessed jobs: 0 3065s # Pool idle thread count: 10, unprocessed jobs: 2 3065s # Pool idle thread count: 9, unprocessed jobs: 1 3066s # Pool idle thread count: 8, unprocessed jobs: 0 3066s # Pool idle thread count: 8, unprocessed jobs: 0 3066s # Pool idle thread count: 10, unprocessed jobs: 0 3066s # Pool idle thread count: 10, unprocessed jobs: 0 3067s # Pool idle thread count: 10, unprocessed jobs: 0 3067s # Pool idle thread count: 10, unprocessed jobs: 0 3067s # Pool idle thread count: 2, unprocessed jobs: 0 3067s # Pool idle thread count: 2, unprocessed jobs: 0 3068s # Pool idle thread count: 2, unprocessed jobs: 0 3068s # Pool idle thread count: 2, unprocessed jobs: 0 3068s # Pool idle thread count: 2, unprocessed jobs: 0 3068s # Pool idle thread count: 2, unprocessed jobs: 0 3069s # Pool idle thread count: 2, unprocessed jobs: 0 3069s # Pool idle thread count: 2, unprocessed jobs: 0 3069s Executing: glib/thread-pool-slow.test 3069s # Pool idle thread count: 2, unprocessed jobs: 0 3069s # Pool idle thread count: 2, unprocessed jobs: 0 3070s # Pool idle thread count: 2, unprocessed jobs: 0 3070s # Pool idle thread count: 2, unprocessed jobs: 0 3071s # Pool idle thread count: 2, unprocessed jobs: 0 3071s # Pool idle thread count: 2, unprocessed jobs: 0 3071s # Pool idle thread count: 2, unprocessed jobs: 0 3071s # Pool idle thread count: 2, unprocessed jobs: 0 3072s # Pool idle thread count: 2, unprocessed jobs: 0 3072s # Pool idle thread count: 2, unprocessed jobs: 0 3072s # Pool idle thread count: 2, unprocessed jobs: 0 3072s # Pool idle thread count: 2, unprocessed jobs: 0 3073s # Pool idle thread count: 2, unprocessed jobs: 0 3073s # Pool idle thread count: 2, unprocessed jobs: 0 3073s # Pool idle thread count: 2, unprocessed jobs: 0 3073s # Pool idle thread count: 2, unprocessed jobs: 0 3074s # Pool idle thread count: 2, unprocessed jobs: 0 3074s # Pool idle thread count: 2, unprocessed jobs: 0 3074s Executing: glib/thread-pool-slow.test 3074s # Pool idle thread count: 2, unprocessed jobs: 0 3074s # Pool idle thread count: 2, unprocessed jobs: 0 3075s # Pool idle thread count: 2, unprocessed jobs: 0 3075s # Pool idle thread count: 2, unprocessed jobs: 0 3075s # Pool idle thread count: 2, unprocessed jobs: 0 3075s # Pool idle thread count: 2, unprocessed jobs: 0 3076s # Pool idle thread count: 2, unprocessed jobs: 0 3076s # Pool idle thread count: 2, unprocessed jobs: 0 3076s ok 7 /threadpool/idle-time 3076s # slow test /threadpool/idle-time executed in 19.96 secs 3076s # End of threadpool tests 3076s PASS: glib/thread-pool-slow.test 3076s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.1s; system=0.3s; maxrss=3680 3077s autopkgtest [10:15:48]: test thread-pool-slow: -----------------------] 3079s thread-pool-slow PASS 3079s autopkgtest [10:15:50]: test thread-pool-slow: - - - - - - - - - - results - - - - - - - - - - 3080s autopkgtest [10:15:51]: test threadtests: preparing testbed 3081s Reading package lists... 3083s Building dependency tree... 3083s Reading state information... 3083s Solving dependencies... 3084s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3087s autopkgtest [10:15:58]: test threadtests: [----------------------- 3088s Running test: glib/threadtests.test 3088s TAP version 14 3088s # random seed: R02S254a7b9aec32b684d3f50c7441a4604d 3088s 1..5 3088s # Start of GObject tests 3088s ok 1 /GObject/threaded-object-init 3093s Executing: glib/threadtests.test 3098s Executing: glib/threadtests.test 3100s ok 2 /GObject/threaded-weak-ref 3100s # slow test /GObject/threaded-weak-ref executed in 12.61 secs 3100s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 3100s # /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 3101s ok 3 /GObject/threaded-toggle-notify 3101s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 3101s # Start of threaded-weak-ref tests 3101s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 3101s # /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. 3101s ok 5 /GObject/threaded-weak-ref/on-finalization 3101s # End of threaded-weak-ref tests 3101s # End of GObject tests 3101s PASS: glib/threadtests.test 3101s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.2s; system=3.0s; maxrss=3612 3102s autopkgtest [10:16:13]: test threadtests: -----------------------] 3103s autopkgtest [10:16:14]: test threadtests: - - - - - - - - - - results - - - - - - - - - - 3103s threadtests PASS 3104s autopkgtest [10:16:15]: test timeout: preparing testbed 3105s Reading package lists... 3108s Building dependency tree... 3108s Reading state information... 3108s Solving dependencies... 3109s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3112s autopkgtest [10:16:23]: test timeout: [----------------------- 3113s Running test: glib/timeout.test 3113s TAP version 14 3113s # random seed: R02S0e01f3810c120ed460020f4131564b97 3113s 1..5 3113s # Start of timeout tests 3113s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 3115s ok 1 /timeout/seconds 3115s # slow test /timeout/seconds executed in 2.17 secs 3117s ok 2 /timeout/seconds-once 3117s # slow test /timeout/seconds-once executed in 2.10 secs 3117s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 3118s Executing: glib/timeout.test 3119s ok 3 /timeout/weeks-overflow 3119s # slow test /timeout/weeks-overflow executed in 2.16 secs 3119s ok 4 /timeout/far-future-ready-time 3123s Executing: glib/timeout.test 3128s Executing: glib/timeout.test 3129s ok 5 /timeout/rounding 3129s # slow test /timeout/rounding executed in 10.20 secs 3129s # End of timeout tests 3129s PASS: glib/timeout.test 3129s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2908 3130s autopkgtest [10:16:41]: test timeout: -----------------------] 3131s timeout PASS 3131s autopkgtest [10:16:42]: test timeout: - - - - - - - - - - results - - - - - - - - - - 3131s autopkgtest [10:16:42]: test timer: preparing testbed 3132s Reading package lists... 3133s Building dependency tree... 3134s Reading state information... 3134s Solving dependencies... 3135s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3138s autopkgtest [10:16:49]: test timer: [----------------------- 3139s Running test: glib/timer.test 3139s TAP version 14 3139s # random seed: R02S74de7031c29043bc5a0a75432482b408 3139s 1..10 3139s # Start of timer tests 3139s ok 1 /timer/basic 3139s ok 2 /timer/stop 3139s ok 3 /timer/continue 3139s ok 4 /timer/reset 3139s ok 5 /timer/is_active 3139s # End of timer tests 3139s # Start of timeval tests 3139s ok 6 /timeval/add 3139s ok 7 /timeval/from-iso8601 3139s ok 8 /timeval/to-iso8601 3139s # Start of to-iso8601 tests 3139s ok 9 /timeval/to-iso8601/overflow 3139s # End of to-iso8601 tests 3139s # End of timeval tests 3139s # Start of usleep tests 3139s ok 10 /usleep/with-zero-wait 3139s # End of usleep tests 3139s PASS: glib/timer.test 3139s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=3044 3140s autopkgtest [10:16:51]: test timer: -----------------------] 3142s autopkgtest [10:16:53]: test timer: - - - - - - - - - - results - - - - - - - - - - 3142s timer PASS 3142s autopkgtest [10:16:53]: test 1065022-futureproofing: preparing testbed 3160s Creating nova instance adt-resolute-s390x-glib2.0-20260207-092431-juju-7f2275-prod-proposed-migration-environment-15-6e4bd5e6-d99e-4bc5-a398-82926f07dd34 from image adt/ubuntu-resolute-s390x-server-20260206.img (UUID 49c0a1d9-89cb-4112-bb14-7a2a39e81cac)... 3319s autopkgtest [10:19:50]: testbed dpkg architecture: s390x 3320s autopkgtest [10:19:51]: testbed apt version: 3.1.15 3321s autopkgtest [10:19:52]: @@@@@@@@@@@@@@@@@@@@ test bed setup 3321s autopkgtest [10:19:52]: testbed release detected to be: resolute 3323s autopkgtest [10:19:54]: updating testbed package index (apt update) 3324s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 3324s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 3324s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 3324s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 3324s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1608 kB] 3324s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [35.1 kB] 3324s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 3324s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [196 kB] 3325s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x Packages [233 kB] 3325s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x Packages [1399 kB] 3325s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse s390x Packages [10.2 kB] 3328s Fetched 3616 kB in 4s (1015 kB/s) 3333s Reading package lists... 3336s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 3336s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 3336s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 3336s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 3342s Reading package lists... 3342s Reading package lists... 3343s Building dependency tree... 3343s Reading state information... 3344s Calculating upgrade... 3345s The following packages will be upgraded: 3345s 3cpio libpcap0.8t64 libpcre2-8-0 3345s 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3345s Need to get 743 kB of archives. 3345s After this operation, 4096 B disk space will be freed. 3345s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libpcre2-8-0 s390x 10.46-1build1 [276 kB] 3345s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x libpcap0.8t64 s390x 1.10.5-2ubuntu3 [155 kB] 3345s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x 3cpio s390x 0.14.0-1ubuntu1 [313 kB] 3348s dpkg-preconfigure: unable to re-open stdin: No such file or directory 3348s Fetched 743 kB in 0s (3250 kB/s) 3350s (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 ... 61954 files and directories currently installed.) 3350s Preparing to unpack .../libpcre2-8-0_10.46-1build1_s390x.deb ... 3350s Unpacking libpcre2-8-0:s390x (10.46-1build1) over (10.46-1) ... 3350s Setting up libpcre2-8-0:s390x (10.46-1build1) ... 3350s (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 ... 61954 files and directories currently installed.) 3350s Preparing to unpack .../libpcap0.8t64_1.10.5-2ubuntu3_s390x.deb ... 3351s Unpacking libpcap0.8t64:s390x (1.10.5-2ubuntu3) over (1.10.5-2ubuntu2) ... 3353s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_s390x.deb ... 3353s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 3353s Setting up 3cpio (0.14.0-1ubuntu1) ... 3354s Setting up libpcap0.8t64:s390x (1.10.5-2ubuntu3) ... 3354s Processing triggers for man-db (2.13.1-1) ... 3376s Processing triggers for libselinux1:s390x (3.9-4) ... 3377s Processing triggers for libc-bin (2.42-2ubuntu4) ... 3380s autopkgtest [10:20:51]: upgrading testbed (apt dist-upgrade and autopurge) 3380s Reading package lists... 3382s Building dependency tree... 3382s Reading state information... 3383s Calculating upgrade... 3384s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3385s Reading package lists... 3386s Building dependency tree... 3386s Reading state information... 3386s Solving dependencies... 3388s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3396s Reading package lists... 3397s Building dependency tree... 3397s Reading state information... 3398s Solving dependencies... 3398s The following NEW packages will be installed: 3398s dconf-gsettings-backend dconf-service dpkg-repack gsettings-desktop-schemas 3398s libdconf1 3399s 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. 3399s Need to get 142 kB of archives. 3399s After this operation, 636 kB of additional disk space will be used. 3399s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x libdconf1 s390x 0.49.0-4 [40.7 kB] 3399s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x dconf-service s390x 0.49.0-4 [28.1 kB] 3399s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x dconf-gsettings-backend s390x 0.49.0-4 [22.6 kB] 3399s Get:4 http://ftpmaster.internal/ubuntu resolute/main s390x dpkg-repack all 1.54build1 [11.2 kB] 3399s Get:5 http://ftpmaster.internal/ubuntu resolute/main s390x gsettings-desktop-schemas all 50~alpha-1ubuntu1 [38.9 kB] 3400s Fetched 142 kB in 0s (484 kB/s) 3400s Selecting previously unselected package libdconf1:s390x. 3400s (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 ... 61954 files and directories currently installed.) 3400s Preparing to unpack .../libdconf1_0.49.0-4_s390x.deb ... 3400s Unpacking libdconf1:s390x (0.49.0-4) ... 3400s Selecting previously unselected package dconf-service. 3400s Preparing to unpack .../dconf-service_0.49.0-4_s390x.deb ... 3400s Unpacking dconf-service (0.49.0-4) ... 3401s Selecting previously unselected package dconf-gsettings-backend:s390x. 3401s Preparing to unpack .../dconf-gsettings-backend_0.49.0-4_s390x.deb ... 3401s Unpacking dconf-gsettings-backend:s390x (0.49.0-4) ... 3401s Selecting previously unselected package dpkg-repack. 3401s Preparing to unpack .../dpkg-repack_1.54build1_all.deb ... 3401s Unpacking dpkg-repack (1.54build1) ... 3401s Selecting previously unselected package gsettings-desktop-schemas. 3401s Preparing to unpack .../gsettings-desktop-schemas_50~alpha-1ubuntu1_all.deb ... 3401s Unpacking gsettings-desktop-schemas (50~alpha-1ubuntu1) ... 3401s Setting up dpkg-repack (1.54build1) ... 3401s Setting up libdconf1:s390x (0.49.0-4) ... 3401s Setting up dconf-service (0.49.0-4) ... 3401s Setting up dconf-gsettings-backend:s390x (0.49.0-4) ... 3401s Setting up gsettings-desktop-schemas (50~alpha-1ubuntu1) ... 3401s Processing triggers for man-db (2.13.1-1) ... 3403s Processing triggers for libglib2.0-0t64:s390x (2.86.3-4) ... 3403s Processing triggers for libc-bin (2.42-2ubuntu4) ... 3417s autopkgtest [10:21:28]: test 1065022-futureproofing: [----------------------- 3418s + export DEBIAN_FRONTEND=noninteractive 3418s + n=0 3418s + failed=0 3418s + binary_package=libglib2.0-0t64 3418s + future_binary_package=libglib2.0-0xyz 3418s + pwd 3418s + srcdir=/tmp/autopkgtest.n2KYti/build.cAr/src 3418s + mktemp -d 3418s + tmpdir=/tmp/tmp.tuoFrKMbrr 3418s + cd /tmp/tmp.tuoFrKMbrr 3418s + exec 3418s + [ -e /tmp/autopkgtest.n2KYti/build.cAr/src/debian/tests/manual/local-1065022.sources ] 3418s + dpkg-query -W dpkg-repack 3418s dpkg-repack 1.54build1 3418s + dpkg-query -s libglib2.0-0t64 3418s Package: libglib2.0-0t64 3418s Status: install ok installed 3418s Priority: important 3418s Section: libs 3418s Installed-Size: 4586 3418s Maintainer: Ubuntu Developers 3418s Architecture: s390x 3418s Multi-Arch: same 3418s Source: glib2.0 3418s Version: 2.86.3-4 3418s Replaces: libglib2.0-0 (<< 2.80.0-7~) 3418s Provides: libgio-2.0-0 (= 2.86.3-4), libglib-2.0-0 (= 2.86.3-4), libglib2.0-0 (= 2.86.3-4), libgmodule-2.0-0 (= 2.86.3-4), libgobject-2.0-0 (= 2.86.3-4), libgthread-2.0-0 (= 2.86.3-4) 3418s 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) 3418s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 3418s Suggests: low-memory-monitor 3418s Breaks: gnome-shell (<< 44.9-2~), libglib2.0-0 (<< 2.80.0-7~) 3418s Description: GLib library of C routines 3418s GLib is a library containing many useful C routines for things such 3418s as trees, hashes, lists, and strings. It is a useful general-purpose 3418s C library used by projects such as GTK+, GIMP, and GNOME. 3418s . 3418s This package contains the shared libraries. 3418s Original-Maintainer: Debian GNOME Maintainers 3418s Homepage: https://gitlab.gnome.org/GNOME/glib 3418s + dpkg-query -W -f ${Version} libglib2.0-0t64 3418s + binary_version=2.86.3-4 3418s + dpkg-repack --generate libglib2.0-0t64 3419s dpkg-repack: warning: unknown information field 'Original-Maintainer' in input data in stanza in dpkg's status file 3419s dpkg-repack: info: created dpkg-repack.libglib2.0-0t64.rnays_ for libglib2.0-0t64 3419s dpkg-repack: info: to build use: "dpkg-deb --build dpkg-repack.libglib2.0-0t64.rnays_ ." 3419s + grep -q ^Breaks: dpkg-repack.libglib2.0-0t64.rnays_/DEBIAN/control 3419s + grep -q ^Provides: dpkg-repack.libglib2.0-0t64.rnays_/DEBIAN/control 3419s + grep -q ^Replaces: dpkg-repack.libglib2.0-0t64.rnays_/DEBIAN/control 3419s + env binary_package=libglib2.0-0t64 binary_version=2.86.3-4 future_binary_package=libglib2.0-0xyz perl -p -i -e s/^Package:.*$/Package: $ENV{future_binary_package}/; -e s/^(Breaks:.*)$/$1, $ENV{binary_package}/; -e s/^(Provides:.*)$/$1, $ENV{binary_package} (= $ENV{binary_version})/; -e s/^(Replaces:.*)$/$1, $ENV{binary_package}/; dpkg-repack.libglib2.0-0t64.rnays_/DEBIAN/control 3419s + dpkg-deb --build dpkg-repack.libglib2.0-0t64.rnays_ libglib2.0-0xyz.deb 3419s dpkg-deb: building package 'libglib2.0-0xyz' in 'libglib2.0-0xyz.deb'. 3433s + dpkg-deb --info libglib2.0-0xyz.deb 3433s new Debian package, version 2.0. 3433s size 1602448 bytes: control archive=25813 bytes. 3433s 1218 bytes, 24 lines control 3433s 1136 bytes, 14 lines md5sums 3433s 1280 bytes, 44 lines * postinst #!/bin/sh 3433s 2576 bytes, 87 lines * postrm #!/bin/sh 3433s 2408 bytes, 53 lines * preinst #!/bin/sh 3433s 466 bytes, 10 lines shlibs 3433s 172677 bytes, 4529 lines symbols 3433s 170 bytes, 4 lines triggers 3433s Package: libglib2.0-0xyz 3433s Source: glib2.0 3433s Version: 2.86.3-4 3433s Architecture: s390x 3433s Maintainer: Ubuntu Developers 3433s Installed-Size: 4586 3433s 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) 3433s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 3433s Suggests: low-memory-monitor 3433s Breaks: gnome-shell (<< 44.9-2~), libglib2.0-0 (<< 2.80.0-7~), libglib2.0-0t64 3433s Replaces: libglib2.0-0 (<< 2.80.0-7~), libglib2.0-0t64 3433s Provides: libgio-2.0-0 (= 2.86.3-4), libglib-2.0-0 (= 2.86.3-4), libglib2.0-0 (= 2.86.3-4), libgmodule-2.0-0 (= 2.86.3-4), libgobject-2.0-0 (= 2.86.3-4), libgthread-2.0-0 (= 2.86.3-4), libglib2.0-0t64 (= 2.86.3-4) 3433s Section: libs 3433s Priority: important 3433s Multi-Arch: same 3433s Homepage: https://gitlab.gnome.org/GNOME/glib 3433s Description: GLib library of C routines 3433s GLib is a library containing many useful C routines for things such 3433s as trees, hashes, lists, and strings. It is a useful general-purpose 3433s C library used by projects such as GTK+, GIMP, and GNOME. 3433s . 3433s This package contains the shared libraries. 3433s . 3433s (Repackaged on Sat, 07 Feb 2026 10:23:13 +0000 by dpkg-repack.) 3433s + dpkg-deb --contents libglib2.0-0xyz.deb 3433s drwxr-xr-x root/root 0 2026-02-07 10:23 ./ 3433s drwxr-xr-x root/root 0 2026-02-07 10:23 ./usr/ 3433s drwxr-xr-x root/root 0 2026-02-07 10:23 ./usr/lib/ 3433s drwxr-xr-x root/root 0 2026-02-07 10:23 ./usr/lib/s390x-linux-gnu/ 3433s drwxr-xr-x root/root 0 2026-02-07 10:23 ./usr/lib/s390x-linux-gnu/gio/ 3433s drwxr-xr-x root/root 0 2026-02-07 10:23 ./usr/lib/s390x-linux-gnu/gio/modules/ 3433s drwxr-xr-x root/root 0 2026-02-07 10:23 ./usr/lib/s390x-linux-gnu/glib-2.0/ 3433s -rwxr-xr-x root/root 10408 2026-01-01 12:59 ./usr/lib/s390x-linux-gnu/glib-2.0/gio-launch-desktop 3433s -rwxr-xr-x root/root 14504 2026-01-01 12:59 ./usr/lib/s390x-linux-gnu/glib-2.0/gio-querymodules 3433s -rwxr-xr-x root/root 51408 2026-01-01 12:59 ./usr/lib/s390x-linux-gnu/glib-2.0/glib-compile-schemas 3433s -rw-r--r-- root/root 2117104 2026-01-01 12:59 ./usr/lib/s390x-linux-gnu/libgio-2.0.so.0.8600.3 3433s -rw-r--r-- root/root 1490408 2026-01-01 12:59 ./usr/lib/s390x-linux-gnu/libglib-2.0.so.0.8600.3 3433s -rw-r--r-- root/root 14376 2026-01-01 12:59 ./usr/lib/s390x-linux-gnu/libgmodule-2.0.so.0.8600.3 3433s -rw-r--r-- root/root 420056 2026-01-01 12:59 ./usr/lib/s390x-linux-gnu/libgobject-2.0.so.0.8600.3 3433s -rw-r--r-- root/root 6152 2026-01-01 12:59 ./usr/lib/s390x-linux-gnu/libgthread-2.0.so.0.8600.3 3433s drwxr-xr-x root/root 0 2026-02-07 10:23 ./usr/share/ 3433s drwxr-xr-x root/root 0 2026-02-07 10:23 ./usr/share/doc/ 3433s drwxr-xr-x root/root 0 2026-02-07 10:23 ./usr/share/doc/libglib2.0-0t64/ 3433s -rw-r--r-- root/root 258310 2025-12-08 15:46 ./usr/share/doc/libglib2.0-0t64/NEWS.gz 3433s -rw-r--r-- root/root 1703 2026-01-01 12:59 ./usr/share/doc/libglib2.0-0t64/README.Debian 3433s -rw-r--r-- root/root 3248 2025-12-08 15:46 ./usr/share/doc/libglib2.0-0t64/README.md 3433s -rw-r--r-- root/root 39086 2026-01-01 12:59 ./usr/share/doc/libglib2.0-0t64/changelog.Debian.gz 3433s -rw-r--r-- root/root 55103 2026-01-01 12:59 ./usr/share/doc/libglib2.0-0t64/copyright 3433s drwxr-xr-x root/root 0 2026-02-07 10:23 ./usr/share/glib-2.0/ 3433s drwxr-xr-x root/root 0 2026-02-07 10:23 ./usr/share/glib-2.0/schemas/ 3433s drwxr-xr-x root/root 0 2026-02-07 10:23 ./usr/share/lintian/ 3433s drwxr-xr-x root/root 0 2026-02-07 10:23 ./usr/share/lintian/overrides/ 3433s -rw-r--r-- root/root 520 2026-01-01 12:59 ./usr/share/lintian/overrides/libglib2.0-0t64 3433s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/s390x-linux-gnu/libgio-2.0.so.0 -> libgio-2.0.so.0.8600.3 3433s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/s390x-linux-gnu/libglib-2.0.so.0 -> libglib-2.0.so.0.8600.3 3433s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/s390x-linux-gnu/libgmodule-2.0.so.0 -> libgmodule-2.0.so.0.8600.3 3433s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/s390x-linux-gnu/libgobject-2.0.so.0 -> libgobject-2.0.so.0.8600.3 3433s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/s390x-linux-gnu/libgthread-2.0.so.0 -> libgthread-2.0.so.0.8600.3 3433s + apt-get -y install ./libglib2.0-0xyz.deb dconf-gsettings-backend gsettings-desktop-schemas 3433s Reading package lists... 3434s Building dependency tree... 3435s Reading state information... 3435s dconf-gsettings-backend is already the newest version (0.49.0-4). 3435s gsettings-desktop-schemas is already the newest version (50~alpha-1ubuntu1). 3436s Solving dependencies... 3437s The following additional packages will be installed: 3437s xdg-user-dirs 3437s Suggested packages: 3437s low-memory-monitor 3437s The following packages will be REMOVED: 3437s libglib2.0-0t64 3437s The following NEW packages will be installed: 3437s libglib2.0-0xyz xdg-user-dirs 3438s 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded. 3438s Need to get 20.1 kB/1623 kB of archives. 3438s After this operation, 168 kB of additional disk space will be used. 3438s Get:1 /tmp/tmp.tuoFrKMbrr/libglib2.0-0xyz.deb libglib2.0-0xyz s390x 2.86.3-4 [1602 kB] 3438s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x xdg-user-dirs s390x 0.19-1 [20.1 kB] 3441s Fetched 20.1 kB in 1s (38.4 kB/s) 3442s dpkg: libglib2.0-0t64:s390x: dependency problems, but removing anyway as you requested: 3442s udisks2 depends on libglib2.0-0t64 (>= 2.80.0). 3442s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0). 3442s s390-tools depends on libglib2.0-0t64 (>= 2.32.0). 3442s python3-gi depends on libglib2.0-0t64 (>= 2.86.0-7~). 3442s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0). 3442s netplan.io depends on libglib2.0-0t64 (>= 2.70.0). 3442s netplan-generator depends on libglib2.0-0t64 (>= 2.16.0). 3442s libxmlb2:s390x depends on libglib2.0-0t64 (>= 2.54.0). 3442s libvolume-key1:s390x depends on libglib2.0-0t64 (>= 2.18.0). 3442s libudisks2-0:s390x depends on libglib2.0-0t64 (>= 2.83.0). 3442s libqrtr-glib0:s390x depends on libglib2.0-0t64 (>= 2.56). 3442s libqmi-proxy depends on libglib2.0-0t64 (>= 2.30.0). 3442s libqmi-glib5:s390x depends on libglib2.0-0t64 (>= 2.54.0). 3442s libpolkit-gobject-1-0:s390x depends on libglib2.0-0t64 (>= 2.38.0). 3442s libpolkit-agent-1-0:s390x depends on libglib2.0-0t64 (>= 2.38.0). 3442s libnetplan1:s390x depends on libglib2.0-0t64 (>= 2.76.0). 3442s libmm-glib0:s390x depends on libglib2.0-0t64 (>= 2.62.0). 3442s libmbim-proxy depends on libglib2.0-0t64 (>= 2.56). 3442s libmbim-glib4:s390x depends on libglib2.0-0t64 (>= 2.56). 3442s libjson-glib-1.0-0:s390x depends on libglib2.0-0t64 (>= 2.80.0). 3442s libjcat1:s390x depends on libglib2.0-0t64 (>= 2.80.0). 3442s libgudev-1.0-0:s390x depends on libglib2.0-0t64 (>= 2.80.0). 3442s libgirepository-2.0-0:s390x depends on libglib2.0-0t64 (= 2.86.3-4). 3442s libfwupd3:s390x depends on libglib2.0-0t64 (>= 2.80.0). 3442s libdconf1:s390x depends on libglib2.0-0t64 (>= 2.80.0). 3442s libblockdev3:s390x depends on libglib2.0-0t64 (>= 2.42.2). 3442s libblockdev-utils3:s390x depends on libglib2.0-0t64 (>= 2.76.0). 3442s libblockdev-swap3:s390x depends on libglib2.0-0t64 (>= 2.42.2). 3442s libblockdev-smart3:s390x depends on libglib2.0-0t64 (>= 2.42.2). 3442s libblockdev-part3:s390x depends on libglib2.0-0t64 (>= 2.42.2). 3442s libblockdev-nvme3:s390x depends on libglib2.0-0t64 (>= 2.42.2). 3442s libblockdev-mdraid3:s390x depends on libglib2.0-0t64 (>= 2.42.2). 3442s libblockdev-loop3:s390x depends on libglib2.0-0t64 (>= 2.42.2). 3442s libblockdev-fs3:s390x depends on libglib2.0-0t64 (>= 2.42.2). 3442s libblockdev-crypto3:s390x depends on libglib2.0-0t64 (>= 2.42.2). 3442s gir1.2-glib-2.0:s390x depends on libglib2.0-0t64 (= 2.86.3-4). 3442s fwupd depends on libglib2.0-0t64 (>= 2.80.0). 3442s dconf-service depends on libglib2.0-0t64 (>= 2.83.0). 3442s dconf-gsettings-backend:s390x depends on libglib2.0-0t64 (>= 2.80.0). 3442s bolt depends on libglib2.0-0t64 (>= 2.80.0). 3442s 3442s (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 ... 62021 files and directories currently installed.) 3442s Removing libglib2.0-0t64:s390x (2.86.3-4) ... 3443s Selecting previously unselected package libglib2.0-0xyz:s390x. 3443s (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 ... 62002 files and directories currently installed.) 3443s Preparing to unpack .../libglib2.0-0xyz.deb ... 3443s Unpacking libglib2.0-0xyz:s390x (2.86.3-4) ... 3444s Selecting previously unselected package xdg-user-dirs. 3444s Preparing to unpack .../xdg-user-dirs_0.19-1_s390x.deb ... 3444s Unpacking xdg-user-dirs (0.19-1) ... 3444s Setting up xdg-user-dirs (0.19-1) ... 3445s Created symlink '/etc/systemd/user/graphical-session-pre.target.wants/xdg-user-dirs.service' → '/usr/lib/systemd/user/xdg-user-dirs.service'. 3445s Setting up libglib2.0-0xyz:s390x (2.86.3-4) ... 3446s Processing triggers for libc-bin (2.42-2ubuntu4) ... 3446s Processing triggers for man-db (2.13.1-1) ... 3450s ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 3450s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 3450s + n=1 3450s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 3450s + echo ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 3450s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 3450s + n=2 3450s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 3450s + echo ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 3450s + ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 3450s ok 3 - test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3450s ok 4 - test -s /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3450s ok 5 - test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3450s ok 6 - test -s /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3450s assert test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3450s + n=3 3450s + test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3450s + echo ok 3 - test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3450s + assert test -s /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3450s + n=4 3450s + test -s /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3450s + echo ok 4 - test -s /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3450s + assert test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3450s + n=5 3450s + test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3450s + echo ok 5 - test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3450s + assert test -s /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3450s + n=6 3450s + test -s /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3450s + echo ok 6 - test -s /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3450s + apt-get -y purge libglib2.0-0t64 3450s Reading package lists... 3450s Building dependency tree... 3450s Reading state information... 3451s Solving dependencies... 3453s The following packages will be REMOVED: 3453s libglib2.0-0t64* 3454s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 3454s After this operation, 0 B of additional disk space will be used. 3456s (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 ... 62036 files and directories currently installed.) 3456s Purging configuration files for libglib2.0-0t64:s390x (2.86.3-4) ... 3458s ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 3458s ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 3458s ok 9 - test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3458s ok 10 - test -s /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3458s ok 11 - test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3458s ok 12 - test -s /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3458s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 3458s + n=7 3458s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 3458s + echo ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 3458s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 3458s + n=8 3458s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 3458s + echo ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 3458s + assert test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3458s + n=9 3458s + test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3458s + echo ok 9 - test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3458s + assert test -s /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3458s + n=10 3458s + test -s /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3458s + echo ok 10 - test -s /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3458s + assert test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3458s + n=11 3458s + test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3458s + echo ok 11 - test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3458s + assert test -s /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3458s + n=12 3458s + test -s /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3458s + echo ok 12 - test -s /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3458s + apt-get -y purge libglib2.0-0xyz 3458s Reading package lists... 3460s Building dependency tree... 3460s Reading state information... 3461s Solving dependencies... 3462s The following additional packages will be installed: 3462s libglib2.0-0t64 3462s Suggested packages: 3462s low-memory-monitor 3462s The following packages will be REMOVED: 3462s libglib2.0-0xyz* 3462s The following NEW packages will be installed: 3462s libglib2.0-0t64 3462s 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded. 3462s Need to get 1602 kB of archives. 3462s After this operation, 0 B of additional disk space will be used. 3462s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x libglib2.0-0t64 s390x 2.86.3-4 [1602 kB] 3466s Fetched 1602 kB in 1s (1319 kB/s) 3467s dpkg: libglib2.0-0xyz:s390x: dependency problems, but removing anyway as you requested: 3467s udisks2 depends on libglib2.0-0t64 (>= 2.80.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s s390-tools depends on libglib2.0-0t64 (>= 2.32.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s python3-gi depends on libglib2.0-0t64 (>= 2.86.0-7~); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s netplan.io depends on libglib2.0-0t64 (>= 2.70.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s netplan-generator depends on libglib2.0-0t64 (>= 2.16.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libxmlb2:s390x depends on libglib2.0-0t64 (>= 2.54.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libvolume-key1:s390x depends on libglib2.0-0t64 (>= 2.18.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libudisks2-0:s390x depends on libglib2.0-0t64 (>= 2.83.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libqrtr-glib0:s390x depends on libglib2.0-0t64 (>= 2.56); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libqmi-proxy depends on libglib2.0-0t64 (>= 2.30.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libqmi-glib5:s390x depends on libglib2.0-0t64 (>= 2.54.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libpolkit-gobject-1-0:s390x depends on libglib2.0-0t64 (>= 2.38.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libpolkit-agent-1-0:s390x depends on libglib2.0-0t64 (>= 2.38.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libnetplan1:s390x depends on libglib2.0-0t64 (>= 2.76.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libmm-glib0:s390x depends on libglib2.0-0t64 (>= 2.62.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libmbim-proxy depends on libglib2.0-0t64 (>= 2.56); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libmbim-glib4:s390x depends on libglib2.0-0t64 (>= 2.56); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libjson-glib-1.0-0:s390x depends on libglib2.0-0t64 (>= 2.80.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libjcat1:s390x depends on libglib2.0-0t64 (>= 2.80.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libgudev-1.0-0:s390x depends on libglib2.0-0t64 (>= 2.80.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libgirepository-2.0-0:s390x depends on libglib2.0-0t64 (= 2.86.3-4); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libfwupd3:s390x depends on libglib2.0-0t64 (>= 2.80.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libdconf1:s390x depends on libglib2.0-0t64 (>= 2.80.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libblockdev3:s390x depends on libglib2.0-0t64 (>= 2.42.2); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libblockdev-utils3:s390x depends on libglib2.0-0t64 (>= 2.76.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libblockdev-swap3:s390x depends on libglib2.0-0t64 (>= 2.42.2); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libblockdev-smart3:s390x depends on libglib2.0-0t64 (>= 2.42.2); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libblockdev-part3:s390x depends on libglib2.0-0t64 (>= 2.42.2); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libblockdev-nvme3:s390x depends on libglib2.0-0t64 (>= 2.42.2); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libblockdev-mdraid3:s390x depends on libglib2.0-0t64 (>= 2.42.2); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libblockdev-loop3:s390x depends on libglib2.0-0t64 (>= 2.42.2); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libblockdev-fs3:s390x depends on libglib2.0-0t64 (>= 2.42.2); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s libblockdev-crypto3:s390x depends on libglib2.0-0t64 (>= 2.42.2); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s gir1.2-glib-2.0:s390x depends on libglib2.0-0t64 (= 2.86.3-4); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s fwupd depends on libglib2.0-0t64 (>= 2.80.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s dconf-service depends on libglib2.0-0t64 (>= 2.83.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s dconf-gsettings-backend:s390x depends on libglib2.0-0t64 (>= 2.80.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s bolt depends on libglib2.0-0t64 (>= 2.80.0); however: 3467s Package libglib2.0-0t64 is not installed. 3467s Package libglib2.0-0xyz:s390x which provides libglib2.0-0t64 is to be removed. 3467s 3467s (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 ... 62036 files and directories currently installed.) 3467s Removing libglib2.0-0xyz:s390x (2.86.3-4) ... 3467s Selecting previously unselected package libglib2.0-0t64:s390x. 3467s (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 ... 62017 files and directories currently installed.) 3467s Preparing to unpack .../libglib2.0-0t64_2.86.3-4_s390x.deb ... 3467s Unpacking libglib2.0-0t64:s390x (2.86.3-4) ... 3468s Setting up libglib2.0-0t64:s390x (2.86.3-4) ... 3468s Processing triggers for libc-bin (2.42-2ubuntu4) ... 3469s (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 ... 62036 files and directories currently installed.) 3469s Purging configuration files for libglib2.0-0xyz:s390x (2.86.3-4) ... 3470s + assert_not test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 3470s + n=13 3470s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 3470s + echonot ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 3470s not ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 3470s + failed=1 3470s + assert_not test -e /usr/share/glib-2.0/schemas/gschemas.compiled 3470s + n=14 3470s + test -e /usr/share/glib-2.0/schemas/gschemas.compiled 3470s + echo not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 3470s + failed=1 3470s + assert_not test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3470s + n=15 3470s + test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3470s + echo not ok 15 - should not have succeeded: test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3470s + failed=1 3470s + assert_not test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3470s + n=16 3470s + test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3470s + echo not ok 16 - should not have succeeded: test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3470s + failed=1 3470s + echo 1..16 3470s + exit 1 3470s not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 3470s not ok 15 - should not have succeeded: test -e /usr/lib/s390x-linux-gnu/gio/modules/libdconfsettings.so 3470s not ok 16 - should not have succeeded: test -e /usr/lib/s390x-linux-gnu/gio/modules/giomodule.cache 3470s 1..16 3470s autopkgtest [10:22:21]: test 1065022-futureproofing: -----------------------] 3471s 1065022-futureproofing FLAKY non-zero exit status 1 3471s autopkgtest [10:22:22]: test 1065022-futureproofing: - - - - - - - - - - results - - - - - - - - - - 3472s autopkgtest [10:22:23]: @@@@@@@@@@@@@@@@@@@@ summary 3472s build PASS (superficial) 3472s build-static PASS (superficial) 3472s girepository-tools PASS (superficial) 3472s libgio-2.0-dev-bin PASS (superficial) 3472s libglib2.0-dev PASS (superficial) 3472s installed-tests PASS 3472s closure-refcount PASS 3472s debugcontroller PASS 3472s gdbus-server-auth PASS 3472s gdbus-threading PASS 3472s gmenumodel PASS 3472s mainloop PASS 3472s memory-monitor-dbus PASS 3472s socket PASS 3472s testfilemonitor FLAKY non-zero exit status 2 3472s thread-pool-slow PASS 3472s threadtests PASS 3472s timeout PASS 3472s timer PASS 3472s 1065022-futureproofing FLAKY non-zero exit status 1